@action-intelligence/cli 0.1.1 → 0.2.1

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.
Files changed (2589) hide show
  1. package/README.md +86 -191
  2. package/THIRD_PARTY_LICENSES/Apache-2.0.txt +202 -0
  3. package/THIRD_PARTY_LICENSES/jmespath-LICENSE +19 -0
  4. package/THIRD_PARTY_LICENSES/objc2-LICENSE.md +34 -0
  5. package/THIRD_PARTY_NOTICES.md +12 -0
  6. package/action.mjs +63 -59
  7. package/bin/darwin-arm64/action-api +0 -0
  8. package/bin/darwin-arm64/dependencies.json +2409 -0
  9. package/bin/darwin-arm64/licenses/adler2-2.0.1/LICENSE-0BSD +12 -0
  10. package/bin/darwin-arm64/licenses/adler2-2.0.1/LICENSE-APACHE +201 -0
  11. package/bin/darwin-arm64/licenses/adler2-2.0.1/LICENSE-MIT +23 -0
  12. package/bin/darwin-arm64/licenses/aho-corasick-1.1.4/COPYING +3 -0
  13. package/bin/darwin-arm64/licenses/aho-corasick-1.1.4/LICENSE-MIT +21 -0
  14. package/bin/darwin-arm64/licenses/anstream-1.0.0/LICENSE-APACHE +202 -0
  15. package/bin/darwin-arm64/licenses/anstream-1.0.0/LICENSE-MIT +19 -0
  16. package/bin/darwin-arm64/licenses/anstyle-1.0.14/LICENSE-APACHE +202 -0
  17. package/bin/darwin-arm64/licenses/anstyle-1.0.14/LICENSE-MIT +19 -0
  18. package/bin/darwin-arm64/licenses/anstyle-parse-1.0.0/LICENSE-APACHE +202 -0
  19. package/bin/darwin-arm64/licenses/anstyle-parse-1.0.0/LICENSE-MIT +19 -0
  20. package/bin/darwin-arm64/licenses/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
  21. package/bin/darwin-arm64/licenses/anstyle-query-1.1.5/LICENSE-MIT +19 -0
  22. package/bin/darwin-arm64/licenses/anyhow-1.0.103/LICENSE-APACHE +176 -0
  23. package/bin/darwin-arm64/licenses/anyhow-1.0.103/LICENSE-MIT +23 -0
  24. package/bin/darwin-arm64/licenses/assert-json-diff-2.0.2/LICENSE +7 -0
  25. package/bin/darwin-arm64/licenses/async-compression-0.4.43/LICENSE-APACHE +201 -0
  26. package/bin/darwin-arm64/licenses/async-compression-0.4.43/LICENSE-MIT +21 -0
  27. package/bin/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  28. package/bin/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  29. package/bin/darwin-arm64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  30. package/bin/darwin-arm64/licenses/base64-0.22.1/LICENSE-APACHE +201 -0
  31. package/bin/darwin-arm64/licenses/base64-0.22.1/LICENSE-MIT +21 -0
  32. package/bin/darwin-arm64/licenses/bitflags-2.13.0/LICENSE-APACHE +201 -0
  33. package/bin/darwin-arm64/licenses/bitflags-2.13.0/LICENSE-MIT +25 -0
  34. package/bin/darwin-arm64/licenses/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  35. package/bin/darwin-arm64/licenses/block-buffer-0.10.4/LICENSE-MIT +25 -0
  36. package/bin/darwin-arm64/licenses/byteorder-1.5.0/COPYING +3 -0
  37. package/bin/darwin-arm64/licenses/byteorder-1.5.0/LICENSE-MIT +21 -0
  38. package/bin/darwin-arm64/licenses/bytes-1.12.0/LICENSE +25 -0
  39. package/bin/darwin-arm64/licenses/cc-1.2.65/LICENSE-APACHE +201 -0
  40. package/bin/darwin-arm64/licenses/cc-1.2.65/LICENSE-MIT +25 -0
  41. package/bin/darwin-arm64/licenses/cfg-if-1.0.4/LICENSE-APACHE +201 -0
  42. package/bin/darwin-arm64/licenses/cfg-if-1.0.4/LICENSE-MIT +25 -0
  43. package/bin/darwin-arm64/licenses/cfg_aliases-0.2.1/LICENSE +9 -0
  44. package/bin/darwin-arm64/licenses/clap-4.6.1/LICENSE-APACHE +202 -0
  45. package/bin/darwin-arm64/licenses/clap-4.6.1/LICENSE-MIT +19 -0
  46. package/bin/darwin-arm64/licenses/clap_builder-4.6.0/LICENSE-APACHE +202 -0
  47. package/bin/darwin-arm64/licenses/clap_builder-4.6.0/LICENSE-MIT +19 -0
  48. package/bin/darwin-arm64/licenses/clap_complete-4.6.5/LICENSE-APACHE +202 -0
  49. package/bin/darwin-arm64/licenses/clap_complete-4.6.5/LICENSE-MIT +19 -0
  50. package/bin/darwin-arm64/licenses/clap_derive-4.6.1/LICENSE-APACHE +202 -0
  51. package/bin/darwin-arm64/licenses/clap_derive-4.6.1/LICENSE-MIT +19 -0
  52. package/bin/darwin-arm64/licenses/clap_lex-1.1.0/LICENSE-APACHE +202 -0
  53. package/bin/darwin-arm64/licenses/clap_lex-1.1.0/LICENSE-MIT +19 -0
  54. package/bin/darwin-arm64/licenses/clap_mangen-0.2.33/LICENSE-APACHE +202 -0
  55. package/bin/darwin-arm64/licenses/clap_mangen-0.2.33/LICENSE-MIT +19 -0
  56. package/bin/darwin-arm64/licenses/colorchoice-1.0.5/LICENSE-APACHE +202 -0
  57. package/bin/darwin-arm64/licenses/colorchoice-1.0.5/LICENSE-MIT +19 -0
  58. package/bin/darwin-arm64/licenses/compression-codecs-0.4.38/LICENSE-APACHE +201 -0
  59. package/bin/darwin-arm64/licenses/compression-codecs-0.4.38/LICENSE-MIT +21 -0
  60. package/bin/darwin-arm64/licenses/compression-core-0.4.32/LICENSE-APACHE +201 -0
  61. package/bin/darwin-arm64/licenses/compression-core-0.4.32/LICENSE-MIT +21 -0
  62. package/bin/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-APACHE +201 -0
  63. package/bin/darwin-arm64/licenses/core-foundation-0.10.1/LICENSE-MIT +25 -0
  64. package/bin/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-APACHE +201 -0
  65. package/bin/darwin-arm64/licenses/core-foundation-sys-0.8.7/LICENSE-MIT +25 -0
  66. package/bin/darwin-arm64/licenses/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  67. package/bin/darwin-arm64/licenses/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  68. package/bin/darwin-arm64/licenses/crc32fast-1.5.0/LICENSE-APACHE +202 -0
  69. package/bin/darwin-arm64/licenses/crc32fast-1.5.0/LICENSE-MIT +21 -0
  70. package/bin/darwin-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-APACHE +201 -0
  71. package/bin/darwin-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-MIT +27 -0
  72. package/bin/darwin-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-THIRD-PARTY +593 -0
  73. package/bin/darwin-arm64/licenses/crossbeam-utils-0.8.21/LICENSE-APACHE +201 -0
  74. package/bin/darwin-arm64/licenses/crossbeam-utils-0.8.21/LICENSE-MIT +27 -0
  75. package/bin/darwin-arm64/licenses/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  76. package/bin/darwin-arm64/licenses/crypto-common-0.1.7/LICENSE-MIT +25 -0
  77. package/bin/darwin-arm64/licenses/data-encoding-2.11.0/LICENSE +22 -0
  78. package/bin/darwin-arm64/licenses/deadpool-0.12.3/LICENSE-APACHE +202 -0
  79. package/bin/darwin-arm64/licenses/deadpool-0.12.3/LICENSE-MIT +21 -0
  80. package/bin/darwin-arm64/licenses/deadpool-runtime-0.1.4/LICENSE-APACHE +202 -0
  81. package/bin/darwin-arm64/licenses/deadpool-runtime-0.1.4/LICENSE-MIT +21 -0
  82. package/bin/darwin-arm64/licenses/deranged-0.5.8/LICENSE-Apache +202 -0
  83. package/bin/darwin-arm64/licenses/deranged-0.5.8/LICENSE-MIT +19 -0
  84. package/bin/darwin-arm64/licenses/deunicode-1.6.2/LICENSE +26 -0
  85. package/bin/darwin-arm64/licenses/digest-0.10.7/LICENSE-APACHE +201 -0
  86. package/bin/darwin-arm64/licenses/digest-0.10.7/LICENSE-MIT +25 -0
  87. package/bin/darwin-arm64/licenses/dispatch2-0.3.1/objc2-LICENSE.md +34 -0
  88. package/bin/darwin-arm64/licenses/displaydoc-0.2.6/LICENSE-APACHE +201 -0
  89. package/bin/darwin-arm64/licenses/displaydoc-0.2.6/LICENSE-MIT +23 -0
  90. package/bin/darwin-arm64/licenses/dotenvy-0.15.7/LICENSE +21 -0
  91. package/bin/darwin-arm64/licenses/equivalent-1.0.2/LICENSE-APACHE +201 -0
  92. package/bin/darwin-arm64/licenses/equivalent-1.0.2/LICENSE-MIT +25 -0
  93. package/bin/darwin-arm64/licenses/errno-0.3.14/LICENSE-APACHE +201 -0
  94. package/bin/darwin-arm64/licenses/errno-0.3.14/LICENSE-MIT +25 -0
  95. package/bin/darwin-arm64/licenses/fastrand-2.4.1/LICENSE-APACHE +201 -0
  96. package/bin/darwin-arm64/licenses/fastrand-2.4.1/LICENSE-MIT +23 -0
  97. package/bin/darwin-arm64/licenses/find-msvc-tools-0.1.9/LICENSE-APACHE +201 -0
  98. package/bin/darwin-arm64/licenses/find-msvc-tools-0.1.9/LICENSE-MIT +25 -0
  99. package/bin/darwin-arm64/licenses/flate2-1.1.9/LICENSE-APACHE +201 -0
  100. package/bin/darwin-arm64/licenses/flate2-1.1.9/LICENSE-MIT +25 -0
  101. package/bin/darwin-arm64/licenses/fnv-1.0.7/LICENSE-APACHE +201 -0
  102. package/bin/darwin-arm64/licenses/fnv-1.0.7/LICENSE-MIT +25 -0
  103. package/bin/darwin-arm64/licenses/foreign-types-0.3.2/LICENSE-APACHE +202 -0
  104. package/bin/darwin-arm64/licenses/foreign-types-0.3.2/LICENSE-MIT +19 -0
  105. package/bin/darwin-arm64/licenses/foreign-types-shared-0.1.1/LICENSE-APACHE +202 -0
  106. package/bin/darwin-arm64/licenses/foreign-types-shared-0.1.1/LICENSE-MIT +19 -0
  107. package/bin/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  108. package/bin/darwin-arm64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  109. package/bin/darwin-arm64/licenses/futures-0.3.32/LICENSE-APACHE +202 -0
  110. package/bin/darwin-arm64/licenses/futures-0.3.32/LICENSE-MIT +26 -0
  111. package/bin/darwin-arm64/licenses/futures-channel-0.3.32/LICENSE-APACHE +202 -0
  112. package/bin/darwin-arm64/licenses/futures-channel-0.3.32/LICENSE-MIT +26 -0
  113. package/bin/darwin-arm64/licenses/futures-core-0.3.32/LICENSE-APACHE +202 -0
  114. package/bin/darwin-arm64/licenses/futures-core-0.3.32/LICENSE-MIT +26 -0
  115. package/bin/darwin-arm64/licenses/futures-executor-0.3.32/LICENSE-APACHE +202 -0
  116. package/bin/darwin-arm64/licenses/futures-executor-0.3.32/LICENSE-MIT +26 -0
  117. package/bin/darwin-arm64/licenses/futures-io-0.3.32/LICENSE-APACHE +202 -0
  118. package/bin/darwin-arm64/licenses/futures-io-0.3.32/LICENSE-MIT +26 -0
  119. package/bin/darwin-arm64/licenses/futures-macro-0.3.32/LICENSE-APACHE +202 -0
  120. package/bin/darwin-arm64/licenses/futures-macro-0.3.32/LICENSE-MIT +26 -0
  121. package/bin/darwin-arm64/licenses/futures-sink-0.3.32/LICENSE-APACHE +202 -0
  122. package/bin/darwin-arm64/licenses/futures-sink-0.3.32/LICENSE-MIT +26 -0
  123. package/bin/darwin-arm64/licenses/futures-task-0.3.32/LICENSE-APACHE +202 -0
  124. package/bin/darwin-arm64/licenses/futures-task-0.3.32/LICENSE-MIT +26 -0
  125. package/bin/darwin-arm64/licenses/futures-util-0.3.32/LICENSE-APACHE +202 -0
  126. package/bin/darwin-arm64/licenses/futures-util-0.3.32/LICENSE-MIT +26 -0
  127. package/bin/darwin-arm64/licenses/generic-array-0.14.7/LICENSE +21 -0
  128. package/bin/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  129. package/bin/darwin-arm64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  130. package/bin/darwin-arm64/licenses/getrandom-0.3.4/LICENSE-APACHE +201 -0
  131. package/bin/darwin-arm64/licenses/getrandom-0.3.4/LICENSE-MIT +26 -0
  132. package/bin/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  133. package/bin/darwin-arm64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  134. package/bin/darwin-arm64/licenses/h2-0.4.16/LICENSE +25 -0
  135. package/bin/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  136. package/bin/darwin-arm64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  137. package/bin/darwin-arm64/licenses/heck-0.5.0/LICENSE-APACHE +201 -0
  138. package/bin/darwin-arm64/licenses/heck-0.5.0/LICENSE-MIT +25 -0
  139. package/bin/darwin-arm64/licenses/hmac-0.12.1/LICENSE-APACHE +201 -0
  140. package/bin/darwin-arm64/licenses/hmac-0.12.1/LICENSE-MIT +25 -0
  141. package/bin/darwin-arm64/licenses/http-1.4.2/LICENSE-APACHE +201 -0
  142. package/bin/darwin-arm64/licenses/http-1.4.2/LICENSE-MIT +25 -0
  143. package/bin/darwin-arm64/licenses/http-body-1.0.1/LICENSE +25 -0
  144. package/bin/darwin-arm64/licenses/http-body-util-0.1.3/LICENSE +25 -0
  145. package/bin/darwin-arm64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  146. package/bin/darwin-arm64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  147. package/bin/darwin-arm64/licenses/httpdate-1.0.3/LICENSE-APACHE +201 -0
  148. package/bin/darwin-arm64/licenses/httpdate-1.0.3/LICENSE-MIT +19 -0
  149. package/bin/darwin-arm64/licenses/hyper-1.10.1/LICENSE +19 -0
  150. package/bin/darwin-arm64/licenses/hyper-rustls-0.27.9/LICENSE-APACHE +201 -0
  151. package/bin/darwin-arm64/licenses/hyper-rustls-0.27.9/LICENSE-ISC +15 -0
  152. package/bin/darwin-arm64/licenses/hyper-rustls-0.27.9/LICENSE-MIT +25 -0
  153. package/bin/darwin-arm64/licenses/hyper-tls-0.6.0/LICENSE-APACHE +201 -0
  154. package/bin/darwin-arm64/licenses/hyper-tls-0.6.0/LICENSE-MIT +20 -0
  155. package/bin/darwin-arm64/licenses/hyper-util-0.1.20/LICENSE +19 -0
  156. package/bin/darwin-arm64/licenses/icu_collections-2.2.0/LICENSE +46 -0
  157. package/bin/darwin-arm64/licenses/icu_locale_core-2.2.0/LICENSE +46 -0
  158. package/bin/darwin-arm64/licenses/icu_normalizer-2.2.0/LICENSE +46 -0
  159. package/bin/darwin-arm64/licenses/icu_normalizer_data-2.2.0/LICENSE +46 -0
  160. package/bin/darwin-arm64/licenses/icu_properties-2.2.0/LICENSE +46 -0
  161. package/bin/darwin-arm64/licenses/icu_properties_data-2.2.0/LICENSE +46 -0
  162. package/bin/darwin-arm64/licenses/icu_provider-2.2.0/LICENSE +46 -0
  163. package/bin/darwin-arm64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  164. package/bin/darwin-arm64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  165. package/bin/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  166. package/bin/darwin-arm64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  167. package/bin/darwin-arm64/licenses/indexmap-2.14.0/LICENSE-APACHE +201 -0
  168. package/bin/darwin-arm64/licenses/indexmap-2.14.0/LICENSE-MIT +25 -0
  169. package/bin/darwin-arm64/licenses/inventory-0.3.24/LICENSE-APACHE +176 -0
  170. package/bin/darwin-arm64/licenses/inventory-0.3.24/LICENSE-MIT +23 -0
  171. package/bin/darwin-arm64/licenses/ipnet-2.12.0/LICENSE-APACHE +201 -0
  172. package/bin/darwin-arm64/licenses/ipnet-2.12.0/LICENSE-MIT +7 -0
  173. package/bin/darwin-arm64/licenses/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
  174. package/bin/darwin-arm64/licenses/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
  175. package/bin/darwin-arm64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  176. package/bin/darwin-arm64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  177. package/bin/darwin-arm64/licenses/jmespath-0.3.0/jmespath-LICENSE +19 -0
  178. package/bin/darwin-arm64/licenses/keyring-3.6.3/LICENSE-APACHE +201 -0
  179. package/bin/darwin-arm64/licenses/keyring-3.6.3/LICENSE-MIT +25 -0
  180. package/bin/darwin-arm64/licenses/lazy_static-1.5.0/LICENSE-APACHE +201 -0
  181. package/bin/darwin-arm64/licenses/lazy_static-1.5.0/LICENSE-MIT +25 -0
  182. package/bin/darwin-arm64/licenses/libc-0.2.186/LICENSE-APACHE +176 -0
  183. package/bin/darwin-arm64/licenses/libc-0.2.186/LICENSE-MIT +25 -0
  184. package/bin/darwin-arm64/licenses/litemap-0.8.2/LICENSE +46 -0
  185. package/bin/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  186. package/bin/darwin-arm64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  187. package/bin/darwin-arm64/licenses/log-0.4.33/LICENSE-APACHE +201 -0
  188. package/bin/darwin-arm64/licenses/log-0.4.33/LICENSE-MIT +25 -0
  189. package/bin/darwin-arm64/licenses/lru-slab-0.1.2/LICENSE-APACHE +202 -0
  190. package/bin/darwin-arm64/licenses/lru-slab-0.1.2/LICENSE-MIT +7 -0
  191. package/bin/darwin-arm64/licenses/lru-slab-0.1.2/LICENSE-ZLIB +19 -0
  192. package/bin/darwin-arm64/licenses/matchers-0.2.0/LICENSE +19 -0
  193. package/bin/darwin-arm64/licenses/memchr-2.8.2/COPYING +3 -0
  194. package/bin/darwin-arm64/licenses/memchr-2.8.2/LICENSE-MIT +21 -0
  195. package/bin/darwin-arm64/licenses/mime-0.3.17/LICENSE-APACHE +201 -0
  196. package/bin/darwin-arm64/licenses/mime-0.3.17/LICENSE-MIT +20 -0
  197. package/bin/darwin-arm64/licenses/mime_guess-2.0.5/LICENSE +22 -0
  198. package/bin/darwin-arm64/licenses/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  199. package/bin/darwin-arm64/licenses/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  200. package/bin/darwin-arm64/licenses/minimal-lexical-0.2.1/LICENSE.md +37 -0
  201. package/bin/darwin-arm64/licenses/miniz_oxide-0.8.9/LICENSE +25 -0
  202. package/bin/darwin-arm64/licenses/miniz_oxide-0.8.9/LICENSE-APACHE.md +177 -0
  203. package/bin/darwin-arm64/licenses/miniz_oxide-0.8.9/LICENSE-MIT.md +24 -0
  204. package/bin/darwin-arm64/licenses/miniz_oxide-0.8.9/LICENSE-ZLIB.md +14 -0
  205. package/bin/darwin-arm64/licenses/mio-1.2.1/LICENSE +19 -0
  206. package/bin/darwin-arm64/licenses/native-tls-0.2.18/LICENSE-APACHE +202 -0
  207. package/bin/darwin-arm64/licenses/native-tls-0.2.18/LICENSE-MIT +19 -0
  208. package/bin/darwin-arm64/licenses/nom-7.1.3/LICENSE +20 -0
  209. package/bin/darwin-arm64/licenses/nu-ansi-term-0.50.3/LICENSE +22 -0
  210. package/bin/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  211. package/bin/darwin-arm64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  212. package/bin/darwin-arm64/licenses/num_cpus-1.17.0/LICENSE-APACHE +201 -0
  213. package/bin/darwin-arm64/licenses/num_cpus-1.17.0/LICENSE-MIT +20 -0
  214. package/bin/darwin-arm64/licenses/objc2-0.6.4/objc2-LICENSE.md +34 -0
  215. package/bin/darwin-arm64/licenses/objc2-app-kit-0.3.2/objc2-LICENSE.md +34 -0
  216. package/bin/darwin-arm64/licenses/objc2-core-foundation-0.3.2/objc2-LICENSE.md +34 -0
  217. package/bin/darwin-arm64/licenses/objc2-encode-4.1.0/objc2-LICENSE.md +34 -0
  218. package/bin/darwin-arm64/licenses/objc2-foundation-0.3.2/objc2-LICENSE.md +34 -0
  219. package/bin/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  220. package/bin/darwin-arm64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  221. package/bin/darwin-arm64/licenses/openssl-0.10.81/LICENSE +15 -0
  222. package/bin/darwin-arm64/licenses/openssl-0.10.81/LICENSE-APACHE +202 -0
  223. package/bin/darwin-arm64/licenses/openssl-macros-0.1.1/LICENSE-APACHE +202 -0
  224. package/bin/darwin-arm64/licenses/openssl-macros-0.1.1/LICENSE-MIT +19 -0
  225. package/bin/darwin-arm64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-APACHE +201 -0
  226. package/bin/darwin-arm64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-MIT +25 -0
  227. package/bin/darwin-arm64/licenses/openssl-sys-0.9.117/LICENSE-MIT +25 -0
  228. package/bin/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  229. package/bin/darwin-arm64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  230. package/bin/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  231. package/bin/darwin-arm64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  232. package/bin/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  233. package/bin/darwin-arm64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  234. package/bin/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  235. package/bin/darwin-arm64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  236. package/bin/darwin-arm64/licenses/pkg-config-0.3.33/LICENSE-APACHE +201 -0
  237. package/bin/darwin-arm64/licenses/pkg-config-0.3.33/LICENSE-MIT +25 -0
  238. package/bin/darwin-arm64/licenses/potential_utf-0.1.5/LICENSE +46 -0
  239. package/bin/darwin-arm64/licenses/powerfmt-0.2.0/LICENSE-Apache +202 -0
  240. package/bin/darwin-arm64/licenses/powerfmt-0.2.0/LICENSE-MIT +19 -0
  241. package/bin/darwin-arm64/licenses/ppv-lite86-0.2.21/LICENSE-APACHE +201 -0
  242. package/bin/darwin-arm64/licenses/ppv-lite86-0.2.21/LICENSE-MIT +25 -0
  243. package/bin/darwin-arm64/licenses/proc-macro2-1.0.106/LICENSE-APACHE +176 -0
  244. package/bin/darwin-arm64/licenses/proc-macro2-1.0.106/LICENSE-MIT +23 -0
  245. package/bin/darwin-arm64/licenses/quinn-0.11.11/LICENSE-APACHE +201 -0
  246. package/bin/darwin-arm64/licenses/quinn-0.11.11/LICENSE-MIT +7 -0
  247. package/bin/darwin-arm64/licenses/quinn-proto-0.11.15/LICENSE-APACHE +201 -0
  248. package/bin/darwin-arm64/licenses/quinn-proto-0.11.15/LICENSE-MIT +7 -0
  249. package/bin/darwin-arm64/licenses/quinn-udp-0.5.14/LICENSE-APACHE +201 -0
  250. package/bin/darwin-arm64/licenses/quinn-udp-0.5.14/LICENSE-MIT +7 -0
  251. package/bin/darwin-arm64/licenses/quote-1.0.46/LICENSE-APACHE +176 -0
  252. package/bin/darwin-arm64/licenses/quote-1.0.46/LICENSE-MIT +23 -0
  253. package/bin/darwin-arm64/licenses/rand-0.8.6/LICENSE-APACHE +176 -0
  254. package/bin/darwin-arm64/licenses/rand-0.8.6/LICENSE-MIT +26 -0
  255. package/bin/darwin-arm64/licenses/rand-0.9.4/LICENSE-APACHE +176 -0
  256. package/bin/darwin-arm64/licenses/rand-0.9.4/LICENSE-MIT +26 -0
  257. package/bin/darwin-arm64/licenses/rand_chacha-0.3.1/LICENSE-APACHE +201 -0
  258. package/bin/darwin-arm64/licenses/rand_chacha-0.3.1/LICENSE-MIT +26 -0
  259. package/bin/darwin-arm64/licenses/rand_chacha-0.9.0/LICENSE-APACHE +176 -0
  260. package/bin/darwin-arm64/licenses/rand_chacha-0.9.0/LICENSE-MIT +26 -0
  261. package/bin/darwin-arm64/licenses/rand_core-0.6.4/LICENSE-APACHE +187 -0
  262. package/bin/darwin-arm64/licenses/rand_core-0.6.4/LICENSE-MIT +26 -0
  263. package/bin/darwin-arm64/licenses/rand_core-0.9.5/LICENSE-APACHE +187 -0
  264. package/bin/darwin-arm64/licenses/rand_core-0.9.5/LICENSE-MIT +26 -0
  265. package/bin/darwin-arm64/licenses/regex-1.12.4/LICENSE-APACHE +201 -0
  266. package/bin/darwin-arm64/licenses/regex-1.12.4/LICENSE-MIT +25 -0
  267. package/bin/darwin-arm64/licenses/regex-automata-0.4.14/LICENSE-APACHE +201 -0
  268. package/bin/darwin-arm64/licenses/regex-automata-0.4.14/LICENSE-MIT +25 -0
  269. package/bin/darwin-arm64/licenses/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
  270. package/bin/darwin-arm64/licenses/regex-syntax-0.8.11/LICENSE-MIT +25 -0
  271. package/bin/darwin-arm64/licenses/reqwest-0.12.28/LICENSE-APACHE +201 -0
  272. package/bin/darwin-arm64/licenses/reqwest-0.12.28/LICENSE-MIT +20 -0
  273. package/bin/darwin-arm64/licenses/ring-0.17.14/LICENSE +9 -0
  274. package/bin/darwin-arm64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  275. package/bin/darwin-arm64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  276. package/bin/darwin-arm64/licenses/roff-1.1.1/LICENSE-APACHE +202 -0
  277. package/bin/darwin-arm64/licenses/roff-1.1.1/LICENSE-MIT +19 -0
  278. package/bin/darwin-arm64/licenses/rustc-hash-2.1.2/LICENSE-APACHE +176 -0
  279. package/bin/darwin-arm64/licenses/rustc-hash-2.1.2/LICENSE-MIT +23 -0
  280. package/bin/darwin-arm64/licenses/rustix-1.1.4/LICENSE-APACHE +201 -0
  281. package/bin/darwin-arm64/licenses/rustix-1.1.4/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  282. package/bin/darwin-arm64/licenses/rustix-1.1.4/LICENSE-MIT +23 -0
  283. package/bin/darwin-arm64/licenses/rustls-0.23.41/LICENSE-APACHE +201 -0
  284. package/bin/darwin-arm64/licenses/rustls-0.23.41/LICENSE-ISC +15 -0
  285. package/bin/darwin-arm64/licenses/rustls-0.23.41/LICENSE-MIT +25 -0
  286. package/bin/darwin-arm64/licenses/rustls-native-certs-0.8.4/LICENSE +10 -0
  287. package/bin/darwin-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-APACHE +201 -0
  288. package/bin/darwin-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-ISC +15 -0
  289. package/bin/darwin-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-MIT +25 -0
  290. package/bin/darwin-arm64/licenses/rustls-pki-types-1.14.1/LICENSE-APACHE +201 -0
  291. package/bin/darwin-arm64/licenses/rustls-pki-types-1.14.1/LICENSE-MIT +25 -0
  292. package/bin/darwin-arm64/licenses/rustls-webpki-0.103.13/LICENSE +19 -0
  293. package/bin/darwin-arm64/licenses/ryu-1.0.23/LICENSE-APACHE +176 -0
  294. package/bin/darwin-arm64/licenses/ryu-1.0.23/LICENSE-BOOST +23 -0
  295. package/bin/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  296. package/bin/darwin-arm64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  297. package/bin/darwin-arm64/licenses/secrecy-0.10.3/LICENSE-APACHE +202 -0
  298. package/bin/darwin-arm64/licenses/secrecy-0.10.3/LICENSE-MIT +21 -0
  299. package/bin/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-APACHE +201 -0
  300. package/bin/darwin-arm64/licenses/security-framework-3.7.0/LICENSE-MIT +20 -0
  301. package/bin/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-APACHE +201 -0
  302. package/bin/darwin-arm64/licenses/security-framework-sys-2.17.0/LICENSE-MIT +20 -0
  303. package/bin/darwin-arm64/licenses/serde-1.0.228/LICENSE-APACHE +176 -0
  304. package/bin/darwin-arm64/licenses/serde-1.0.228/LICENSE-MIT +23 -0
  305. package/bin/darwin-arm64/licenses/serde_core-1.0.228/LICENSE-APACHE +176 -0
  306. package/bin/darwin-arm64/licenses/serde_core-1.0.228/LICENSE-MIT +23 -0
  307. package/bin/darwin-arm64/licenses/serde_derive-1.0.228/LICENSE-APACHE +176 -0
  308. package/bin/darwin-arm64/licenses/serde_derive-1.0.228/LICENSE-MIT +23 -0
  309. package/bin/darwin-arm64/licenses/serde_json-1.0.150/LICENSE-APACHE +176 -0
  310. package/bin/darwin-arm64/licenses/serde_json-1.0.150/LICENSE-MIT +23 -0
  311. package/bin/darwin-arm64/licenses/serde_json_path-0.7.2/LICENSE-MIT +21 -0
  312. package/bin/darwin-arm64/licenses/serde_json_path_core-0.2.2/LICENSE-MIT +21 -0
  313. package/bin/darwin-arm64/licenses/serde_json_path_macros-0.1.6/LICENSE-MIT +21 -0
  314. package/bin/darwin-arm64/licenses/serde_json_path_macros_internal-0.1.2/LICENSE-MIT +21 -0
  315. package/bin/darwin-arm64/licenses/serde_qs-1.1.2/LICENSE-APACHE +176 -0
  316. package/bin/darwin-arm64/licenses/serde_qs-1.1.2/LICENSE-MIT +27 -0
  317. package/bin/darwin-arm64/licenses/serde_urlencoded-0.7.1/LICENSE-APACHE +176 -0
  318. package/bin/darwin-arm64/licenses/serde_urlencoded-0.7.1/LICENSE-MIT +25 -0
  319. package/bin/darwin-arm64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-APACHE +176 -0
  320. package/bin/darwin-arm64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-MIT +23 -0
  321. package/bin/darwin-arm64/licenses/serial_test-3.5.0/LICENSE +19 -0
  322. package/bin/darwin-arm64/licenses/serial_test_derive-3.5.0/LICENSE +19 -0
  323. package/bin/darwin-arm64/licenses/sha1-0.10.6/LICENSE-APACHE +201 -0
  324. package/bin/darwin-arm64/licenses/sha1-0.10.6/LICENSE-MIT +27 -0
  325. package/bin/darwin-arm64/licenses/sha2-0.10.9/LICENSE-APACHE +201 -0
  326. package/bin/darwin-arm64/licenses/sha2-0.10.9/LICENSE-MIT +27 -0
  327. package/bin/darwin-arm64/licenses/sharded-slab-0.1.7/LICENSE +19 -0
  328. package/bin/darwin-arm64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  329. package/bin/darwin-arm64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  330. package/bin/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
  331. package/bin/darwin-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
  332. package/bin/darwin-arm64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  333. package/bin/darwin-arm64/licenses/slab-0.4.12/LICENSE +25 -0
  334. package/bin/darwin-arm64/licenses/slug-0.1.6/LICENSE-APACHE +201 -0
  335. package/bin/darwin-arm64/licenses/slug-0.1.6/LICENSE-MIT +25 -0
  336. package/bin/darwin-arm64/licenses/smallvec-1.15.2/LICENSE-APACHE +201 -0
  337. package/bin/darwin-arm64/licenses/smallvec-1.15.2/LICENSE-MIT +25 -0
  338. package/bin/darwin-arm64/licenses/socket2-0.6.4/LICENSE-APACHE +201 -0
  339. package/bin/darwin-arm64/licenses/socket2-0.6.4/LICENSE-MIT +25 -0
  340. package/bin/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  341. package/bin/darwin-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  342. package/bin/darwin-arm64/licenses/strsim-0.11.1/LICENSE +23 -0
  343. package/bin/darwin-arm64/licenses/subtle-2.6.1/LICENSE +29 -0
  344. package/bin/darwin-arm64/licenses/symlink-0.1.0/LICENSE-APACHE +201 -0
  345. package/bin/darwin-arm64/licenses/symlink-0.1.0/LICENSE-MIT +25 -0
  346. package/bin/darwin-arm64/licenses/syn-2.0.118/LICENSE-APACHE +176 -0
  347. package/bin/darwin-arm64/licenses/syn-2.0.118/LICENSE-MIT +23 -0
  348. package/bin/darwin-arm64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  349. package/bin/darwin-arm64/licenses/synstructure-0.13.2/LICENSE +7 -0
  350. package/bin/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  351. package/bin/darwin-arm64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  352. package/bin/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  353. package/bin/darwin-arm64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  354. package/bin/darwin-arm64/licenses/thiserror-2.0.18/LICENSE-APACHE +176 -0
  355. package/bin/darwin-arm64/licenses/thiserror-2.0.18/LICENSE-MIT +23 -0
  356. package/bin/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  357. package/bin/darwin-arm64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  358. package/bin/darwin-arm64/licenses/thiserror-impl-2.0.18/LICENSE-APACHE +176 -0
  359. package/bin/darwin-arm64/licenses/thiserror-impl-2.0.18/LICENSE-MIT +23 -0
  360. package/bin/darwin-arm64/licenses/thread_local-1.1.9/LICENSE-APACHE +201 -0
  361. package/bin/darwin-arm64/licenses/thread_local-1.1.9/LICENSE-MIT +25 -0
  362. package/bin/darwin-arm64/licenses/time-0.3.51/LICENSE-Apache +177 -0
  363. package/bin/darwin-arm64/licenses/time-0.3.51/LICENSE-MIT +19 -0
  364. package/bin/darwin-arm64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  365. package/bin/darwin-arm64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  366. package/bin/darwin-arm64/licenses/time-macros-0.2.30/LICENSE-Apache +177 -0
  367. package/bin/darwin-arm64/licenses/time-macros-0.2.30/LICENSE-MIT +19 -0
  368. package/bin/darwin-arm64/licenses/tinystr-0.8.3/LICENSE +46 -0
  369. package/bin/darwin-arm64/licenses/tinyvec-1.11.0/LICENSE-APACHE.md +202 -0
  370. package/bin/darwin-arm64/licenses/tinyvec-1.11.0/LICENSE-MIT.md +5 -0
  371. package/bin/darwin-arm64/licenses/tinyvec-1.11.0/LICENSE-ZLIB.md +11 -0
  372. package/bin/darwin-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-APACHE.md +202 -0
  373. package/bin/darwin-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-MIT.md +21 -0
  374. package/bin/darwin-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-ZLIB.md +20 -0
  375. package/bin/darwin-arm64/licenses/tokio-1.52.3/LICENSE +21 -0
  376. package/bin/darwin-arm64/licenses/tokio-macros-2.7.0/LICENSE +22 -0
  377. package/bin/darwin-arm64/licenses/tokio-native-tls-0.3.1/LICENSE +25 -0
  378. package/bin/darwin-arm64/licenses/tokio-rustls-0.26.4/LICENSE-APACHE +201 -0
  379. package/bin/darwin-arm64/licenses/tokio-rustls-0.26.4/LICENSE-MIT +25 -0
  380. package/bin/darwin-arm64/licenses/tokio-tungstenite-0.24.0/LICENSE +20 -0
  381. package/bin/darwin-arm64/licenses/tokio-util-0.7.18/LICENSE +21 -0
  382. package/bin/darwin-arm64/licenses/tower-0.5.3/LICENSE +25 -0
  383. package/bin/darwin-arm64/licenses/tower-http-0.6.11/LICENSE +25 -0
  384. package/bin/darwin-arm64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  385. package/bin/darwin-arm64/licenses/tower-service-0.3.3/LICENSE +25 -0
  386. package/bin/darwin-arm64/licenses/tracing-0.1.44/LICENSE +25 -0
  387. package/bin/darwin-arm64/licenses/tracing-appender-0.2.5/LICENSE +25 -0
  388. package/bin/darwin-arm64/licenses/tracing-attributes-0.1.31/LICENSE +25 -0
  389. package/bin/darwin-arm64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  390. package/bin/darwin-arm64/licenses/tracing-log-0.2.0/LICENSE +25 -0
  391. package/bin/darwin-arm64/licenses/tracing-serde-0.2.0/LICENSE +25 -0
  392. package/bin/darwin-arm64/licenses/tracing-subscriber-0.3.23/LICENSE +25 -0
  393. package/bin/darwin-arm64/licenses/try-lock-0.2.5/LICENSE +21 -0
  394. package/bin/darwin-arm64/licenses/tungstenite-0.24.0/LICENSE-APACHE +201 -0
  395. package/bin/darwin-arm64/licenses/tungstenite-0.24.0/LICENSE-MIT +20 -0
  396. package/bin/darwin-arm64/licenses/typenum-1.20.1/LICENSE +1 -0
  397. package/bin/darwin-arm64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  398. package/bin/darwin-arm64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  399. package/bin/darwin-arm64/licenses/unicase-2.9.0/LICENSE-APACHE +201 -0
  400. package/bin/darwin-arm64/licenses/unicase-2.9.0/LICENSE-MIT +20 -0
  401. package/bin/darwin-arm64/licenses/unicode-ident-1.0.24/LICENSE-APACHE +176 -0
  402. package/bin/darwin-arm64/licenses/unicode-ident-1.0.24/LICENSE-MIT +23 -0
  403. package/bin/darwin-arm64/licenses/unicode-ident-1.0.24/LICENSE-UNICODE +39 -0
  404. package/bin/darwin-arm64/licenses/unicode-normalization-0.1.25/LICENSE-APACHE +201 -0
  405. package/bin/darwin-arm64/licenses/unicode-normalization-0.1.25/LICENSE-MIT +25 -0
  406. package/bin/darwin-arm64/licenses/unsafe-libyaml-0.2.11/LICENSE-MIT +23 -0
  407. package/bin/darwin-arm64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  408. package/bin/darwin-arm64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  409. package/bin/darwin-arm64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  410. package/bin/darwin-arm64/licenses/utf-8-0.7.6/LICENSE-APACHE +176 -0
  411. package/bin/darwin-arm64/licenses/utf-8-0.7.6/LICENSE-MIT +23 -0
  412. package/bin/darwin-arm64/licenses/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
  413. package/bin/darwin-arm64/licenses/utf8_iter-1.0.4/LICENSE-MIT +25 -0
  414. package/bin/darwin-arm64/licenses/utf8parse-0.2.2/LICENSE-APACHE +176 -0
  415. package/bin/darwin-arm64/licenses/utf8parse-0.2.2/LICENSE-MIT +25 -0
  416. package/bin/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  417. package/bin/darwin-arm64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  418. package/bin/darwin-arm64/licenses/version_check-0.9.5/LICENSE-APACHE +201 -0
  419. package/bin/darwin-arm64/licenses/version_check-0.9.5/LICENSE-MIT +19 -0
  420. package/bin/darwin-arm64/licenses/want-0.3.1/LICENSE +20 -0
  421. package/bin/darwin-arm64/licenses/webbrowser-1.2.4/LICENSE-APACHE +190 -0
  422. package/bin/darwin-arm64/licenses/webbrowser-1.2.4/LICENSE-MIT +27 -0
  423. package/bin/darwin-arm64/licenses/wiremock-0.6.5/LICENSE-APACHE +201 -0
  424. package/bin/darwin-arm64/licenses/wiremock-0.6.5/LICENSE-MIT +23 -0
  425. package/bin/darwin-arm64/licenses/writeable-0.6.3/LICENSE +46 -0
  426. package/bin/darwin-arm64/licenses/yoke-0.8.3/LICENSE +46 -0
  427. package/bin/darwin-arm64/licenses/yoke-derive-0.8.2/LICENSE +46 -0
  428. package/bin/darwin-arm64/licenses/zerocopy-0.8.52/LICENSE-APACHE +202 -0
  429. package/bin/darwin-arm64/licenses/zerocopy-0.8.52/LICENSE-BSD +24 -0
  430. package/bin/darwin-arm64/licenses/zerocopy-0.8.52/LICENSE-MIT +26 -0
  431. package/bin/darwin-arm64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  432. package/bin/darwin-arm64/licenses/zerofrom-derive-0.1.7/LICENSE +46 -0
  433. package/bin/darwin-arm64/licenses/zeroize-1.9.0/LICENSE-APACHE +202 -0
  434. package/bin/darwin-arm64/licenses/zeroize-1.9.0/LICENSE-MIT +25 -0
  435. package/bin/darwin-arm64/licenses/zeroize_derive-1.5.0/LICENSE-APACHE +202 -0
  436. package/bin/darwin-arm64/licenses/zeroize_derive-1.5.0/LICENSE-MIT +25 -0
  437. package/bin/darwin-arm64/licenses/zerotrie-0.2.4/LICENSE +46 -0
  438. package/bin/darwin-arm64/licenses/zerovec-0.11.6/LICENSE +46 -0
  439. package/bin/darwin-arm64/licenses/zerovec-derive-0.11.3/LICENSE +46 -0
  440. package/bin/darwin-arm64/licenses/zmij-1.0.21/LICENSE-MIT +23 -0
  441. package/bin/darwin-x64/action-api +0 -0
  442. package/bin/darwin-x64/dependencies.json +2409 -0
  443. package/bin/darwin-x64/licenses/adler2-2.0.1/LICENSE-0BSD +12 -0
  444. package/bin/darwin-x64/licenses/adler2-2.0.1/LICENSE-APACHE +201 -0
  445. package/bin/darwin-x64/licenses/adler2-2.0.1/LICENSE-MIT +23 -0
  446. package/bin/darwin-x64/licenses/aho-corasick-1.1.4/COPYING +3 -0
  447. package/bin/darwin-x64/licenses/aho-corasick-1.1.4/LICENSE-MIT +21 -0
  448. package/bin/darwin-x64/licenses/anstream-1.0.0/LICENSE-APACHE +202 -0
  449. package/bin/darwin-x64/licenses/anstream-1.0.0/LICENSE-MIT +19 -0
  450. package/bin/darwin-x64/licenses/anstyle-1.0.14/LICENSE-APACHE +202 -0
  451. package/bin/darwin-x64/licenses/anstyle-1.0.14/LICENSE-MIT +19 -0
  452. package/bin/darwin-x64/licenses/anstyle-parse-1.0.0/LICENSE-APACHE +202 -0
  453. package/bin/darwin-x64/licenses/anstyle-parse-1.0.0/LICENSE-MIT +19 -0
  454. package/bin/darwin-x64/licenses/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
  455. package/bin/darwin-x64/licenses/anstyle-query-1.1.5/LICENSE-MIT +19 -0
  456. package/bin/darwin-x64/licenses/anyhow-1.0.103/LICENSE-APACHE +176 -0
  457. package/bin/darwin-x64/licenses/anyhow-1.0.103/LICENSE-MIT +23 -0
  458. package/bin/darwin-x64/licenses/assert-json-diff-2.0.2/LICENSE +7 -0
  459. package/bin/darwin-x64/licenses/async-compression-0.4.43/LICENSE-APACHE +201 -0
  460. package/bin/darwin-x64/licenses/async-compression-0.4.43/LICENSE-MIT +21 -0
  461. package/bin/darwin-x64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  462. package/bin/darwin-x64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  463. package/bin/darwin-x64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  464. package/bin/darwin-x64/licenses/base64-0.22.1/LICENSE-APACHE +201 -0
  465. package/bin/darwin-x64/licenses/base64-0.22.1/LICENSE-MIT +21 -0
  466. package/bin/darwin-x64/licenses/bitflags-2.13.0/LICENSE-APACHE +201 -0
  467. package/bin/darwin-x64/licenses/bitflags-2.13.0/LICENSE-MIT +25 -0
  468. package/bin/darwin-x64/licenses/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  469. package/bin/darwin-x64/licenses/block-buffer-0.10.4/LICENSE-MIT +25 -0
  470. package/bin/darwin-x64/licenses/byteorder-1.5.0/COPYING +3 -0
  471. package/bin/darwin-x64/licenses/byteorder-1.5.0/LICENSE-MIT +21 -0
  472. package/bin/darwin-x64/licenses/bytes-1.12.0/LICENSE +25 -0
  473. package/bin/darwin-x64/licenses/cc-1.2.65/LICENSE-APACHE +201 -0
  474. package/bin/darwin-x64/licenses/cc-1.2.65/LICENSE-MIT +25 -0
  475. package/bin/darwin-x64/licenses/cfg-if-1.0.4/LICENSE-APACHE +201 -0
  476. package/bin/darwin-x64/licenses/cfg-if-1.0.4/LICENSE-MIT +25 -0
  477. package/bin/darwin-x64/licenses/cfg_aliases-0.2.1/LICENSE +9 -0
  478. package/bin/darwin-x64/licenses/clap-4.6.1/LICENSE-APACHE +202 -0
  479. package/bin/darwin-x64/licenses/clap-4.6.1/LICENSE-MIT +19 -0
  480. package/bin/darwin-x64/licenses/clap_builder-4.6.0/LICENSE-APACHE +202 -0
  481. package/bin/darwin-x64/licenses/clap_builder-4.6.0/LICENSE-MIT +19 -0
  482. package/bin/darwin-x64/licenses/clap_complete-4.6.5/LICENSE-APACHE +202 -0
  483. package/bin/darwin-x64/licenses/clap_complete-4.6.5/LICENSE-MIT +19 -0
  484. package/bin/darwin-x64/licenses/clap_derive-4.6.1/LICENSE-APACHE +202 -0
  485. package/bin/darwin-x64/licenses/clap_derive-4.6.1/LICENSE-MIT +19 -0
  486. package/bin/darwin-x64/licenses/clap_lex-1.1.0/LICENSE-APACHE +202 -0
  487. package/bin/darwin-x64/licenses/clap_lex-1.1.0/LICENSE-MIT +19 -0
  488. package/bin/darwin-x64/licenses/clap_mangen-0.2.33/LICENSE-APACHE +202 -0
  489. package/bin/darwin-x64/licenses/clap_mangen-0.2.33/LICENSE-MIT +19 -0
  490. package/bin/darwin-x64/licenses/colorchoice-1.0.5/LICENSE-APACHE +202 -0
  491. package/bin/darwin-x64/licenses/colorchoice-1.0.5/LICENSE-MIT +19 -0
  492. package/bin/darwin-x64/licenses/compression-codecs-0.4.38/LICENSE-APACHE +201 -0
  493. package/bin/darwin-x64/licenses/compression-codecs-0.4.38/LICENSE-MIT +21 -0
  494. package/bin/darwin-x64/licenses/compression-core-0.4.32/LICENSE-APACHE +201 -0
  495. package/bin/darwin-x64/licenses/compression-core-0.4.32/LICENSE-MIT +21 -0
  496. package/bin/darwin-x64/licenses/core-foundation-0.10.1/LICENSE-APACHE +201 -0
  497. package/bin/darwin-x64/licenses/core-foundation-0.10.1/LICENSE-MIT +25 -0
  498. package/bin/darwin-x64/licenses/core-foundation-sys-0.8.7/LICENSE-APACHE +201 -0
  499. package/bin/darwin-x64/licenses/core-foundation-sys-0.8.7/LICENSE-MIT +25 -0
  500. package/bin/darwin-x64/licenses/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  501. package/bin/darwin-x64/licenses/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  502. package/bin/darwin-x64/licenses/crc32fast-1.5.0/LICENSE-APACHE +202 -0
  503. package/bin/darwin-x64/licenses/crc32fast-1.5.0/LICENSE-MIT +21 -0
  504. package/bin/darwin-x64/licenses/crossbeam-channel-0.5.15/LICENSE-APACHE +201 -0
  505. package/bin/darwin-x64/licenses/crossbeam-channel-0.5.15/LICENSE-MIT +27 -0
  506. package/bin/darwin-x64/licenses/crossbeam-channel-0.5.15/LICENSE-THIRD-PARTY +593 -0
  507. package/bin/darwin-x64/licenses/crossbeam-utils-0.8.21/LICENSE-APACHE +201 -0
  508. package/bin/darwin-x64/licenses/crossbeam-utils-0.8.21/LICENSE-MIT +27 -0
  509. package/bin/darwin-x64/licenses/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  510. package/bin/darwin-x64/licenses/crypto-common-0.1.7/LICENSE-MIT +25 -0
  511. package/bin/darwin-x64/licenses/data-encoding-2.11.0/LICENSE +22 -0
  512. package/bin/darwin-x64/licenses/deadpool-0.12.3/LICENSE-APACHE +202 -0
  513. package/bin/darwin-x64/licenses/deadpool-0.12.3/LICENSE-MIT +21 -0
  514. package/bin/darwin-x64/licenses/deadpool-runtime-0.1.4/LICENSE-APACHE +202 -0
  515. package/bin/darwin-x64/licenses/deadpool-runtime-0.1.4/LICENSE-MIT +21 -0
  516. package/bin/darwin-x64/licenses/deranged-0.5.8/LICENSE-Apache +202 -0
  517. package/bin/darwin-x64/licenses/deranged-0.5.8/LICENSE-MIT +19 -0
  518. package/bin/darwin-x64/licenses/deunicode-1.6.2/LICENSE +26 -0
  519. package/bin/darwin-x64/licenses/digest-0.10.7/LICENSE-APACHE +201 -0
  520. package/bin/darwin-x64/licenses/digest-0.10.7/LICENSE-MIT +25 -0
  521. package/bin/darwin-x64/licenses/dispatch2-0.3.1/objc2-LICENSE.md +34 -0
  522. package/bin/darwin-x64/licenses/displaydoc-0.2.6/LICENSE-APACHE +201 -0
  523. package/bin/darwin-x64/licenses/displaydoc-0.2.6/LICENSE-MIT +23 -0
  524. package/bin/darwin-x64/licenses/dotenvy-0.15.7/LICENSE +21 -0
  525. package/bin/darwin-x64/licenses/equivalent-1.0.2/LICENSE-APACHE +201 -0
  526. package/bin/darwin-x64/licenses/equivalent-1.0.2/LICENSE-MIT +25 -0
  527. package/bin/darwin-x64/licenses/errno-0.3.14/LICENSE-APACHE +201 -0
  528. package/bin/darwin-x64/licenses/errno-0.3.14/LICENSE-MIT +25 -0
  529. package/bin/darwin-x64/licenses/fastrand-2.4.1/LICENSE-APACHE +201 -0
  530. package/bin/darwin-x64/licenses/fastrand-2.4.1/LICENSE-MIT +23 -0
  531. package/bin/darwin-x64/licenses/find-msvc-tools-0.1.9/LICENSE-APACHE +201 -0
  532. package/bin/darwin-x64/licenses/find-msvc-tools-0.1.9/LICENSE-MIT +25 -0
  533. package/bin/darwin-x64/licenses/flate2-1.1.9/LICENSE-APACHE +201 -0
  534. package/bin/darwin-x64/licenses/flate2-1.1.9/LICENSE-MIT +25 -0
  535. package/bin/darwin-x64/licenses/fnv-1.0.7/LICENSE-APACHE +201 -0
  536. package/bin/darwin-x64/licenses/fnv-1.0.7/LICENSE-MIT +25 -0
  537. package/bin/darwin-x64/licenses/foreign-types-0.3.2/LICENSE-APACHE +202 -0
  538. package/bin/darwin-x64/licenses/foreign-types-0.3.2/LICENSE-MIT +19 -0
  539. package/bin/darwin-x64/licenses/foreign-types-shared-0.1.1/LICENSE-APACHE +202 -0
  540. package/bin/darwin-x64/licenses/foreign-types-shared-0.1.1/LICENSE-MIT +19 -0
  541. package/bin/darwin-x64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  542. package/bin/darwin-x64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  543. package/bin/darwin-x64/licenses/futures-0.3.32/LICENSE-APACHE +202 -0
  544. package/bin/darwin-x64/licenses/futures-0.3.32/LICENSE-MIT +26 -0
  545. package/bin/darwin-x64/licenses/futures-channel-0.3.32/LICENSE-APACHE +202 -0
  546. package/bin/darwin-x64/licenses/futures-channel-0.3.32/LICENSE-MIT +26 -0
  547. package/bin/darwin-x64/licenses/futures-core-0.3.32/LICENSE-APACHE +202 -0
  548. package/bin/darwin-x64/licenses/futures-core-0.3.32/LICENSE-MIT +26 -0
  549. package/bin/darwin-x64/licenses/futures-executor-0.3.32/LICENSE-APACHE +202 -0
  550. package/bin/darwin-x64/licenses/futures-executor-0.3.32/LICENSE-MIT +26 -0
  551. package/bin/darwin-x64/licenses/futures-io-0.3.32/LICENSE-APACHE +202 -0
  552. package/bin/darwin-x64/licenses/futures-io-0.3.32/LICENSE-MIT +26 -0
  553. package/bin/darwin-x64/licenses/futures-macro-0.3.32/LICENSE-APACHE +202 -0
  554. package/bin/darwin-x64/licenses/futures-macro-0.3.32/LICENSE-MIT +26 -0
  555. package/bin/darwin-x64/licenses/futures-sink-0.3.32/LICENSE-APACHE +202 -0
  556. package/bin/darwin-x64/licenses/futures-sink-0.3.32/LICENSE-MIT +26 -0
  557. package/bin/darwin-x64/licenses/futures-task-0.3.32/LICENSE-APACHE +202 -0
  558. package/bin/darwin-x64/licenses/futures-task-0.3.32/LICENSE-MIT +26 -0
  559. package/bin/darwin-x64/licenses/futures-util-0.3.32/LICENSE-APACHE +202 -0
  560. package/bin/darwin-x64/licenses/futures-util-0.3.32/LICENSE-MIT +26 -0
  561. package/bin/darwin-x64/licenses/generic-array-0.14.7/LICENSE +21 -0
  562. package/bin/darwin-x64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  563. package/bin/darwin-x64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  564. package/bin/darwin-x64/licenses/getrandom-0.3.4/LICENSE-APACHE +201 -0
  565. package/bin/darwin-x64/licenses/getrandom-0.3.4/LICENSE-MIT +26 -0
  566. package/bin/darwin-x64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  567. package/bin/darwin-x64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  568. package/bin/darwin-x64/licenses/h2-0.4.16/LICENSE +25 -0
  569. package/bin/darwin-x64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  570. package/bin/darwin-x64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  571. package/bin/darwin-x64/licenses/heck-0.5.0/LICENSE-APACHE +201 -0
  572. package/bin/darwin-x64/licenses/heck-0.5.0/LICENSE-MIT +25 -0
  573. package/bin/darwin-x64/licenses/hmac-0.12.1/LICENSE-APACHE +201 -0
  574. package/bin/darwin-x64/licenses/hmac-0.12.1/LICENSE-MIT +25 -0
  575. package/bin/darwin-x64/licenses/http-1.4.2/LICENSE-APACHE +201 -0
  576. package/bin/darwin-x64/licenses/http-1.4.2/LICENSE-MIT +25 -0
  577. package/bin/darwin-x64/licenses/http-body-1.0.1/LICENSE +25 -0
  578. package/bin/darwin-x64/licenses/http-body-util-0.1.3/LICENSE +25 -0
  579. package/bin/darwin-x64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  580. package/bin/darwin-x64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  581. package/bin/darwin-x64/licenses/httpdate-1.0.3/LICENSE-APACHE +201 -0
  582. package/bin/darwin-x64/licenses/httpdate-1.0.3/LICENSE-MIT +19 -0
  583. package/bin/darwin-x64/licenses/hyper-1.10.1/LICENSE +19 -0
  584. package/bin/darwin-x64/licenses/hyper-rustls-0.27.9/LICENSE-APACHE +201 -0
  585. package/bin/darwin-x64/licenses/hyper-rustls-0.27.9/LICENSE-ISC +15 -0
  586. package/bin/darwin-x64/licenses/hyper-rustls-0.27.9/LICENSE-MIT +25 -0
  587. package/bin/darwin-x64/licenses/hyper-tls-0.6.0/LICENSE-APACHE +201 -0
  588. package/bin/darwin-x64/licenses/hyper-tls-0.6.0/LICENSE-MIT +20 -0
  589. package/bin/darwin-x64/licenses/hyper-util-0.1.20/LICENSE +19 -0
  590. package/bin/darwin-x64/licenses/icu_collections-2.2.0/LICENSE +46 -0
  591. package/bin/darwin-x64/licenses/icu_locale_core-2.2.0/LICENSE +46 -0
  592. package/bin/darwin-x64/licenses/icu_normalizer-2.2.0/LICENSE +46 -0
  593. package/bin/darwin-x64/licenses/icu_normalizer_data-2.2.0/LICENSE +46 -0
  594. package/bin/darwin-x64/licenses/icu_properties-2.2.0/LICENSE +46 -0
  595. package/bin/darwin-x64/licenses/icu_properties_data-2.2.0/LICENSE +46 -0
  596. package/bin/darwin-x64/licenses/icu_provider-2.2.0/LICENSE +46 -0
  597. package/bin/darwin-x64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  598. package/bin/darwin-x64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  599. package/bin/darwin-x64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  600. package/bin/darwin-x64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  601. package/bin/darwin-x64/licenses/indexmap-2.14.0/LICENSE-APACHE +201 -0
  602. package/bin/darwin-x64/licenses/indexmap-2.14.0/LICENSE-MIT +25 -0
  603. package/bin/darwin-x64/licenses/inventory-0.3.24/LICENSE-APACHE +176 -0
  604. package/bin/darwin-x64/licenses/inventory-0.3.24/LICENSE-MIT +23 -0
  605. package/bin/darwin-x64/licenses/ipnet-2.12.0/LICENSE-APACHE +201 -0
  606. package/bin/darwin-x64/licenses/ipnet-2.12.0/LICENSE-MIT +7 -0
  607. package/bin/darwin-x64/licenses/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
  608. package/bin/darwin-x64/licenses/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
  609. package/bin/darwin-x64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  610. package/bin/darwin-x64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  611. package/bin/darwin-x64/licenses/jmespath-0.3.0/jmespath-LICENSE +19 -0
  612. package/bin/darwin-x64/licenses/keyring-3.6.3/LICENSE-APACHE +201 -0
  613. package/bin/darwin-x64/licenses/keyring-3.6.3/LICENSE-MIT +25 -0
  614. package/bin/darwin-x64/licenses/lazy_static-1.5.0/LICENSE-APACHE +201 -0
  615. package/bin/darwin-x64/licenses/lazy_static-1.5.0/LICENSE-MIT +25 -0
  616. package/bin/darwin-x64/licenses/libc-0.2.186/LICENSE-APACHE +176 -0
  617. package/bin/darwin-x64/licenses/libc-0.2.186/LICENSE-MIT +25 -0
  618. package/bin/darwin-x64/licenses/litemap-0.8.2/LICENSE +46 -0
  619. package/bin/darwin-x64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  620. package/bin/darwin-x64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  621. package/bin/darwin-x64/licenses/log-0.4.33/LICENSE-APACHE +201 -0
  622. package/bin/darwin-x64/licenses/log-0.4.33/LICENSE-MIT +25 -0
  623. package/bin/darwin-x64/licenses/lru-slab-0.1.2/LICENSE-APACHE +202 -0
  624. package/bin/darwin-x64/licenses/lru-slab-0.1.2/LICENSE-MIT +7 -0
  625. package/bin/darwin-x64/licenses/lru-slab-0.1.2/LICENSE-ZLIB +19 -0
  626. package/bin/darwin-x64/licenses/matchers-0.2.0/LICENSE +19 -0
  627. package/bin/darwin-x64/licenses/memchr-2.8.2/COPYING +3 -0
  628. package/bin/darwin-x64/licenses/memchr-2.8.2/LICENSE-MIT +21 -0
  629. package/bin/darwin-x64/licenses/mime-0.3.17/LICENSE-APACHE +201 -0
  630. package/bin/darwin-x64/licenses/mime-0.3.17/LICENSE-MIT +20 -0
  631. package/bin/darwin-x64/licenses/mime_guess-2.0.5/LICENSE +22 -0
  632. package/bin/darwin-x64/licenses/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  633. package/bin/darwin-x64/licenses/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  634. package/bin/darwin-x64/licenses/minimal-lexical-0.2.1/LICENSE.md +37 -0
  635. package/bin/darwin-x64/licenses/miniz_oxide-0.8.9/LICENSE +25 -0
  636. package/bin/darwin-x64/licenses/miniz_oxide-0.8.9/LICENSE-APACHE.md +177 -0
  637. package/bin/darwin-x64/licenses/miniz_oxide-0.8.9/LICENSE-MIT.md +24 -0
  638. package/bin/darwin-x64/licenses/miniz_oxide-0.8.9/LICENSE-ZLIB.md +14 -0
  639. package/bin/darwin-x64/licenses/mio-1.2.1/LICENSE +19 -0
  640. package/bin/darwin-x64/licenses/native-tls-0.2.18/LICENSE-APACHE +202 -0
  641. package/bin/darwin-x64/licenses/native-tls-0.2.18/LICENSE-MIT +19 -0
  642. package/bin/darwin-x64/licenses/nom-7.1.3/LICENSE +20 -0
  643. package/bin/darwin-x64/licenses/nu-ansi-term-0.50.3/LICENSE +22 -0
  644. package/bin/darwin-x64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  645. package/bin/darwin-x64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  646. package/bin/darwin-x64/licenses/num_cpus-1.17.0/LICENSE-APACHE +201 -0
  647. package/bin/darwin-x64/licenses/num_cpus-1.17.0/LICENSE-MIT +20 -0
  648. package/bin/darwin-x64/licenses/objc2-0.6.4/objc2-LICENSE.md +34 -0
  649. package/bin/darwin-x64/licenses/objc2-app-kit-0.3.2/objc2-LICENSE.md +34 -0
  650. package/bin/darwin-x64/licenses/objc2-core-foundation-0.3.2/objc2-LICENSE.md +34 -0
  651. package/bin/darwin-x64/licenses/objc2-encode-4.1.0/objc2-LICENSE.md +34 -0
  652. package/bin/darwin-x64/licenses/objc2-foundation-0.3.2/objc2-LICENSE.md +34 -0
  653. package/bin/darwin-x64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  654. package/bin/darwin-x64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  655. package/bin/darwin-x64/licenses/openssl-0.10.81/LICENSE +15 -0
  656. package/bin/darwin-x64/licenses/openssl-0.10.81/LICENSE-APACHE +202 -0
  657. package/bin/darwin-x64/licenses/openssl-macros-0.1.1/LICENSE-APACHE +202 -0
  658. package/bin/darwin-x64/licenses/openssl-macros-0.1.1/LICENSE-MIT +19 -0
  659. package/bin/darwin-x64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-APACHE +201 -0
  660. package/bin/darwin-x64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-MIT +25 -0
  661. package/bin/darwin-x64/licenses/openssl-sys-0.9.117/LICENSE-MIT +25 -0
  662. package/bin/darwin-x64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  663. package/bin/darwin-x64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  664. package/bin/darwin-x64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  665. package/bin/darwin-x64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  666. package/bin/darwin-x64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  667. package/bin/darwin-x64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  668. package/bin/darwin-x64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  669. package/bin/darwin-x64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  670. package/bin/darwin-x64/licenses/pkg-config-0.3.33/LICENSE-APACHE +201 -0
  671. package/bin/darwin-x64/licenses/pkg-config-0.3.33/LICENSE-MIT +25 -0
  672. package/bin/darwin-x64/licenses/potential_utf-0.1.5/LICENSE +46 -0
  673. package/bin/darwin-x64/licenses/powerfmt-0.2.0/LICENSE-Apache +202 -0
  674. package/bin/darwin-x64/licenses/powerfmt-0.2.0/LICENSE-MIT +19 -0
  675. package/bin/darwin-x64/licenses/ppv-lite86-0.2.21/LICENSE-APACHE +201 -0
  676. package/bin/darwin-x64/licenses/ppv-lite86-0.2.21/LICENSE-MIT +25 -0
  677. package/bin/darwin-x64/licenses/proc-macro2-1.0.106/LICENSE-APACHE +176 -0
  678. package/bin/darwin-x64/licenses/proc-macro2-1.0.106/LICENSE-MIT +23 -0
  679. package/bin/darwin-x64/licenses/quinn-0.11.11/LICENSE-APACHE +201 -0
  680. package/bin/darwin-x64/licenses/quinn-0.11.11/LICENSE-MIT +7 -0
  681. package/bin/darwin-x64/licenses/quinn-proto-0.11.15/LICENSE-APACHE +201 -0
  682. package/bin/darwin-x64/licenses/quinn-proto-0.11.15/LICENSE-MIT +7 -0
  683. package/bin/darwin-x64/licenses/quinn-udp-0.5.14/LICENSE-APACHE +201 -0
  684. package/bin/darwin-x64/licenses/quinn-udp-0.5.14/LICENSE-MIT +7 -0
  685. package/bin/darwin-x64/licenses/quote-1.0.46/LICENSE-APACHE +176 -0
  686. package/bin/darwin-x64/licenses/quote-1.0.46/LICENSE-MIT +23 -0
  687. package/bin/darwin-x64/licenses/rand-0.8.6/LICENSE-APACHE +176 -0
  688. package/bin/darwin-x64/licenses/rand-0.8.6/LICENSE-MIT +26 -0
  689. package/bin/darwin-x64/licenses/rand-0.9.4/LICENSE-APACHE +176 -0
  690. package/bin/darwin-x64/licenses/rand-0.9.4/LICENSE-MIT +26 -0
  691. package/bin/darwin-x64/licenses/rand_chacha-0.3.1/LICENSE-APACHE +201 -0
  692. package/bin/darwin-x64/licenses/rand_chacha-0.3.1/LICENSE-MIT +26 -0
  693. package/bin/darwin-x64/licenses/rand_chacha-0.9.0/LICENSE-APACHE +176 -0
  694. package/bin/darwin-x64/licenses/rand_chacha-0.9.0/LICENSE-MIT +26 -0
  695. package/bin/darwin-x64/licenses/rand_core-0.6.4/LICENSE-APACHE +187 -0
  696. package/bin/darwin-x64/licenses/rand_core-0.6.4/LICENSE-MIT +26 -0
  697. package/bin/darwin-x64/licenses/rand_core-0.9.5/LICENSE-APACHE +187 -0
  698. package/bin/darwin-x64/licenses/rand_core-0.9.5/LICENSE-MIT +26 -0
  699. package/bin/darwin-x64/licenses/regex-1.12.4/LICENSE-APACHE +201 -0
  700. package/bin/darwin-x64/licenses/regex-1.12.4/LICENSE-MIT +25 -0
  701. package/bin/darwin-x64/licenses/regex-automata-0.4.14/LICENSE-APACHE +201 -0
  702. package/bin/darwin-x64/licenses/regex-automata-0.4.14/LICENSE-MIT +25 -0
  703. package/bin/darwin-x64/licenses/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
  704. package/bin/darwin-x64/licenses/regex-syntax-0.8.11/LICENSE-MIT +25 -0
  705. package/bin/darwin-x64/licenses/reqwest-0.12.28/LICENSE-APACHE +201 -0
  706. package/bin/darwin-x64/licenses/reqwest-0.12.28/LICENSE-MIT +20 -0
  707. package/bin/darwin-x64/licenses/ring-0.17.14/LICENSE +9 -0
  708. package/bin/darwin-x64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  709. package/bin/darwin-x64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  710. package/bin/darwin-x64/licenses/roff-1.1.1/LICENSE-APACHE +202 -0
  711. package/bin/darwin-x64/licenses/roff-1.1.1/LICENSE-MIT +19 -0
  712. package/bin/darwin-x64/licenses/rustc-hash-2.1.2/LICENSE-APACHE +176 -0
  713. package/bin/darwin-x64/licenses/rustc-hash-2.1.2/LICENSE-MIT +23 -0
  714. package/bin/darwin-x64/licenses/rustix-1.1.4/LICENSE-APACHE +201 -0
  715. package/bin/darwin-x64/licenses/rustix-1.1.4/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  716. package/bin/darwin-x64/licenses/rustix-1.1.4/LICENSE-MIT +23 -0
  717. package/bin/darwin-x64/licenses/rustls-0.23.41/LICENSE-APACHE +201 -0
  718. package/bin/darwin-x64/licenses/rustls-0.23.41/LICENSE-ISC +15 -0
  719. package/bin/darwin-x64/licenses/rustls-0.23.41/LICENSE-MIT +25 -0
  720. package/bin/darwin-x64/licenses/rustls-native-certs-0.8.4/LICENSE +10 -0
  721. package/bin/darwin-x64/licenses/rustls-native-certs-0.8.4/LICENSE-APACHE +201 -0
  722. package/bin/darwin-x64/licenses/rustls-native-certs-0.8.4/LICENSE-ISC +15 -0
  723. package/bin/darwin-x64/licenses/rustls-native-certs-0.8.4/LICENSE-MIT +25 -0
  724. package/bin/darwin-x64/licenses/rustls-pki-types-1.14.1/LICENSE-APACHE +201 -0
  725. package/bin/darwin-x64/licenses/rustls-pki-types-1.14.1/LICENSE-MIT +25 -0
  726. package/bin/darwin-x64/licenses/rustls-webpki-0.103.13/LICENSE +19 -0
  727. package/bin/darwin-x64/licenses/ryu-1.0.23/LICENSE-APACHE +176 -0
  728. package/bin/darwin-x64/licenses/ryu-1.0.23/LICENSE-BOOST +23 -0
  729. package/bin/darwin-x64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  730. package/bin/darwin-x64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  731. package/bin/darwin-x64/licenses/secrecy-0.10.3/LICENSE-APACHE +202 -0
  732. package/bin/darwin-x64/licenses/secrecy-0.10.3/LICENSE-MIT +21 -0
  733. package/bin/darwin-x64/licenses/security-framework-3.7.0/LICENSE-APACHE +201 -0
  734. package/bin/darwin-x64/licenses/security-framework-3.7.0/LICENSE-MIT +20 -0
  735. package/bin/darwin-x64/licenses/security-framework-sys-2.17.0/LICENSE-APACHE +201 -0
  736. package/bin/darwin-x64/licenses/security-framework-sys-2.17.0/LICENSE-MIT +20 -0
  737. package/bin/darwin-x64/licenses/serde-1.0.228/LICENSE-APACHE +176 -0
  738. package/bin/darwin-x64/licenses/serde-1.0.228/LICENSE-MIT +23 -0
  739. package/bin/darwin-x64/licenses/serde_core-1.0.228/LICENSE-APACHE +176 -0
  740. package/bin/darwin-x64/licenses/serde_core-1.0.228/LICENSE-MIT +23 -0
  741. package/bin/darwin-x64/licenses/serde_derive-1.0.228/LICENSE-APACHE +176 -0
  742. package/bin/darwin-x64/licenses/serde_derive-1.0.228/LICENSE-MIT +23 -0
  743. package/bin/darwin-x64/licenses/serde_json-1.0.150/LICENSE-APACHE +176 -0
  744. package/bin/darwin-x64/licenses/serde_json-1.0.150/LICENSE-MIT +23 -0
  745. package/bin/darwin-x64/licenses/serde_json_path-0.7.2/LICENSE-MIT +21 -0
  746. package/bin/darwin-x64/licenses/serde_json_path_core-0.2.2/LICENSE-MIT +21 -0
  747. package/bin/darwin-x64/licenses/serde_json_path_macros-0.1.6/LICENSE-MIT +21 -0
  748. package/bin/darwin-x64/licenses/serde_json_path_macros_internal-0.1.2/LICENSE-MIT +21 -0
  749. package/bin/darwin-x64/licenses/serde_qs-1.1.2/LICENSE-APACHE +176 -0
  750. package/bin/darwin-x64/licenses/serde_qs-1.1.2/LICENSE-MIT +27 -0
  751. package/bin/darwin-x64/licenses/serde_urlencoded-0.7.1/LICENSE-APACHE +176 -0
  752. package/bin/darwin-x64/licenses/serde_urlencoded-0.7.1/LICENSE-MIT +25 -0
  753. package/bin/darwin-x64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-APACHE +176 -0
  754. package/bin/darwin-x64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-MIT +23 -0
  755. package/bin/darwin-x64/licenses/serial_test-3.5.0/LICENSE +19 -0
  756. package/bin/darwin-x64/licenses/serial_test_derive-3.5.0/LICENSE +19 -0
  757. package/bin/darwin-x64/licenses/sha1-0.10.6/LICENSE-APACHE +201 -0
  758. package/bin/darwin-x64/licenses/sha1-0.10.6/LICENSE-MIT +27 -0
  759. package/bin/darwin-x64/licenses/sha2-0.10.9/LICENSE-APACHE +201 -0
  760. package/bin/darwin-x64/licenses/sha2-0.10.9/LICENSE-MIT +27 -0
  761. package/bin/darwin-x64/licenses/sharded-slab-0.1.7/LICENSE +19 -0
  762. package/bin/darwin-x64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  763. package/bin/darwin-x64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  764. package/bin/darwin-x64/licenses/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
  765. package/bin/darwin-x64/licenses/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
  766. package/bin/darwin-x64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  767. package/bin/darwin-x64/licenses/slab-0.4.12/LICENSE +25 -0
  768. package/bin/darwin-x64/licenses/slug-0.1.6/LICENSE-APACHE +201 -0
  769. package/bin/darwin-x64/licenses/slug-0.1.6/LICENSE-MIT +25 -0
  770. package/bin/darwin-x64/licenses/smallvec-1.15.2/LICENSE-APACHE +201 -0
  771. package/bin/darwin-x64/licenses/smallvec-1.15.2/LICENSE-MIT +25 -0
  772. package/bin/darwin-x64/licenses/socket2-0.6.4/LICENSE-APACHE +201 -0
  773. package/bin/darwin-x64/licenses/socket2-0.6.4/LICENSE-MIT +25 -0
  774. package/bin/darwin-x64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  775. package/bin/darwin-x64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  776. package/bin/darwin-x64/licenses/strsim-0.11.1/LICENSE +23 -0
  777. package/bin/darwin-x64/licenses/subtle-2.6.1/LICENSE +29 -0
  778. package/bin/darwin-x64/licenses/symlink-0.1.0/LICENSE-APACHE +201 -0
  779. package/bin/darwin-x64/licenses/symlink-0.1.0/LICENSE-MIT +25 -0
  780. package/bin/darwin-x64/licenses/syn-2.0.118/LICENSE-APACHE +176 -0
  781. package/bin/darwin-x64/licenses/syn-2.0.118/LICENSE-MIT +23 -0
  782. package/bin/darwin-x64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  783. package/bin/darwin-x64/licenses/synstructure-0.13.2/LICENSE +7 -0
  784. package/bin/darwin-x64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  785. package/bin/darwin-x64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  786. package/bin/darwin-x64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  787. package/bin/darwin-x64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  788. package/bin/darwin-x64/licenses/thiserror-2.0.18/LICENSE-APACHE +176 -0
  789. package/bin/darwin-x64/licenses/thiserror-2.0.18/LICENSE-MIT +23 -0
  790. package/bin/darwin-x64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  791. package/bin/darwin-x64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  792. package/bin/darwin-x64/licenses/thiserror-impl-2.0.18/LICENSE-APACHE +176 -0
  793. package/bin/darwin-x64/licenses/thiserror-impl-2.0.18/LICENSE-MIT +23 -0
  794. package/bin/darwin-x64/licenses/thread_local-1.1.9/LICENSE-APACHE +201 -0
  795. package/bin/darwin-x64/licenses/thread_local-1.1.9/LICENSE-MIT +25 -0
  796. package/bin/darwin-x64/licenses/time-0.3.51/LICENSE-Apache +177 -0
  797. package/bin/darwin-x64/licenses/time-0.3.51/LICENSE-MIT +19 -0
  798. package/bin/darwin-x64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  799. package/bin/darwin-x64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  800. package/bin/darwin-x64/licenses/time-macros-0.2.30/LICENSE-Apache +177 -0
  801. package/bin/darwin-x64/licenses/time-macros-0.2.30/LICENSE-MIT +19 -0
  802. package/bin/darwin-x64/licenses/tinystr-0.8.3/LICENSE +46 -0
  803. package/bin/darwin-x64/licenses/tinyvec-1.11.0/LICENSE-APACHE.md +202 -0
  804. package/bin/darwin-x64/licenses/tinyvec-1.11.0/LICENSE-MIT.md +5 -0
  805. package/bin/darwin-x64/licenses/tinyvec-1.11.0/LICENSE-ZLIB.md +11 -0
  806. package/bin/darwin-x64/licenses/tinyvec_macros-0.1.1/LICENSE-APACHE.md +202 -0
  807. package/bin/darwin-x64/licenses/tinyvec_macros-0.1.1/LICENSE-MIT.md +21 -0
  808. package/bin/darwin-x64/licenses/tinyvec_macros-0.1.1/LICENSE-ZLIB.md +20 -0
  809. package/bin/darwin-x64/licenses/tokio-1.52.3/LICENSE +21 -0
  810. package/bin/darwin-x64/licenses/tokio-macros-2.7.0/LICENSE +22 -0
  811. package/bin/darwin-x64/licenses/tokio-native-tls-0.3.1/LICENSE +25 -0
  812. package/bin/darwin-x64/licenses/tokio-rustls-0.26.4/LICENSE-APACHE +201 -0
  813. package/bin/darwin-x64/licenses/tokio-rustls-0.26.4/LICENSE-MIT +25 -0
  814. package/bin/darwin-x64/licenses/tokio-tungstenite-0.24.0/LICENSE +20 -0
  815. package/bin/darwin-x64/licenses/tokio-util-0.7.18/LICENSE +21 -0
  816. package/bin/darwin-x64/licenses/tower-0.5.3/LICENSE +25 -0
  817. package/bin/darwin-x64/licenses/tower-http-0.6.11/LICENSE +25 -0
  818. package/bin/darwin-x64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  819. package/bin/darwin-x64/licenses/tower-service-0.3.3/LICENSE +25 -0
  820. package/bin/darwin-x64/licenses/tracing-0.1.44/LICENSE +25 -0
  821. package/bin/darwin-x64/licenses/tracing-appender-0.2.5/LICENSE +25 -0
  822. package/bin/darwin-x64/licenses/tracing-attributes-0.1.31/LICENSE +25 -0
  823. package/bin/darwin-x64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  824. package/bin/darwin-x64/licenses/tracing-log-0.2.0/LICENSE +25 -0
  825. package/bin/darwin-x64/licenses/tracing-serde-0.2.0/LICENSE +25 -0
  826. package/bin/darwin-x64/licenses/tracing-subscriber-0.3.23/LICENSE +25 -0
  827. package/bin/darwin-x64/licenses/try-lock-0.2.5/LICENSE +21 -0
  828. package/bin/darwin-x64/licenses/tungstenite-0.24.0/LICENSE-APACHE +201 -0
  829. package/bin/darwin-x64/licenses/tungstenite-0.24.0/LICENSE-MIT +20 -0
  830. package/bin/darwin-x64/licenses/typenum-1.20.1/LICENSE +1 -0
  831. package/bin/darwin-x64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  832. package/bin/darwin-x64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  833. package/bin/darwin-x64/licenses/unicase-2.9.0/LICENSE-APACHE +201 -0
  834. package/bin/darwin-x64/licenses/unicase-2.9.0/LICENSE-MIT +20 -0
  835. package/bin/darwin-x64/licenses/unicode-ident-1.0.24/LICENSE-APACHE +176 -0
  836. package/bin/darwin-x64/licenses/unicode-ident-1.0.24/LICENSE-MIT +23 -0
  837. package/bin/darwin-x64/licenses/unicode-ident-1.0.24/LICENSE-UNICODE +39 -0
  838. package/bin/darwin-x64/licenses/unicode-normalization-0.1.25/LICENSE-APACHE +201 -0
  839. package/bin/darwin-x64/licenses/unicode-normalization-0.1.25/LICENSE-MIT +25 -0
  840. package/bin/darwin-x64/licenses/unsafe-libyaml-0.2.11/LICENSE-MIT +23 -0
  841. package/bin/darwin-x64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  842. package/bin/darwin-x64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  843. package/bin/darwin-x64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  844. package/bin/darwin-x64/licenses/utf-8-0.7.6/LICENSE-APACHE +176 -0
  845. package/bin/darwin-x64/licenses/utf-8-0.7.6/LICENSE-MIT +23 -0
  846. package/bin/darwin-x64/licenses/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
  847. package/bin/darwin-x64/licenses/utf8_iter-1.0.4/LICENSE-MIT +25 -0
  848. package/bin/darwin-x64/licenses/utf8parse-0.2.2/LICENSE-APACHE +176 -0
  849. package/bin/darwin-x64/licenses/utf8parse-0.2.2/LICENSE-MIT +25 -0
  850. package/bin/darwin-x64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  851. package/bin/darwin-x64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  852. package/bin/darwin-x64/licenses/version_check-0.9.5/LICENSE-APACHE +201 -0
  853. package/bin/darwin-x64/licenses/version_check-0.9.5/LICENSE-MIT +19 -0
  854. package/bin/darwin-x64/licenses/want-0.3.1/LICENSE +20 -0
  855. package/bin/darwin-x64/licenses/webbrowser-1.2.4/LICENSE-APACHE +190 -0
  856. package/bin/darwin-x64/licenses/webbrowser-1.2.4/LICENSE-MIT +27 -0
  857. package/bin/darwin-x64/licenses/wiremock-0.6.5/LICENSE-APACHE +201 -0
  858. package/bin/darwin-x64/licenses/wiremock-0.6.5/LICENSE-MIT +23 -0
  859. package/bin/darwin-x64/licenses/writeable-0.6.3/LICENSE +46 -0
  860. package/bin/darwin-x64/licenses/yoke-0.8.3/LICENSE +46 -0
  861. package/bin/darwin-x64/licenses/yoke-derive-0.8.2/LICENSE +46 -0
  862. package/bin/darwin-x64/licenses/zerocopy-0.8.52/LICENSE-APACHE +202 -0
  863. package/bin/darwin-x64/licenses/zerocopy-0.8.52/LICENSE-BSD +24 -0
  864. package/bin/darwin-x64/licenses/zerocopy-0.8.52/LICENSE-MIT +26 -0
  865. package/bin/darwin-x64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  866. package/bin/darwin-x64/licenses/zerofrom-derive-0.1.7/LICENSE +46 -0
  867. package/bin/darwin-x64/licenses/zeroize-1.9.0/LICENSE-APACHE +202 -0
  868. package/bin/darwin-x64/licenses/zeroize-1.9.0/LICENSE-MIT +25 -0
  869. package/bin/darwin-x64/licenses/zeroize_derive-1.5.0/LICENSE-APACHE +202 -0
  870. package/bin/darwin-x64/licenses/zeroize_derive-1.5.0/LICENSE-MIT +25 -0
  871. package/bin/darwin-x64/licenses/zerotrie-0.2.4/LICENSE +46 -0
  872. package/bin/darwin-x64/licenses/zerovec-0.11.6/LICENSE +46 -0
  873. package/bin/darwin-x64/licenses/zerovec-derive-0.11.3/LICENSE +46 -0
  874. package/bin/darwin-x64/licenses/zmij-1.0.21/LICENSE-MIT +23 -0
  875. package/bin/linux-arm64/action-api +0 -0
  876. package/bin/linux-arm64/dependencies.json +2320 -0
  877. package/bin/linux-arm64/licenses/adler2-2.0.1/LICENSE-0BSD +12 -0
  878. package/bin/linux-arm64/licenses/adler2-2.0.1/LICENSE-APACHE +201 -0
  879. package/bin/linux-arm64/licenses/adler2-2.0.1/LICENSE-MIT +23 -0
  880. package/bin/linux-arm64/licenses/aho-corasick-1.1.4/COPYING +3 -0
  881. package/bin/linux-arm64/licenses/aho-corasick-1.1.4/LICENSE-MIT +21 -0
  882. package/bin/linux-arm64/licenses/anstream-1.0.0/LICENSE-APACHE +202 -0
  883. package/bin/linux-arm64/licenses/anstream-1.0.0/LICENSE-MIT +19 -0
  884. package/bin/linux-arm64/licenses/anstyle-1.0.14/LICENSE-APACHE +202 -0
  885. package/bin/linux-arm64/licenses/anstyle-1.0.14/LICENSE-MIT +19 -0
  886. package/bin/linux-arm64/licenses/anstyle-parse-1.0.0/LICENSE-APACHE +202 -0
  887. package/bin/linux-arm64/licenses/anstyle-parse-1.0.0/LICENSE-MIT +19 -0
  888. package/bin/linux-arm64/licenses/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
  889. package/bin/linux-arm64/licenses/anstyle-query-1.1.5/LICENSE-MIT +19 -0
  890. package/bin/linux-arm64/licenses/anyhow-1.0.103/LICENSE-APACHE +176 -0
  891. package/bin/linux-arm64/licenses/anyhow-1.0.103/LICENSE-MIT +23 -0
  892. package/bin/linux-arm64/licenses/assert-json-diff-2.0.2/LICENSE +7 -0
  893. package/bin/linux-arm64/licenses/async-compression-0.4.43/LICENSE-APACHE +201 -0
  894. package/bin/linux-arm64/licenses/async-compression-0.4.43/LICENSE-MIT +21 -0
  895. package/bin/linux-arm64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  896. package/bin/linux-arm64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  897. package/bin/linux-arm64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  898. package/bin/linux-arm64/licenses/base64-0.22.1/LICENSE-APACHE +201 -0
  899. package/bin/linux-arm64/licenses/base64-0.22.1/LICENSE-MIT +21 -0
  900. package/bin/linux-arm64/licenses/bitflags-2.13.0/LICENSE-APACHE +201 -0
  901. package/bin/linux-arm64/licenses/bitflags-2.13.0/LICENSE-MIT +25 -0
  902. package/bin/linux-arm64/licenses/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  903. package/bin/linux-arm64/licenses/block-buffer-0.10.4/LICENSE-MIT +25 -0
  904. package/bin/linux-arm64/licenses/byteorder-1.5.0/COPYING +3 -0
  905. package/bin/linux-arm64/licenses/byteorder-1.5.0/LICENSE-MIT +21 -0
  906. package/bin/linux-arm64/licenses/bytes-1.12.0/LICENSE +25 -0
  907. package/bin/linux-arm64/licenses/cc-1.2.65/LICENSE-APACHE +201 -0
  908. package/bin/linux-arm64/licenses/cc-1.2.65/LICENSE-MIT +25 -0
  909. package/bin/linux-arm64/licenses/cfg-if-1.0.4/LICENSE-APACHE +201 -0
  910. package/bin/linux-arm64/licenses/cfg-if-1.0.4/LICENSE-MIT +25 -0
  911. package/bin/linux-arm64/licenses/cfg_aliases-0.2.1/LICENSE +9 -0
  912. package/bin/linux-arm64/licenses/clap-4.6.1/LICENSE-APACHE +202 -0
  913. package/bin/linux-arm64/licenses/clap-4.6.1/LICENSE-MIT +19 -0
  914. package/bin/linux-arm64/licenses/clap_builder-4.6.0/LICENSE-APACHE +202 -0
  915. package/bin/linux-arm64/licenses/clap_builder-4.6.0/LICENSE-MIT +19 -0
  916. package/bin/linux-arm64/licenses/clap_complete-4.6.5/LICENSE-APACHE +202 -0
  917. package/bin/linux-arm64/licenses/clap_complete-4.6.5/LICENSE-MIT +19 -0
  918. package/bin/linux-arm64/licenses/clap_derive-4.6.1/LICENSE-APACHE +202 -0
  919. package/bin/linux-arm64/licenses/clap_derive-4.6.1/LICENSE-MIT +19 -0
  920. package/bin/linux-arm64/licenses/clap_lex-1.1.0/LICENSE-APACHE +202 -0
  921. package/bin/linux-arm64/licenses/clap_lex-1.1.0/LICENSE-MIT +19 -0
  922. package/bin/linux-arm64/licenses/clap_mangen-0.2.33/LICENSE-APACHE +202 -0
  923. package/bin/linux-arm64/licenses/clap_mangen-0.2.33/LICENSE-MIT +19 -0
  924. package/bin/linux-arm64/licenses/colorchoice-1.0.5/LICENSE-APACHE +202 -0
  925. package/bin/linux-arm64/licenses/colorchoice-1.0.5/LICENSE-MIT +19 -0
  926. package/bin/linux-arm64/licenses/compression-codecs-0.4.38/LICENSE-APACHE +201 -0
  927. package/bin/linux-arm64/licenses/compression-codecs-0.4.38/LICENSE-MIT +21 -0
  928. package/bin/linux-arm64/licenses/compression-core-0.4.32/LICENSE-APACHE +201 -0
  929. package/bin/linux-arm64/licenses/compression-core-0.4.32/LICENSE-MIT +21 -0
  930. package/bin/linux-arm64/licenses/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  931. package/bin/linux-arm64/licenses/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  932. package/bin/linux-arm64/licenses/crc32fast-1.5.0/LICENSE-APACHE +202 -0
  933. package/bin/linux-arm64/licenses/crc32fast-1.5.0/LICENSE-MIT +21 -0
  934. package/bin/linux-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-APACHE +201 -0
  935. package/bin/linux-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-MIT +27 -0
  936. package/bin/linux-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-THIRD-PARTY +593 -0
  937. package/bin/linux-arm64/licenses/crossbeam-utils-0.8.21/LICENSE-APACHE +201 -0
  938. package/bin/linux-arm64/licenses/crossbeam-utils-0.8.21/LICENSE-MIT +27 -0
  939. package/bin/linux-arm64/licenses/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  940. package/bin/linux-arm64/licenses/crypto-common-0.1.7/LICENSE-MIT +25 -0
  941. package/bin/linux-arm64/licenses/data-encoding-2.11.0/LICENSE +22 -0
  942. package/bin/linux-arm64/licenses/deadpool-0.12.3/LICENSE-APACHE +202 -0
  943. package/bin/linux-arm64/licenses/deadpool-0.12.3/LICENSE-MIT +21 -0
  944. package/bin/linux-arm64/licenses/deadpool-runtime-0.1.4/LICENSE-APACHE +202 -0
  945. package/bin/linux-arm64/licenses/deadpool-runtime-0.1.4/LICENSE-MIT +21 -0
  946. package/bin/linux-arm64/licenses/deranged-0.5.8/LICENSE-Apache +202 -0
  947. package/bin/linux-arm64/licenses/deranged-0.5.8/LICENSE-MIT +19 -0
  948. package/bin/linux-arm64/licenses/deunicode-1.6.2/LICENSE +26 -0
  949. package/bin/linux-arm64/licenses/digest-0.10.7/LICENSE-APACHE +201 -0
  950. package/bin/linux-arm64/licenses/digest-0.10.7/LICENSE-MIT +25 -0
  951. package/bin/linux-arm64/licenses/displaydoc-0.2.6/LICENSE-APACHE +201 -0
  952. package/bin/linux-arm64/licenses/displaydoc-0.2.6/LICENSE-MIT +23 -0
  953. package/bin/linux-arm64/licenses/dotenvy-0.15.7/LICENSE +21 -0
  954. package/bin/linux-arm64/licenses/equivalent-1.0.2/LICENSE-APACHE +201 -0
  955. package/bin/linux-arm64/licenses/equivalent-1.0.2/LICENSE-MIT +25 -0
  956. package/bin/linux-arm64/licenses/errno-0.3.14/LICENSE-APACHE +201 -0
  957. package/bin/linux-arm64/licenses/errno-0.3.14/LICENSE-MIT +25 -0
  958. package/bin/linux-arm64/licenses/fastrand-2.4.1/LICENSE-APACHE +201 -0
  959. package/bin/linux-arm64/licenses/fastrand-2.4.1/LICENSE-MIT +23 -0
  960. package/bin/linux-arm64/licenses/find-msvc-tools-0.1.9/LICENSE-APACHE +201 -0
  961. package/bin/linux-arm64/licenses/find-msvc-tools-0.1.9/LICENSE-MIT +25 -0
  962. package/bin/linux-arm64/licenses/flate2-1.1.9/LICENSE-APACHE +201 -0
  963. package/bin/linux-arm64/licenses/flate2-1.1.9/LICENSE-MIT +25 -0
  964. package/bin/linux-arm64/licenses/fnv-1.0.7/LICENSE-APACHE +201 -0
  965. package/bin/linux-arm64/licenses/fnv-1.0.7/LICENSE-MIT +25 -0
  966. package/bin/linux-arm64/licenses/foreign-types-0.3.2/LICENSE-APACHE +202 -0
  967. package/bin/linux-arm64/licenses/foreign-types-0.3.2/LICENSE-MIT +19 -0
  968. package/bin/linux-arm64/licenses/foreign-types-shared-0.1.1/LICENSE-APACHE +202 -0
  969. package/bin/linux-arm64/licenses/foreign-types-shared-0.1.1/LICENSE-MIT +19 -0
  970. package/bin/linux-arm64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  971. package/bin/linux-arm64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  972. package/bin/linux-arm64/licenses/futures-0.3.32/LICENSE-APACHE +202 -0
  973. package/bin/linux-arm64/licenses/futures-0.3.32/LICENSE-MIT +26 -0
  974. package/bin/linux-arm64/licenses/futures-channel-0.3.32/LICENSE-APACHE +202 -0
  975. package/bin/linux-arm64/licenses/futures-channel-0.3.32/LICENSE-MIT +26 -0
  976. package/bin/linux-arm64/licenses/futures-core-0.3.32/LICENSE-APACHE +202 -0
  977. package/bin/linux-arm64/licenses/futures-core-0.3.32/LICENSE-MIT +26 -0
  978. package/bin/linux-arm64/licenses/futures-executor-0.3.32/LICENSE-APACHE +202 -0
  979. package/bin/linux-arm64/licenses/futures-executor-0.3.32/LICENSE-MIT +26 -0
  980. package/bin/linux-arm64/licenses/futures-io-0.3.32/LICENSE-APACHE +202 -0
  981. package/bin/linux-arm64/licenses/futures-io-0.3.32/LICENSE-MIT +26 -0
  982. package/bin/linux-arm64/licenses/futures-macro-0.3.32/LICENSE-APACHE +202 -0
  983. package/bin/linux-arm64/licenses/futures-macro-0.3.32/LICENSE-MIT +26 -0
  984. package/bin/linux-arm64/licenses/futures-sink-0.3.32/LICENSE-APACHE +202 -0
  985. package/bin/linux-arm64/licenses/futures-sink-0.3.32/LICENSE-MIT +26 -0
  986. package/bin/linux-arm64/licenses/futures-task-0.3.32/LICENSE-APACHE +202 -0
  987. package/bin/linux-arm64/licenses/futures-task-0.3.32/LICENSE-MIT +26 -0
  988. package/bin/linux-arm64/licenses/futures-util-0.3.32/LICENSE-APACHE +202 -0
  989. package/bin/linux-arm64/licenses/futures-util-0.3.32/LICENSE-MIT +26 -0
  990. package/bin/linux-arm64/licenses/generic-array-0.14.7/LICENSE +21 -0
  991. package/bin/linux-arm64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  992. package/bin/linux-arm64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  993. package/bin/linux-arm64/licenses/getrandom-0.3.4/LICENSE-APACHE +201 -0
  994. package/bin/linux-arm64/licenses/getrandom-0.3.4/LICENSE-MIT +26 -0
  995. package/bin/linux-arm64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  996. package/bin/linux-arm64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  997. package/bin/linux-arm64/licenses/h2-0.4.16/LICENSE +25 -0
  998. package/bin/linux-arm64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  999. package/bin/linux-arm64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  1000. package/bin/linux-arm64/licenses/heck-0.5.0/LICENSE-APACHE +201 -0
  1001. package/bin/linux-arm64/licenses/heck-0.5.0/LICENSE-MIT +25 -0
  1002. package/bin/linux-arm64/licenses/hmac-0.12.1/LICENSE-APACHE +201 -0
  1003. package/bin/linux-arm64/licenses/hmac-0.12.1/LICENSE-MIT +25 -0
  1004. package/bin/linux-arm64/licenses/http-1.4.2/LICENSE-APACHE +201 -0
  1005. package/bin/linux-arm64/licenses/http-1.4.2/LICENSE-MIT +25 -0
  1006. package/bin/linux-arm64/licenses/http-body-1.0.1/LICENSE +25 -0
  1007. package/bin/linux-arm64/licenses/http-body-util-0.1.3/LICENSE +25 -0
  1008. package/bin/linux-arm64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  1009. package/bin/linux-arm64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  1010. package/bin/linux-arm64/licenses/httpdate-1.0.3/LICENSE-APACHE +201 -0
  1011. package/bin/linux-arm64/licenses/httpdate-1.0.3/LICENSE-MIT +19 -0
  1012. package/bin/linux-arm64/licenses/hyper-1.10.1/LICENSE +19 -0
  1013. package/bin/linux-arm64/licenses/hyper-rustls-0.27.9/LICENSE-APACHE +201 -0
  1014. package/bin/linux-arm64/licenses/hyper-rustls-0.27.9/LICENSE-ISC +15 -0
  1015. package/bin/linux-arm64/licenses/hyper-rustls-0.27.9/LICENSE-MIT +25 -0
  1016. package/bin/linux-arm64/licenses/hyper-tls-0.6.0/LICENSE-APACHE +201 -0
  1017. package/bin/linux-arm64/licenses/hyper-tls-0.6.0/LICENSE-MIT +20 -0
  1018. package/bin/linux-arm64/licenses/hyper-util-0.1.20/LICENSE +19 -0
  1019. package/bin/linux-arm64/licenses/icu_collections-2.2.0/LICENSE +46 -0
  1020. package/bin/linux-arm64/licenses/icu_locale_core-2.2.0/LICENSE +46 -0
  1021. package/bin/linux-arm64/licenses/icu_normalizer-2.2.0/LICENSE +46 -0
  1022. package/bin/linux-arm64/licenses/icu_normalizer_data-2.2.0/LICENSE +46 -0
  1023. package/bin/linux-arm64/licenses/icu_properties-2.2.0/LICENSE +46 -0
  1024. package/bin/linux-arm64/licenses/icu_properties_data-2.2.0/LICENSE +46 -0
  1025. package/bin/linux-arm64/licenses/icu_provider-2.2.0/LICENSE +46 -0
  1026. package/bin/linux-arm64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  1027. package/bin/linux-arm64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  1028. package/bin/linux-arm64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  1029. package/bin/linux-arm64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  1030. package/bin/linux-arm64/licenses/indexmap-2.14.0/LICENSE-APACHE +201 -0
  1031. package/bin/linux-arm64/licenses/indexmap-2.14.0/LICENSE-MIT +25 -0
  1032. package/bin/linux-arm64/licenses/inventory-0.3.24/LICENSE-APACHE +176 -0
  1033. package/bin/linux-arm64/licenses/inventory-0.3.24/LICENSE-MIT +23 -0
  1034. package/bin/linux-arm64/licenses/ipnet-2.12.0/LICENSE-APACHE +201 -0
  1035. package/bin/linux-arm64/licenses/ipnet-2.12.0/LICENSE-MIT +7 -0
  1036. package/bin/linux-arm64/licenses/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
  1037. package/bin/linux-arm64/licenses/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
  1038. package/bin/linux-arm64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  1039. package/bin/linux-arm64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  1040. package/bin/linux-arm64/licenses/jmespath-0.3.0/jmespath-LICENSE +19 -0
  1041. package/bin/linux-arm64/licenses/lazy_static-1.5.0/LICENSE-APACHE +201 -0
  1042. package/bin/linux-arm64/licenses/lazy_static-1.5.0/LICENSE-MIT +25 -0
  1043. package/bin/linux-arm64/licenses/libc-0.2.186/LICENSE-APACHE +176 -0
  1044. package/bin/linux-arm64/licenses/libc-0.2.186/LICENSE-MIT +25 -0
  1045. package/bin/linux-arm64/licenses/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  1046. package/bin/linux-arm64/licenses/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  1047. package/bin/linux-arm64/licenses/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  1048. package/bin/linux-arm64/licenses/litemap-0.8.2/LICENSE +46 -0
  1049. package/bin/linux-arm64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  1050. package/bin/linux-arm64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  1051. package/bin/linux-arm64/licenses/log-0.4.33/LICENSE-APACHE +201 -0
  1052. package/bin/linux-arm64/licenses/log-0.4.33/LICENSE-MIT +25 -0
  1053. package/bin/linux-arm64/licenses/lru-slab-0.1.2/LICENSE-APACHE +202 -0
  1054. package/bin/linux-arm64/licenses/lru-slab-0.1.2/LICENSE-MIT +7 -0
  1055. package/bin/linux-arm64/licenses/lru-slab-0.1.2/LICENSE-ZLIB +19 -0
  1056. package/bin/linux-arm64/licenses/matchers-0.2.0/LICENSE +19 -0
  1057. package/bin/linux-arm64/licenses/memchr-2.8.2/COPYING +3 -0
  1058. package/bin/linux-arm64/licenses/memchr-2.8.2/LICENSE-MIT +21 -0
  1059. package/bin/linux-arm64/licenses/mime-0.3.17/LICENSE-APACHE +201 -0
  1060. package/bin/linux-arm64/licenses/mime-0.3.17/LICENSE-MIT +20 -0
  1061. package/bin/linux-arm64/licenses/mime_guess-2.0.5/LICENSE +22 -0
  1062. package/bin/linux-arm64/licenses/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  1063. package/bin/linux-arm64/licenses/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  1064. package/bin/linux-arm64/licenses/minimal-lexical-0.2.1/LICENSE.md +37 -0
  1065. package/bin/linux-arm64/licenses/miniz_oxide-0.8.9/LICENSE +25 -0
  1066. package/bin/linux-arm64/licenses/miniz_oxide-0.8.9/LICENSE-APACHE.md +177 -0
  1067. package/bin/linux-arm64/licenses/miniz_oxide-0.8.9/LICENSE-MIT.md +24 -0
  1068. package/bin/linux-arm64/licenses/miniz_oxide-0.8.9/LICENSE-ZLIB.md +14 -0
  1069. package/bin/linux-arm64/licenses/mio-1.2.1/LICENSE +19 -0
  1070. package/bin/linux-arm64/licenses/native-tls-0.2.18/LICENSE-APACHE +202 -0
  1071. package/bin/linux-arm64/licenses/native-tls-0.2.18/LICENSE-MIT +19 -0
  1072. package/bin/linux-arm64/licenses/nom-7.1.3/LICENSE +20 -0
  1073. package/bin/linux-arm64/licenses/nu-ansi-term-0.50.3/LICENSE +22 -0
  1074. package/bin/linux-arm64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  1075. package/bin/linux-arm64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  1076. package/bin/linux-arm64/licenses/num_cpus-1.17.0/LICENSE-APACHE +201 -0
  1077. package/bin/linux-arm64/licenses/num_cpus-1.17.0/LICENSE-MIT +20 -0
  1078. package/bin/linux-arm64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  1079. package/bin/linux-arm64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  1080. package/bin/linux-arm64/licenses/openssl-0.10.81/LICENSE +15 -0
  1081. package/bin/linux-arm64/licenses/openssl-0.10.81/LICENSE-APACHE +202 -0
  1082. package/bin/linux-arm64/licenses/openssl-macros-0.1.1/LICENSE-APACHE +202 -0
  1083. package/bin/linux-arm64/licenses/openssl-macros-0.1.1/LICENSE-MIT +19 -0
  1084. package/bin/linux-arm64/licenses/openssl-probe-0.2.1/LICENSE-APACHE +201 -0
  1085. package/bin/linux-arm64/licenses/openssl-probe-0.2.1/LICENSE-MIT +25 -0
  1086. package/bin/linux-arm64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-APACHE +201 -0
  1087. package/bin/linux-arm64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-MIT +25 -0
  1088. package/bin/linux-arm64/licenses/openssl-sys-0.9.117/LICENSE-MIT +25 -0
  1089. package/bin/linux-arm64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  1090. package/bin/linux-arm64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  1091. package/bin/linux-arm64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  1092. package/bin/linux-arm64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  1093. package/bin/linux-arm64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  1094. package/bin/linux-arm64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  1095. package/bin/linux-arm64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  1096. package/bin/linux-arm64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  1097. package/bin/linux-arm64/licenses/pkg-config-0.3.33/LICENSE-APACHE +201 -0
  1098. package/bin/linux-arm64/licenses/pkg-config-0.3.33/LICENSE-MIT +25 -0
  1099. package/bin/linux-arm64/licenses/potential_utf-0.1.5/LICENSE +46 -0
  1100. package/bin/linux-arm64/licenses/powerfmt-0.2.0/LICENSE-Apache +202 -0
  1101. package/bin/linux-arm64/licenses/powerfmt-0.2.0/LICENSE-MIT +19 -0
  1102. package/bin/linux-arm64/licenses/ppv-lite86-0.2.21/LICENSE-APACHE +201 -0
  1103. package/bin/linux-arm64/licenses/ppv-lite86-0.2.21/LICENSE-MIT +25 -0
  1104. package/bin/linux-arm64/licenses/proc-macro2-1.0.106/LICENSE-APACHE +176 -0
  1105. package/bin/linux-arm64/licenses/proc-macro2-1.0.106/LICENSE-MIT +23 -0
  1106. package/bin/linux-arm64/licenses/quinn-0.11.11/LICENSE-APACHE +201 -0
  1107. package/bin/linux-arm64/licenses/quinn-0.11.11/LICENSE-MIT +7 -0
  1108. package/bin/linux-arm64/licenses/quinn-proto-0.11.15/LICENSE-APACHE +201 -0
  1109. package/bin/linux-arm64/licenses/quinn-proto-0.11.15/LICENSE-MIT +7 -0
  1110. package/bin/linux-arm64/licenses/quinn-udp-0.5.14/LICENSE-APACHE +201 -0
  1111. package/bin/linux-arm64/licenses/quinn-udp-0.5.14/LICENSE-MIT +7 -0
  1112. package/bin/linux-arm64/licenses/quote-1.0.46/LICENSE-APACHE +176 -0
  1113. package/bin/linux-arm64/licenses/quote-1.0.46/LICENSE-MIT +23 -0
  1114. package/bin/linux-arm64/licenses/rand-0.8.6/LICENSE-APACHE +176 -0
  1115. package/bin/linux-arm64/licenses/rand-0.8.6/LICENSE-MIT +26 -0
  1116. package/bin/linux-arm64/licenses/rand-0.9.4/LICENSE-APACHE +176 -0
  1117. package/bin/linux-arm64/licenses/rand-0.9.4/LICENSE-MIT +26 -0
  1118. package/bin/linux-arm64/licenses/rand_chacha-0.3.1/LICENSE-APACHE +201 -0
  1119. package/bin/linux-arm64/licenses/rand_chacha-0.3.1/LICENSE-MIT +26 -0
  1120. package/bin/linux-arm64/licenses/rand_chacha-0.9.0/LICENSE-APACHE +176 -0
  1121. package/bin/linux-arm64/licenses/rand_chacha-0.9.0/LICENSE-MIT +26 -0
  1122. package/bin/linux-arm64/licenses/rand_core-0.6.4/LICENSE-APACHE +187 -0
  1123. package/bin/linux-arm64/licenses/rand_core-0.6.4/LICENSE-MIT +26 -0
  1124. package/bin/linux-arm64/licenses/rand_core-0.9.5/LICENSE-APACHE +187 -0
  1125. package/bin/linux-arm64/licenses/rand_core-0.9.5/LICENSE-MIT +26 -0
  1126. package/bin/linux-arm64/licenses/regex-1.12.4/LICENSE-APACHE +201 -0
  1127. package/bin/linux-arm64/licenses/regex-1.12.4/LICENSE-MIT +25 -0
  1128. package/bin/linux-arm64/licenses/regex-automata-0.4.14/LICENSE-APACHE +201 -0
  1129. package/bin/linux-arm64/licenses/regex-automata-0.4.14/LICENSE-MIT +25 -0
  1130. package/bin/linux-arm64/licenses/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
  1131. package/bin/linux-arm64/licenses/regex-syntax-0.8.11/LICENSE-MIT +25 -0
  1132. package/bin/linux-arm64/licenses/reqwest-0.12.28/LICENSE-APACHE +201 -0
  1133. package/bin/linux-arm64/licenses/reqwest-0.12.28/LICENSE-MIT +20 -0
  1134. package/bin/linux-arm64/licenses/ring-0.17.14/LICENSE +9 -0
  1135. package/bin/linux-arm64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  1136. package/bin/linux-arm64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  1137. package/bin/linux-arm64/licenses/roff-1.1.1/LICENSE-APACHE +202 -0
  1138. package/bin/linux-arm64/licenses/roff-1.1.1/LICENSE-MIT +19 -0
  1139. package/bin/linux-arm64/licenses/rustc-hash-2.1.2/LICENSE-APACHE +176 -0
  1140. package/bin/linux-arm64/licenses/rustc-hash-2.1.2/LICENSE-MIT +23 -0
  1141. package/bin/linux-arm64/licenses/rustix-1.1.4/LICENSE-APACHE +201 -0
  1142. package/bin/linux-arm64/licenses/rustix-1.1.4/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  1143. package/bin/linux-arm64/licenses/rustix-1.1.4/LICENSE-MIT +23 -0
  1144. package/bin/linux-arm64/licenses/rustls-0.23.41/LICENSE-APACHE +201 -0
  1145. package/bin/linux-arm64/licenses/rustls-0.23.41/LICENSE-ISC +15 -0
  1146. package/bin/linux-arm64/licenses/rustls-0.23.41/LICENSE-MIT +25 -0
  1147. package/bin/linux-arm64/licenses/rustls-native-certs-0.8.4/LICENSE +10 -0
  1148. package/bin/linux-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-APACHE +201 -0
  1149. package/bin/linux-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-ISC +15 -0
  1150. package/bin/linux-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-MIT +25 -0
  1151. package/bin/linux-arm64/licenses/rustls-pki-types-1.14.1/LICENSE-APACHE +201 -0
  1152. package/bin/linux-arm64/licenses/rustls-pki-types-1.14.1/LICENSE-MIT +25 -0
  1153. package/bin/linux-arm64/licenses/rustls-webpki-0.103.13/LICENSE +19 -0
  1154. package/bin/linux-arm64/licenses/ryu-1.0.23/LICENSE-APACHE +176 -0
  1155. package/bin/linux-arm64/licenses/ryu-1.0.23/LICENSE-BOOST +23 -0
  1156. package/bin/linux-arm64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  1157. package/bin/linux-arm64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  1158. package/bin/linux-arm64/licenses/secrecy-0.10.3/LICENSE-APACHE +202 -0
  1159. package/bin/linux-arm64/licenses/secrecy-0.10.3/LICENSE-MIT +21 -0
  1160. package/bin/linux-arm64/licenses/serde-1.0.228/LICENSE-APACHE +176 -0
  1161. package/bin/linux-arm64/licenses/serde-1.0.228/LICENSE-MIT +23 -0
  1162. package/bin/linux-arm64/licenses/serde_core-1.0.228/LICENSE-APACHE +176 -0
  1163. package/bin/linux-arm64/licenses/serde_core-1.0.228/LICENSE-MIT +23 -0
  1164. package/bin/linux-arm64/licenses/serde_derive-1.0.228/LICENSE-APACHE +176 -0
  1165. package/bin/linux-arm64/licenses/serde_derive-1.0.228/LICENSE-MIT +23 -0
  1166. package/bin/linux-arm64/licenses/serde_json-1.0.150/LICENSE-APACHE +176 -0
  1167. package/bin/linux-arm64/licenses/serde_json-1.0.150/LICENSE-MIT +23 -0
  1168. package/bin/linux-arm64/licenses/serde_json_path-0.7.2/LICENSE-MIT +21 -0
  1169. package/bin/linux-arm64/licenses/serde_json_path_core-0.2.2/LICENSE-MIT +21 -0
  1170. package/bin/linux-arm64/licenses/serde_json_path_macros-0.1.6/LICENSE-MIT +21 -0
  1171. package/bin/linux-arm64/licenses/serde_json_path_macros_internal-0.1.2/LICENSE-MIT +21 -0
  1172. package/bin/linux-arm64/licenses/serde_qs-1.1.2/LICENSE-APACHE +176 -0
  1173. package/bin/linux-arm64/licenses/serde_qs-1.1.2/LICENSE-MIT +27 -0
  1174. package/bin/linux-arm64/licenses/serde_urlencoded-0.7.1/LICENSE-APACHE +176 -0
  1175. package/bin/linux-arm64/licenses/serde_urlencoded-0.7.1/LICENSE-MIT +25 -0
  1176. package/bin/linux-arm64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-APACHE +176 -0
  1177. package/bin/linux-arm64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-MIT +23 -0
  1178. package/bin/linux-arm64/licenses/serial_test-3.5.0/LICENSE +19 -0
  1179. package/bin/linux-arm64/licenses/serial_test_derive-3.5.0/LICENSE +19 -0
  1180. package/bin/linux-arm64/licenses/sha1-0.10.6/LICENSE-APACHE +201 -0
  1181. package/bin/linux-arm64/licenses/sha1-0.10.6/LICENSE-MIT +27 -0
  1182. package/bin/linux-arm64/licenses/sha2-0.10.9/LICENSE-APACHE +201 -0
  1183. package/bin/linux-arm64/licenses/sha2-0.10.9/LICENSE-MIT +27 -0
  1184. package/bin/linux-arm64/licenses/sharded-slab-0.1.7/LICENSE +19 -0
  1185. package/bin/linux-arm64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  1186. package/bin/linux-arm64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  1187. package/bin/linux-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
  1188. package/bin/linux-arm64/licenses/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
  1189. package/bin/linux-arm64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  1190. package/bin/linux-arm64/licenses/slab-0.4.12/LICENSE +25 -0
  1191. package/bin/linux-arm64/licenses/slug-0.1.6/LICENSE-APACHE +201 -0
  1192. package/bin/linux-arm64/licenses/slug-0.1.6/LICENSE-MIT +25 -0
  1193. package/bin/linux-arm64/licenses/smallvec-1.15.2/LICENSE-APACHE +201 -0
  1194. package/bin/linux-arm64/licenses/smallvec-1.15.2/LICENSE-MIT +25 -0
  1195. package/bin/linux-arm64/licenses/socket2-0.6.4/LICENSE-APACHE +201 -0
  1196. package/bin/linux-arm64/licenses/socket2-0.6.4/LICENSE-MIT +25 -0
  1197. package/bin/linux-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  1198. package/bin/linux-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  1199. package/bin/linux-arm64/licenses/strsim-0.11.1/LICENSE +23 -0
  1200. package/bin/linux-arm64/licenses/subtle-2.6.1/LICENSE +29 -0
  1201. package/bin/linux-arm64/licenses/symlink-0.1.0/LICENSE-APACHE +201 -0
  1202. package/bin/linux-arm64/licenses/symlink-0.1.0/LICENSE-MIT +25 -0
  1203. package/bin/linux-arm64/licenses/syn-2.0.118/LICENSE-APACHE +176 -0
  1204. package/bin/linux-arm64/licenses/syn-2.0.118/LICENSE-MIT +23 -0
  1205. package/bin/linux-arm64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  1206. package/bin/linux-arm64/licenses/synstructure-0.13.2/LICENSE +7 -0
  1207. package/bin/linux-arm64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  1208. package/bin/linux-arm64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  1209. package/bin/linux-arm64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  1210. package/bin/linux-arm64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  1211. package/bin/linux-arm64/licenses/thiserror-2.0.18/LICENSE-APACHE +176 -0
  1212. package/bin/linux-arm64/licenses/thiserror-2.0.18/LICENSE-MIT +23 -0
  1213. package/bin/linux-arm64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  1214. package/bin/linux-arm64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  1215. package/bin/linux-arm64/licenses/thiserror-impl-2.0.18/LICENSE-APACHE +176 -0
  1216. package/bin/linux-arm64/licenses/thiserror-impl-2.0.18/LICENSE-MIT +23 -0
  1217. package/bin/linux-arm64/licenses/thread_local-1.1.9/LICENSE-APACHE +201 -0
  1218. package/bin/linux-arm64/licenses/thread_local-1.1.9/LICENSE-MIT +25 -0
  1219. package/bin/linux-arm64/licenses/time-0.3.51/LICENSE-Apache +177 -0
  1220. package/bin/linux-arm64/licenses/time-0.3.51/LICENSE-MIT +19 -0
  1221. package/bin/linux-arm64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  1222. package/bin/linux-arm64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  1223. package/bin/linux-arm64/licenses/time-macros-0.2.30/LICENSE-Apache +177 -0
  1224. package/bin/linux-arm64/licenses/time-macros-0.2.30/LICENSE-MIT +19 -0
  1225. package/bin/linux-arm64/licenses/tinystr-0.8.3/LICENSE +46 -0
  1226. package/bin/linux-arm64/licenses/tinyvec-1.11.0/LICENSE-APACHE.md +202 -0
  1227. package/bin/linux-arm64/licenses/tinyvec-1.11.0/LICENSE-MIT.md +5 -0
  1228. package/bin/linux-arm64/licenses/tinyvec-1.11.0/LICENSE-ZLIB.md +11 -0
  1229. package/bin/linux-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-APACHE.md +202 -0
  1230. package/bin/linux-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-MIT.md +21 -0
  1231. package/bin/linux-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-ZLIB.md +20 -0
  1232. package/bin/linux-arm64/licenses/tokio-1.52.3/LICENSE +21 -0
  1233. package/bin/linux-arm64/licenses/tokio-macros-2.7.0/LICENSE +22 -0
  1234. package/bin/linux-arm64/licenses/tokio-native-tls-0.3.1/LICENSE +25 -0
  1235. package/bin/linux-arm64/licenses/tokio-rustls-0.26.4/LICENSE-APACHE +201 -0
  1236. package/bin/linux-arm64/licenses/tokio-rustls-0.26.4/LICENSE-MIT +25 -0
  1237. package/bin/linux-arm64/licenses/tokio-tungstenite-0.24.0/LICENSE +20 -0
  1238. package/bin/linux-arm64/licenses/tokio-util-0.7.18/LICENSE +21 -0
  1239. package/bin/linux-arm64/licenses/tower-0.5.3/LICENSE +25 -0
  1240. package/bin/linux-arm64/licenses/tower-http-0.6.11/LICENSE +25 -0
  1241. package/bin/linux-arm64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  1242. package/bin/linux-arm64/licenses/tower-service-0.3.3/LICENSE +25 -0
  1243. package/bin/linux-arm64/licenses/tracing-0.1.44/LICENSE +25 -0
  1244. package/bin/linux-arm64/licenses/tracing-appender-0.2.5/LICENSE +25 -0
  1245. package/bin/linux-arm64/licenses/tracing-attributes-0.1.31/LICENSE +25 -0
  1246. package/bin/linux-arm64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  1247. package/bin/linux-arm64/licenses/tracing-log-0.2.0/LICENSE +25 -0
  1248. package/bin/linux-arm64/licenses/tracing-serde-0.2.0/LICENSE +25 -0
  1249. package/bin/linux-arm64/licenses/tracing-subscriber-0.3.23/LICENSE +25 -0
  1250. package/bin/linux-arm64/licenses/try-lock-0.2.5/LICENSE +21 -0
  1251. package/bin/linux-arm64/licenses/tungstenite-0.24.0/LICENSE-APACHE +201 -0
  1252. package/bin/linux-arm64/licenses/tungstenite-0.24.0/LICENSE-MIT +20 -0
  1253. package/bin/linux-arm64/licenses/typenum-1.20.1/LICENSE +1 -0
  1254. package/bin/linux-arm64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  1255. package/bin/linux-arm64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  1256. package/bin/linux-arm64/licenses/unicase-2.9.0/LICENSE-APACHE +201 -0
  1257. package/bin/linux-arm64/licenses/unicase-2.9.0/LICENSE-MIT +20 -0
  1258. package/bin/linux-arm64/licenses/unicode-ident-1.0.24/LICENSE-APACHE +176 -0
  1259. package/bin/linux-arm64/licenses/unicode-ident-1.0.24/LICENSE-MIT +23 -0
  1260. package/bin/linux-arm64/licenses/unicode-ident-1.0.24/LICENSE-UNICODE +39 -0
  1261. package/bin/linux-arm64/licenses/unicode-normalization-0.1.25/LICENSE-APACHE +201 -0
  1262. package/bin/linux-arm64/licenses/unicode-normalization-0.1.25/LICENSE-MIT +25 -0
  1263. package/bin/linux-arm64/licenses/unsafe-libyaml-0.2.11/LICENSE-MIT +23 -0
  1264. package/bin/linux-arm64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  1265. package/bin/linux-arm64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  1266. package/bin/linux-arm64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  1267. package/bin/linux-arm64/licenses/utf-8-0.7.6/LICENSE-APACHE +176 -0
  1268. package/bin/linux-arm64/licenses/utf-8-0.7.6/LICENSE-MIT +23 -0
  1269. package/bin/linux-arm64/licenses/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
  1270. package/bin/linux-arm64/licenses/utf8_iter-1.0.4/LICENSE-MIT +25 -0
  1271. package/bin/linux-arm64/licenses/utf8parse-0.2.2/LICENSE-APACHE +176 -0
  1272. package/bin/linux-arm64/licenses/utf8parse-0.2.2/LICENSE-MIT +25 -0
  1273. package/bin/linux-arm64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  1274. package/bin/linux-arm64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  1275. package/bin/linux-arm64/licenses/version_check-0.9.5/LICENSE-APACHE +201 -0
  1276. package/bin/linux-arm64/licenses/version_check-0.9.5/LICENSE-MIT +19 -0
  1277. package/bin/linux-arm64/licenses/want-0.3.1/LICENSE +20 -0
  1278. package/bin/linux-arm64/licenses/webbrowser-1.2.4/LICENSE-APACHE +190 -0
  1279. package/bin/linux-arm64/licenses/webbrowser-1.2.4/LICENSE-MIT +27 -0
  1280. package/bin/linux-arm64/licenses/wiremock-0.6.5/LICENSE-APACHE +201 -0
  1281. package/bin/linux-arm64/licenses/wiremock-0.6.5/LICENSE-MIT +23 -0
  1282. package/bin/linux-arm64/licenses/writeable-0.6.3/LICENSE +46 -0
  1283. package/bin/linux-arm64/licenses/yoke-0.8.3/LICENSE +46 -0
  1284. package/bin/linux-arm64/licenses/yoke-derive-0.8.2/LICENSE +46 -0
  1285. package/bin/linux-arm64/licenses/zerocopy-0.8.52/LICENSE-APACHE +202 -0
  1286. package/bin/linux-arm64/licenses/zerocopy-0.8.52/LICENSE-BSD +24 -0
  1287. package/bin/linux-arm64/licenses/zerocopy-0.8.52/LICENSE-MIT +26 -0
  1288. package/bin/linux-arm64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  1289. package/bin/linux-arm64/licenses/zerofrom-derive-0.1.7/LICENSE +46 -0
  1290. package/bin/linux-arm64/licenses/zeroize-1.9.0/LICENSE-APACHE +202 -0
  1291. package/bin/linux-arm64/licenses/zeroize-1.9.0/LICENSE-MIT +25 -0
  1292. package/bin/linux-arm64/licenses/zeroize_derive-1.5.0/LICENSE-APACHE +202 -0
  1293. package/bin/linux-arm64/licenses/zeroize_derive-1.5.0/LICENSE-MIT +25 -0
  1294. package/bin/linux-arm64/licenses/zerotrie-0.2.4/LICENSE +46 -0
  1295. package/bin/linux-arm64/licenses/zerovec-0.11.6/LICENSE +46 -0
  1296. package/bin/linux-arm64/licenses/zerovec-derive-0.11.3/LICENSE +46 -0
  1297. package/bin/linux-arm64/licenses/zmij-1.0.21/LICENSE-MIT +23 -0
  1298. package/bin/linux-x64/action-api +0 -0
  1299. package/bin/linux-x64/dependencies.json +2320 -0
  1300. package/bin/linux-x64/licenses/adler2-2.0.1/LICENSE-0BSD +12 -0
  1301. package/bin/linux-x64/licenses/adler2-2.0.1/LICENSE-APACHE +201 -0
  1302. package/bin/linux-x64/licenses/adler2-2.0.1/LICENSE-MIT +23 -0
  1303. package/bin/linux-x64/licenses/aho-corasick-1.1.4/COPYING +3 -0
  1304. package/bin/linux-x64/licenses/aho-corasick-1.1.4/LICENSE-MIT +21 -0
  1305. package/bin/linux-x64/licenses/anstream-1.0.0/LICENSE-APACHE +202 -0
  1306. package/bin/linux-x64/licenses/anstream-1.0.0/LICENSE-MIT +19 -0
  1307. package/bin/linux-x64/licenses/anstyle-1.0.14/LICENSE-APACHE +202 -0
  1308. package/bin/linux-x64/licenses/anstyle-1.0.14/LICENSE-MIT +19 -0
  1309. package/bin/linux-x64/licenses/anstyle-parse-1.0.0/LICENSE-APACHE +202 -0
  1310. package/bin/linux-x64/licenses/anstyle-parse-1.0.0/LICENSE-MIT +19 -0
  1311. package/bin/linux-x64/licenses/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
  1312. package/bin/linux-x64/licenses/anstyle-query-1.1.5/LICENSE-MIT +19 -0
  1313. package/bin/linux-x64/licenses/anyhow-1.0.103/LICENSE-APACHE +176 -0
  1314. package/bin/linux-x64/licenses/anyhow-1.0.103/LICENSE-MIT +23 -0
  1315. package/bin/linux-x64/licenses/assert-json-diff-2.0.2/LICENSE +7 -0
  1316. package/bin/linux-x64/licenses/async-compression-0.4.43/LICENSE-APACHE +201 -0
  1317. package/bin/linux-x64/licenses/async-compression-0.4.43/LICENSE-MIT +21 -0
  1318. package/bin/linux-x64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  1319. package/bin/linux-x64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  1320. package/bin/linux-x64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  1321. package/bin/linux-x64/licenses/base64-0.22.1/LICENSE-APACHE +201 -0
  1322. package/bin/linux-x64/licenses/base64-0.22.1/LICENSE-MIT +21 -0
  1323. package/bin/linux-x64/licenses/bitflags-2.13.0/LICENSE-APACHE +201 -0
  1324. package/bin/linux-x64/licenses/bitflags-2.13.0/LICENSE-MIT +25 -0
  1325. package/bin/linux-x64/licenses/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  1326. package/bin/linux-x64/licenses/block-buffer-0.10.4/LICENSE-MIT +25 -0
  1327. package/bin/linux-x64/licenses/byteorder-1.5.0/COPYING +3 -0
  1328. package/bin/linux-x64/licenses/byteorder-1.5.0/LICENSE-MIT +21 -0
  1329. package/bin/linux-x64/licenses/bytes-1.12.0/LICENSE +25 -0
  1330. package/bin/linux-x64/licenses/cc-1.2.65/LICENSE-APACHE +201 -0
  1331. package/bin/linux-x64/licenses/cc-1.2.65/LICENSE-MIT +25 -0
  1332. package/bin/linux-x64/licenses/cfg-if-1.0.4/LICENSE-APACHE +201 -0
  1333. package/bin/linux-x64/licenses/cfg-if-1.0.4/LICENSE-MIT +25 -0
  1334. package/bin/linux-x64/licenses/cfg_aliases-0.2.1/LICENSE +9 -0
  1335. package/bin/linux-x64/licenses/clap-4.6.1/LICENSE-APACHE +202 -0
  1336. package/bin/linux-x64/licenses/clap-4.6.1/LICENSE-MIT +19 -0
  1337. package/bin/linux-x64/licenses/clap_builder-4.6.0/LICENSE-APACHE +202 -0
  1338. package/bin/linux-x64/licenses/clap_builder-4.6.0/LICENSE-MIT +19 -0
  1339. package/bin/linux-x64/licenses/clap_complete-4.6.5/LICENSE-APACHE +202 -0
  1340. package/bin/linux-x64/licenses/clap_complete-4.6.5/LICENSE-MIT +19 -0
  1341. package/bin/linux-x64/licenses/clap_derive-4.6.1/LICENSE-APACHE +202 -0
  1342. package/bin/linux-x64/licenses/clap_derive-4.6.1/LICENSE-MIT +19 -0
  1343. package/bin/linux-x64/licenses/clap_lex-1.1.0/LICENSE-APACHE +202 -0
  1344. package/bin/linux-x64/licenses/clap_lex-1.1.0/LICENSE-MIT +19 -0
  1345. package/bin/linux-x64/licenses/clap_mangen-0.2.33/LICENSE-APACHE +202 -0
  1346. package/bin/linux-x64/licenses/clap_mangen-0.2.33/LICENSE-MIT +19 -0
  1347. package/bin/linux-x64/licenses/colorchoice-1.0.5/LICENSE-APACHE +202 -0
  1348. package/bin/linux-x64/licenses/colorchoice-1.0.5/LICENSE-MIT +19 -0
  1349. package/bin/linux-x64/licenses/compression-codecs-0.4.38/LICENSE-APACHE +201 -0
  1350. package/bin/linux-x64/licenses/compression-codecs-0.4.38/LICENSE-MIT +21 -0
  1351. package/bin/linux-x64/licenses/compression-core-0.4.32/LICENSE-APACHE +201 -0
  1352. package/bin/linux-x64/licenses/compression-core-0.4.32/LICENSE-MIT +21 -0
  1353. package/bin/linux-x64/licenses/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  1354. package/bin/linux-x64/licenses/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  1355. package/bin/linux-x64/licenses/crc32fast-1.5.0/LICENSE-APACHE +202 -0
  1356. package/bin/linux-x64/licenses/crc32fast-1.5.0/LICENSE-MIT +21 -0
  1357. package/bin/linux-x64/licenses/crossbeam-channel-0.5.15/LICENSE-APACHE +201 -0
  1358. package/bin/linux-x64/licenses/crossbeam-channel-0.5.15/LICENSE-MIT +27 -0
  1359. package/bin/linux-x64/licenses/crossbeam-channel-0.5.15/LICENSE-THIRD-PARTY +593 -0
  1360. package/bin/linux-x64/licenses/crossbeam-utils-0.8.21/LICENSE-APACHE +201 -0
  1361. package/bin/linux-x64/licenses/crossbeam-utils-0.8.21/LICENSE-MIT +27 -0
  1362. package/bin/linux-x64/licenses/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  1363. package/bin/linux-x64/licenses/crypto-common-0.1.7/LICENSE-MIT +25 -0
  1364. package/bin/linux-x64/licenses/data-encoding-2.11.0/LICENSE +22 -0
  1365. package/bin/linux-x64/licenses/deadpool-0.12.3/LICENSE-APACHE +202 -0
  1366. package/bin/linux-x64/licenses/deadpool-0.12.3/LICENSE-MIT +21 -0
  1367. package/bin/linux-x64/licenses/deadpool-runtime-0.1.4/LICENSE-APACHE +202 -0
  1368. package/bin/linux-x64/licenses/deadpool-runtime-0.1.4/LICENSE-MIT +21 -0
  1369. package/bin/linux-x64/licenses/deranged-0.5.8/LICENSE-Apache +202 -0
  1370. package/bin/linux-x64/licenses/deranged-0.5.8/LICENSE-MIT +19 -0
  1371. package/bin/linux-x64/licenses/deunicode-1.6.2/LICENSE +26 -0
  1372. package/bin/linux-x64/licenses/digest-0.10.7/LICENSE-APACHE +201 -0
  1373. package/bin/linux-x64/licenses/digest-0.10.7/LICENSE-MIT +25 -0
  1374. package/bin/linux-x64/licenses/displaydoc-0.2.6/LICENSE-APACHE +201 -0
  1375. package/bin/linux-x64/licenses/displaydoc-0.2.6/LICENSE-MIT +23 -0
  1376. package/bin/linux-x64/licenses/dotenvy-0.15.7/LICENSE +21 -0
  1377. package/bin/linux-x64/licenses/equivalent-1.0.2/LICENSE-APACHE +201 -0
  1378. package/bin/linux-x64/licenses/equivalent-1.0.2/LICENSE-MIT +25 -0
  1379. package/bin/linux-x64/licenses/errno-0.3.14/LICENSE-APACHE +201 -0
  1380. package/bin/linux-x64/licenses/errno-0.3.14/LICENSE-MIT +25 -0
  1381. package/bin/linux-x64/licenses/fastrand-2.4.1/LICENSE-APACHE +201 -0
  1382. package/bin/linux-x64/licenses/fastrand-2.4.1/LICENSE-MIT +23 -0
  1383. package/bin/linux-x64/licenses/find-msvc-tools-0.1.9/LICENSE-APACHE +201 -0
  1384. package/bin/linux-x64/licenses/find-msvc-tools-0.1.9/LICENSE-MIT +25 -0
  1385. package/bin/linux-x64/licenses/flate2-1.1.9/LICENSE-APACHE +201 -0
  1386. package/bin/linux-x64/licenses/flate2-1.1.9/LICENSE-MIT +25 -0
  1387. package/bin/linux-x64/licenses/fnv-1.0.7/LICENSE-APACHE +201 -0
  1388. package/bin/linux-x64/licenses/fnv-1.0.7/LICENSE-MIT +25 -0
  1389. package/bin/linux-x64/licenses/foreign-types-0.3.2/LICENSE-APACHE +202 -0
  1390. package/bin/linux-x64/licenses/foreign-types-0.3.2/LICENSE-MIT +19 -0
  1391. package/bin/linux-x64/licenses/foreign-types-shared-0.1.1/LICENSE-APACHE +202 -0
  1392. package/bin/linux-x64/licenses/foreign-types-shared-0.1.1/LICENSE-MIT +19 -0
  1393. package/bin/linux-x64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  1394. package/bin/linux-x64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  1395. package/bin/linux-x64/licenses/futures-0.3.32/LICENSE-APACHE +202 -0
  1396. package/bin/linux-x64/licenses/futures-0.3.32/LICENSE-MIT +26 -0
  1397. package/bin/linux-x64/licenses/futures-channel-0.3.32/LICENSE-APACHE +202 -0
  1398. package/bin/linux-x64/licenses/futures-channel-0.3.32/LICENSE-MIT +26 -0
  1399. package/bin/linux-x64/licenses/futures-core-0.3.32/LICENSE-APACHE +202 -0
  1400. package/bin/linux-x64/licenses/futures-core-0.3.32/LICENSE-MIT +26 -0
  1401. package/bin/linux-x64/licenses/futures-executor-0.3.32/LICENSE-APACHE +202 -0
  1402. package/bin/linux-x64/licenses/futures-executor-0.3.32/LICENSE-MIT +26 -0
  1403. package/bin/linux-x64/licenses/futures-io-0.3.32/LICENSE-APACHE +202 -0
  1404. package/bin/linux-x64/licenses/futures-io-0.3.32/LICENSE-MIT +26 -0
  1405. package/bin/linux-x64/licenses/futures-macro-0.3.32/LICENSE-APACHE +202 -0
  1406. package/bin/linux-x64/licenses/futures-macro-0.3.32/LICENSE-MIT +26 -0
  1407. package/bin/linux-x64/licenses/futures-sink-0.3.32/LICENSE-APACHE +202 -0
  1408. package/bin/linux-x64/licenses/futures-sink-0.3.32/LICENSE-MIT +26 -0
  1409. package/bin/linux-x64/licenses/futures-task-0.3.32/LICENSE-APACHE +202 -0
  1410. package/bin/linux-x64/licenses/futures-task-0.3.32/LICENSE-MIT +26 -0
  1411. package/bin/linux-x64/licenses/futures-util-0.3.32/LICENSE-APACHE +202 -0
  1412. package/bin/linux-x64/licenses/futures-util-0.3.32/LICENSE-MIT +26 -0
  1413. package/bin/linux-x64/licenses/generic-array-0.14.7/LICENSE +21 -0
  1414. package/bin/linux-x64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  1415. package/bin/linux-x64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  1416. package/bin/linux-x64/licenses/getrandom-0.3.4/LICENSE-APACHE +201 -0
  1417. package/bin/linux-x64/licenses/getrandom-0.3.4/LICENSE-MIT +26 -0
  1418. package/bin/linux-x64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  1419. package/bin/linux-x64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  1420. package/bin/linux-x64/licenses/h2-0.4.16/LICENSE +25 -0
  1421. package/bin/linux-x64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  1422. package/bin/linux-x64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  1423. package/bin/linux-x64/licenses/heck-0.5.0/LICENSE-APACHE +201 -0
  1424. package/bin/linux-x64/licenses/heck-0.5.0/LICENSE-MIT +25 -0
  1425. package/bin/linux-x64/licenses/hmac-0.12.1/LICENSE-APACHE +201 -0
  1426. package/bin/linux-x64/licenses/hmac-0.12.1/LICENSE-MIT +25 -0
  1427. package/bin/linux-x64/licenses/http-1.4.2/LICENSE-APACHE +201 -0
  1428. package/bin/linux-x64/licenses/http-1.4.2/LICENSE-MIT +25 -0
  1429. package/bin/linux-x64/licenses/http-body-1.0.1/LICENSE +25 -0
  1430. package/bin/linux-x64/licenses/http-body-util-0.1.3/LICENSE +25 -0
  1431. package/bin/linux-x64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  1432. package/bin/linux-x64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  1433. package/bin/linux-x64/licenses/httpdate-1.0.3/LICENSE-APACHE +201 -0
  1434. package/bin/linux-x64/licenses/httpdate-1.0.3/LICENSE-MIT +19 -0
  1435. package/bin/linux-x64/licenses/hyper-1.10.1/LICENSE +19 -0
  1436. package/bin/linux-x64/licenses/hyper-rustls-0.27.9/LICENSE-APACHE +201 -0
  1437. package/bin/linux-x64/licenses/hyper-rustls-0.27.9/LICENSE-ISC +15 -0
  1438. package/bin/linux-x64/licenses/hyper-rustls-0.27.9/LICENSE-MIT +25 -0
  1439. package/bin/linux-x64/licenses/hyper-tls-0.6.0/LICENSE-APACHE +201 -0
  1440. package/bin/linux-x64/licenses/hyper-tls-0.6.0/LICENSE-MIT +20 -0
  1441. package/bin/linux-x64/licenses/hyper-util-0.1.20/LICENSE +19 -0
  1442. package/bin/linux-x64/licenses/icu_collections-2.2.0/LICENSE +46 -0
  1443. package/bin/linux-x64/licenses/icu_locale_core-2.2.0/LICENSE +46 -0
  1444. package/bin/linux-x64/licenses/icu_normalizer-2.2.0/LICENSE +46 -0
  1445. package/bin/linux-x64/licenses/icu_normalizer_data-2.2.0/LICENSE +46 -0
  1446. package/bin/linux-x64/licenses/icu_properties-2.2.0/LICENSE +46 -0
  1447. package/bin/linux-x64/licenses/icu_properties_data-2.2.0/LICENSE +46 -0
  1448. package/bin/linux-x64/licenses/icu_provider-2.2.0/LICENSE +46 -0
  1449. package/bin/linux-x64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  1450. package/bin/linux-x64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  1451. package/bin/linux-x64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  1452. package/bin/linux-x64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  1453. package/bin/linux-x64/licenses/indexmap-2.14.0/LICENSE-APACHE +201 -0
  1454. package/bin/linux-x64/licenses/indexmap-2.14.0/LICENSE-MIT +25 -0
  1455. package/bin/linux-x64/licenses/inventory-0.3.24/LICENSE-APACHE +176 -0
  1456. package/bin/linux-x64/licenses/inventory-0.3.24/LICENSE-MIT +23 -0
  1457. package/bin/linux-x64/licenses/ipnet-2.12.0/LICENSE-APACHE +201 -0
  1458. package/bin/linux-x64/licenses/ipnet-2.12.0/LICENSE-MIT +7 -0
  1459. package/bin/linux-x64/licenses/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
  1460. package/bin/linux-x64/licenses/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
  1461. package/bin/linux-x64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  1462. package/bin/linux-x64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  1463. package/bin/linux-x64/licenses/jmespath-0.3.0/jmespath-LICENSE +19 -0
  1464. package/bin/linux-x64/licenses/lazy_static-1.5.0/LICENSE-APACHE +201 -0
  1465. package/bin/linux-x64/licenses/lazy_static-1.5.0/LICENSE-MIT +25 -0
  1466. package/bin/linux-x64/licenses/libc-0.2.186/LICENSE-APACHE +176 -0
  1467. package/bin/linux-x64/licenses/libc-0.2.186/LICENSE-MIT +25 -0
  1468. package/bin/linux-x64/licenses/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  1469. package/bin/linux-x64/licenses/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  1470. package/bin/linux-x64/licenses/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  1471. package/bin/linux-x64/licenses/litemap-0.8.2/LICENSE +46 -0
  1472. package/bin/linux-x64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  1473. package/bin/linux-x64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  1474. package/bin/linux-x64/licenses/log-0.4.33/LICENSE-APACHE +201 -0
  1475. package/bin/linux-x64/licenses/log-0.4.33/LICENSE-MIT +25 -0
  1476. package/bin/linux-x64/licenses/lru-slab-0.1.2/LICENSE-APACHE +202 -0
  1477. package/bin/linux-x64/licenses/lru-slab-0.1.2/LICENSE-MIT +7 -0
  1478. package/bin/linux-x64/licenses/lru-slab-0.1.2/LICENSE-ZLIB +19 -0
  1479. package/bin/linux-x64/licenses/matchers-0.2.0/LICENSE +19 -0
  1480. package/bin/linux-x64/licenses/memchr-2.8.2/COPYING +3 -0
  1481. package/bin/linux-x64/licenses/memchr-2.8.2/LICENSE-MIT +21 -0
  1482. package/bin/linux-x64/licenses/mime-0.3.17/LICENSE-APACHE +201 -0
  1483. package/bin/linux-x64/licenses/mime-0.3.17/LICENSE-MIT +20 -0
  1484. package/bin/linux-x64/licenses/mime_guess-2.0.5/LICENSE +22 -0
  1485. package/bin/linux-x64/licenses/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  1486. package/bin/linux-x64/licenses/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  1487. package/bin/linux-x64/licenses/minimal-lexical-0.2.1/LICENSE.md +37 -0
  1488. package/bin/linux-x64/licenses/miniz_oxide-0.8.9/LICENSE +25 -0
  1489. package/bin/linux-x64/licenses/miniz_oxide-0.8.9/LICENSE-APACHE.md +177 -0
  1490. package/bin/linux-x64/licenses/miniz_oxide-0.8.9/LICENSE-MIT.md +24 -0
  1491. package/bin/linux-x64/licenses/miniz_oxide-0.8.9/LICENSE-ZLIB.md +14 -0
  1492. package/bin/linux-x64/licenses/mio-1.2.1/LICENSE +19 -0
  1493. package/bin/linux-x64/licenses/native-tls-0.2.18/LICENSE-APACHE +202 -0
  1494. package/bin/linux-x64/licenses/native-tls-0.2.18/LICENSE-MIT +19 -0
  1495. package/bin/linux-x64/licenses/nom-7.1.3/LICENSE +20 -0
  1496. package/bin/linux-x64/licenses/nu-ansi-term-0.50.3/LICENSE +22 -0
  1497. package/bin/linux-x64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  1498. package/bin/linux-x64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  1499. package/bin/linux-x64/licenses/num_cpus-1.17.0/LICENSE-APACHE +201 -0
  1500. package/bin/linux-x64/licenses/num_cpus-1.17.0/LICENSE-MIT +20 -0
  1501. package/bin/linux-x64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  1502. package/bin/linux-x64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  1503. package/bin/linux-x64/licenses/openssl-0.10.81/LICENSE +15 -0
  1504. package/bin/linux-x64/licenses/openssl-0.10.81/LICENSE-APACHE +202 -0
  1505. package/bin/linux-x64/licenses/openssl-macros-0.1.1/LICENSE-APACHE +202 -0
  1506. package/bin/linux-x64/licenses/openssl-macros-0.1.1/LICENSE-MIT +19 -0
  1507. package/bin/linux-x64/licenses/openssl-probe-0.2.1/LICENSE-APACHE +201 -0
  1508. package/bin/linux-x64/licenses/openssl-probe-0.2.1/LICENSE-MIT +25 -0
  1509. package/bin/linux-x64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-APACHE +201 -0
  1510. package/bin/linux-x64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-MIT +25 -0
  1511. package/bin/linux-x64/licenses/openssl-sys-0.9.117/LICENSE-MIT +25 -0
  1512. package/bin/linux-x64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  1513. package/bin/linux-x64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  1514. package/bin/linux-x64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  1515. package/bin/linux-x64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  1516. package/bin/linux-x64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  1517. package/bin/linux-x64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  1518. package/bin/linux-x64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  1519. package/bin/linux-x64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  1520. package/bin/linux-x64/licenses/pkg-config-0.3.33/LICENSE-APACHE +201 -0
  1521. package/bin/linux-x64/licenses/pkg-config-0.3.33/LICENSE-MIT +25 -0
  1522. package/bin/linux-x64/licenses/potential_utf-0.1.5/LICENSE +46 -0
  1523. package/bin/linux-x64/licenses/powerfmt-0.2.0/LICENSE-Apache +202 -0
  1524. package/bin/linux-x64/licenses/powerfmt-0.2.0/LICENSE-MIT +19 -0
  1525. package/bin/linux-x64/licenses/ppv-lite86-0.2.21/LICENSE-APACHE +201 -0
  1526. package/bin/linux-x64/licenses/ppv-lite86-0.2.21/LICENSE-MIT +25 -0
  1527. package/bin/linux-x64/licenses/proc-macro2-1.0.106/LICENSE-APACHE +176 -0
  1528. package/bin/linux-x64/licenses/proc-macro2-1.0.106/LICENSE-MIT +23 -0
  1529. package/bin/linux-x64/licenses/quinn-0.11.11/LICENSE-APACHE +201 -0
  1530. package/bin/linux-x64/licenses/quinn-0.11.11/LICENSE-MIT +7 -0
  1531. package/bin/linux-x64/licenses/quinn-proto-0.11.15/LICENSE-APACHE +201 -0
  1532. package/bin/linux-x64/licenses/quinn-proto-0.11.15/LICENSE-MIT +7 -0
  1533. package/bin/linux-x64/licenses/quinn-udp-0.5.14/LICENSE-APACHE +201 -0
  1534. package/bin/linux-x64/licenses/quinn-udp-0.5.14/LICENSE-MIT +7 -0
  1535. package/bin/linux-x64/licenses/quote-1.0.46/LICENSE-APACHE +176 -0
  1536. package/bin/linux-x64/licenses/quote-1.0.46/LICENSE-MIT +23 -0
  1537. package/bin/linux-x64/licenses/rand-0.8.6/LICENSE-APACHE +176 -0
  1538. package/bin/linux-x64/licenses/rand-0.8.6/LICENSE-MIT +26 -0
  1539. package/bin/linux-x64/licenses/rand-0.9.4/LICENSE-APACHE +176 -0
  1540. package/bin/linux-x64/licenses/rand-0.9.4/LICENSE-MIT +26 -0
  1541. package/bin/linux-x64/licenses/rand_chacha-0.3.1/LICENSE-APACHE +201 -0
  1542. package/bin/linux-x64/licenses/rand_chacha-0.3.1/LICENSE-MIT +26 -0
  1543. package/bin/linux-x64/licenses/rand_chacha-0.9.0/LICENSE-APACHE +176 -0
  1544. package/bin/linux-x64/licenses/rand_chacha-0.9.0/LICENSE-MIT +26 -0
  1545. package/bin/linux-x64/licenses/rand_core-0.6.4/LICENSE-APACHE +187 -0
  1546. package/bin/linux-x64/licenses/rand_core-0.6.4/LICENSE-MIT +26 -0
  1547. package/bin/linux-x64/licenses/rand_core-0.9.5/LICENSE-APACHE +187 -0
  1548. package/bin/linux-x64/licenses/rand_core-0.9.5/LICENSE-MIT +26 -0
  1549. package/bin/linux-x64/licenses/regex-1.12.4/LICENSE-APACHE +201 -0
  1550. package/bin/linux-x64/licenses/regex-1.12.4/LICENSE-MIT +25 -0
  1551. package/bin/linux-x64/licenses/regex-automata-0.4.14/LICENSE-APACHE +201 -0
  1552. package/bin/linux-x64/licenses/regex-automata-0.4.14/LICENSE-MIT +25 -0
  1553. package/bin/linux-x64/licenses/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
  1554. package/bin/linux-x64/licenses/regex-syntax-0.8.11/LICENSE-MIT +25 -0
  1555. package/bin/linux-x64/licenses/reqwest-0.12.28/LICENSE-APACHE +201 -0
  1556. package/bin/linux-x64/licenses/reqwest-0.12.28/LICENSE-MIT +20 -0
  1557. package/bin/linux-x64/licenses/ring-0.17.14/LICENSE +9 -0
  1558. package/bin/linux-x64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  1559. package/bin/linux-x64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  1560. package/bin/linux-x64/licenses/roff-1.1.1/LICENSE-APACHE +202 -0
  1561. package/bin/linux-x64/licenses/roff-1.1.1/LICENSE-MIT +19 -0
  1562. package/bin/linux-x64/licenses/rustc-hash-2.1.2/LICENSE-APACHE +176 -0
  1563. package/bin/linux-x64/licenses/rustc-hash-2.1.2/LICENSE-MIT +23 -0
  1564. package/bin/linux-x64/licenses/rustix-1.1.4/LICENSE-APACHE +201 -0
  1565. package/bin/linux-x64/licenses/rustix-1.1.4/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  1566. package/bin/linux-x64/licenses/rustix-1.1.4/LICENSE-MIT +23 -0
  1567. package/bin/linux-x64/licenses/rustls-0.23.41/LICENSE-APACHE +201 -0
  1568. package/bin/linux-x64/licenses/rustls-0.23.41/LICENSE-ISC +15 -0
  1569. package/bin/linux-x64/licenses/rustls-0.23.41/LICENSE-MIT +25 -0
  1570. package/bin/linux-x64/licenses/rustls-native-certs-0.8.4/LICENSE +10 -0
  1571. package/bin/linux-x64/licenses/rustls-native-certs-0.8.4/LICENSE-APACHE +201 -0
  1572. package/bin/linux-x64/licenses/rustls-native-certs-0.8.4/LICENSE-ISC +15 -0
  1573. package/bin/linux-x64/licenses/rustls-native-certs-0.8.4/LICENSE-MIT +25 -0
  1574. package/bin/linux-x64/licenses/rustls-pki-types-1.14.1/LICENSE-APACHE +201 -0
  1575. package/bin/linux-x64/licenses/rustls-pki-types-1.14.1/LICENSE-MIT +25 -0
  1576. package/bin/linux-x64/licenses/rustls-webpki-0.103.13/LICENSE +19 -0
  1577. package/bin/linux-x64/licenses/ryu-1.0.23/LICENSE-APACHE +176 -0
  1578. package/bin/linux-x64/licenses/ryu-1.0.23/LICENSE-BOOST +23 -0
  1579. package/bin/linux-x64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  1580. package/bin/linux-x64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  1581. package/bin/linux-x64/licenses/secrecy-0.10.3/LICENSE-APACHE +202 -0
  1582. package/bin/linux-x64/licenses/secrecy-0.10.3/LICENSE-MIT +21 -0
  1583. package/bin/linux-x64/licenses/serde-1.0.228/LICENSE-APACHE +176 -0
  1584. package/bin/linux-x64/licenses/serde-1.0.228/LICENSE-MIT +23 -0
  1585. package/bin/linux-x64/licenses/serde_core-1.0.228/LICENSE-APACHE +176 -0
  1586. package/bin/linux-x64/licenses/serde_core-1.0.228/LICENSE-MIT +23 -0
  1587. package/bin/linux-x64/licenses/serde_derive-1.0.228/LICENSE-APACHE +176 -0
  1588. package/bin/linux-x64/licenses/serde_derive-1.0.228/LICENSE-MIT +23 -0
  1589. package/bin/linux-x64/licenses/serde_json-1.0.150/LICENSE-APACHE +176 -0
  1590. package/bin/linux-x64/licenses/serde_json-1.0.150/LICENSE-MIT +23 -0
  1591. package/bin/linux-x64/licenses/serde_json_path-0.7.2/LICENSE-MIT +21 -0
  1592. package/bin/linux-x64/licenses/serde_json_path_core-0.2.2/LICENSE-MIT +21 -0
  1593. package/bin/linux-x64/licenses/serde_json_path_macros-0.1.6/LICENSE-MIT +21 -0
  1594. package/bin/linux-x64/licenses/serde_json_path_macros_internal-0.1.2/LICENSE-MIT +21 -0
  1595. package/bin/linux-x64/licenses/serde_qs-1.1.2/LICENSE-APACHE +176 -0
  1596. package/bin/linux-x64/licenses/serde_qs-1.1.2/LICENSE-MIT +27 -0
  1597. package/bin/linux-x64/licenses/serde_urlencoded-0.7.1/LICENSE-APACHE +176 -0
  1598. package/bin/linux-x64/licenses/serde_urlencoded-0.7.1/LICENSE-MIT +25 -0
  1599. package/bin/linux-x64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-APACHE +176 -0
  1600. package/bin/linux-x64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-MIT +23 -0
  1601. package/bin/linux-x64/licenses/serial_test-3.5.0/LICENSE +19 -0
  1602. package/bin/linux-x64/licenses/serial_test_derive-3.5.0/LICENSE +19 -0
  1603. package/bin/linux-x64/licenses/sha1-0.10.6/LICENSE-APACHE +201 -0
  1604. package/bin/linux-x64/licenses/sha1-0.10.6/LICENSE-MIT +27 -0
  1605. package/bin/linux-x64/licenses/sha2-0.10.9/LICENSE-APACHE +201 -0
  1606. package/bin/linux-x64/licenses/sha2-0.10.9/LICENSE-MIT +27 -0
  1607. package/bin/linux-x64/licenses/sharded-slab-0.1.7/LICENSE +19 -0
  1608. package/bin/linux-x64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  1609. package/bin/linux-x64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  1610. package/bin/linux-x64/licenses/signal-hook-registry-1.4.8/LICENSE-APACHE +201 -0
  1611. package/bin/linux-x64/licenses/signal-hook-registry-1.4.8/LICENSE-MIT +25 -0
  1612. package/bin/linux-x64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  1613. package/bin/linux-x64/licenses/slab-0.4.12/LICENSE +25 -0
  1614. package/bin/linux-x64/licenses/slug-0.1.6/LICENSE-APACHE +201 -0
  1615. package/bin/linux-x64/licenses/slug-0.1.6/LICENSE-MIT +25 -0
  1616. package/bin/linux-x64/licenses/smallvec-1.15.2/LICENSE-APACHE +201 -0
  1617. package/bin/linux-x64/licenses/smallvec-1.15.2/LICENSE-MIT +25 -0
  1618. package/bin/linux-x64/licenses/socket2-0.6.4/LICENSE-APACHE +201 -0
  1619. package/bin/linux-x64/licenses/socket2-0.6.4/LICENSE-MIT +25 -0
  1620. package/bin/linux-x64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  1621. package/bin/linux-x64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  1622. package/bin/linux-x64/licenses/strsim-0.11.1/LICENSE +23 -0
  1623. package/bin/linux-x64/licenses/subtle-2.6.1/LICENSE +29 -0
  1624. package/bin/linux-x64/licenses/symlink-0.1.0/LICENSE-APACHE +201 -0
  1625. package/bin/linux-x64/licenses/symlink-0.1.0/LICENSE-MIT +25 -0
  1626. package/bin/linux-x64/licenses/syn-2.0.118/LICENSE-APACHE +176 -0
  1627. package/bin/linux-x64/licenses/syn-2.0.118/LICENSE-MIT +23 -0
  1628. package/bin/linux-x64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  1629. package/bin/linux-x64/licenses/synstructure-0.13.2/LICENSE +7 -0
  1630. package/bin/linux-x64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  1631. package/bin/linux-x64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  1632. package/bin/linux-x64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  1633. package/bin/linux-x64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  1634. package/bin/linux-x64/licenses/thiserror-2.0.18/LICENSE-APACHE +176 -0
  1635. package/bin/linux-x64/licenses/thiserror-2.0.18/LICENSE-MIT +23 -0
  1636. package/bin/linux-x64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  1637. package/bin/linux-x64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  1638. package/bin/linux-x64/licenses/thiserror-impl-2.0.18/LICENSE-APACHE +176 -0
  1639. package/bin/linux-x64/licenses/thiserror-impl-2.0.18/LICENSE-MIT +23 -0
  1640. package/bin/linux-x64/licenses/thread_local-1.1.9/LICENSE-APACHE +201 -0
  1641. package/bin/linux-x64/licenses/thread_local-1.1.9/LICENSE-MIT +25 -0
  1642. package/bin/linux-x64/licenses/time-0.3.51/LICENSE-Apache +177 -0
  1643. package/bin/linux-x64/licenses/time-0.3.51/LICENSE-MIT +19 -0
  1644. package/bin/linux-x64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  1645. package/bin/linux-x64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  1646. package/bin/linux-x64/licenses/time-macros-0.2.30/LICENSE-Apache +177 -0
  1647. package/bin/linux-x64/licenses/time-macros-0.2.30/LICENSE-MIT +19 -0
  1648. package/bin/linux-x64/licenses/tinystr-0.8.3/LICENSE +46 -0
  1649. package/bin/linux-x64/licenses/tinyvec-1.11.0/LICENSE-APACHE.md +202 -0
  1650. package/bin/linux-x64/licenses/tinyvec-1.11.0/LICENSE-MIT.md +5 -0
  1651. package/bin/linux-x64/licenses/tinyvec-1.11.0/LICENSE-ZLIB.md +11 -0
  1652. package/bin/linux-x64/licenses/tinyvec_macros-0.1.1/LICENSE-APACHE.md +202 -0
  1653. package/bin/linux-x64/licenses/tinyvec_macros-0.1.1/LICENSE-MIT.md +21 -0
  1654. package/bin/linux-x64/licenses/tinyvec_macros-0.1.1/LICENSE-ZLIB.md +20 -0
  1655. package/bin/linux-x64/licenses/tokio-1.52.3/LICENSE +21 -0
  1656. package/bin/linux-x64/licenses/tokio-macros-2.7.0/LICENSE +22 -0
  1657. package/bin/linux-x64/licenses/tokio-native-tls-0.3.1/LICENSE +25 -0
  1658. package/bin/linux-x64/licenses/tokio-rustls-0.26.4/LICENSE-APACHE +201 -0
  1659. package/bin/linux-x64/licenses/tokio-rustls-0.26.4/LICENSE-MIT +25 -0
  1660. package/bin/linux-x64/licenses/tokio-tungstenite-0.24.0/LICENSE +20 -0
  1661. package/bin/linux-x64/licenses/tokio-util-0.7.18/LICENSE +21 -0
  1662. package/bin/linux-x64/licenses/tower-0.5.3/LICENSE +25 -0
  1663. package/bin/linux-x64/licenses/tower-http-0.6.11/LICENSE +25 -0
  1664. package/bin/linux-x64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  1665. package/bin/linux-x64/licenses/tower-service-0.3.3/LICENSE +25 -0
  1666. package/bin/linux-x64/licenses/tracing-0.1.44/LICENSE +25 -0
  1667. package/bin/linux-x64/licenses/tracing-appender-0.2.5/LICENSE +25 -0
  1668. package/bin/linux-x64/licenses/tracing-attributes-0.1.31/LICENSE +25 -0
  1669. package/bin/linux-x64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  1670. package/bin/linux-x64/licenses/tracing-log-0.2.0/LICENSE +25 -0
  1671. package/bin/linux-x64/licenses/tracing-serde-0.2.0/LICENSE +25 -0
  1672. package/bin/linux-x64/licenses/tracing-subscriber-0.3.23/LICENSE +25 -0
  1673. package/bin/linux-x64/licenses/try-lock-0.2.5/LICENSE +21 -0
  1674. package/bin/linux-x64/licenses/tungstenite-0.24.0/LICENSE-APACHE +201 -0
  1675. package/bin/linux-x64/licenses/tungstenite-0.24.0/LICENSE-MIT +20 -0
  1676. package/bin/linux-x64/licenses/typenum-1.20.1/LICENSE +1 -0
  1677. package/bin/linux-x64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  1678. package/bin/linux-x64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  1679. package/bin/linux-x64/licenses/unicase-2.9.0/LICENSE-APACHE +201 -0
  1680. package/bin/linux-x64/licenses/unicase-2.9.0/LICENSE-MIT +20 -0
  1681. package/bin/linux-x64/licenses/unicode-ident-1.0.24/LICENSE-APACHE +176 -0
  1682. package/bin/linux-x64/licenses/unicode-ident-1.0.24/LICENSE-MIT +23 -0
  1683. package/bin/linux-x64/licenses/unicode-ident-1.0.24/LICENSE-UNICODE +39 -0
  1684. package/bin/linux-x64/licenses/unicode-normalization-0.1.25/LICENSE-APACHE +201 -0
  1685. package/bin/linux-x64/licenses/unicode-normalization-0.1.25/LICENSE-MIT +25 -0
  1686. package/bin/linux-x64/licenses/unsafe-libyaml-0.2.11/LICENSE-MIT +23 -0
  1687. package/bin/linux-x64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  1688. package/bin/linux-x64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  1689. package/bin/linux-x64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  1690. package/bin/linux-x64/licenses/utf-8-0.7.6/LICENSE-APACHE +176 -0
  1691. package/bin/linux-x64/licenses/utf-8-0.7.6/LICENSE-MIT +23 -0
  1692. package/bin/linux-x64/licenses/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
  1693. package/bin/linux-x64/licenses/utf8_iter-1.0.4/LICENSE-MIT +25 -0
  1694. package/bin/linux-x64/licenses/utf8parse-0.2.2/LICENSE-APACHE +176 -0
  1695. package/bin/linux-x64/licenses/utf8parse-0.2.2/LICENSE-MIT +25 -0
  1696. package/bin/linux-x64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  1697. package/bin/linux-x64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  1698. package/bin/linux-x64/licenses/version_check-0.9.5/LICENSE-APACHE +201 -0
  1699. package/bin/linux-x64/licenses/version_check-0.9.5/LICENSE-MIT +19 -0
  1700. package/bin/linux-x64/licenses/want-0.3.1/LICENSE +20 -0
  1701. package/bin/linux-x64/licenses/webbrowser-1.2.4/LICENSE-APACHE +190 -0
  1702. package/bin/linux-x64/licenses/webbrowser-1.2.4/LICENSE-MIT +27 -0
  1703. package/bin/linux-x64/licenses/wiremock-0.6.5/LICENSE-APACHE +201 -0
  1704. package/bin/linux-x64/licenses/wiremock-0.6.5/LICENSE-MIT +23 -0
  1705. package/bin/linux-x64/licenses/writeable-0.6.3/LICENSE +46 -0
  1706. package/bin/linux-x64/licenses/yoke-0.8.3/LICENSE +46 -0
  1707. package/bin/linux-x64/licenses/yoke-derive-0.8.2/LICENSE +46 -0
  1708. package/bin/linux-x64/licenses/zerocopy-0.8.52/LICENSE-APACHE +202 -0
  1709. package/bin/linux-x64/licenses/zerocopy-0.8.52/LICENSE-BSD +24 -0
  1710. package/bin/linux-x64/licenses/zerocopy-0.8.52/LICENSE-MIT +26 -0
  1711. package/bin/linux-x64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  1712. package/bin/linux-x64/licenses/zerofrom-derive-0.1.7/LICENSE +46 -0
  1713. package/bin/linux-x64/licenses/zeroize-1.9.0/LICENSE-APACHE +202 -0
  1714. package/bin/linux-x64/licenses/zeroize-1.9.0/LICENSE-MIT +25 -0
  1715. package/bin/linux-x64/licenses/zeroize_derive-1.5.0/LICENSE-APACHE +202 -0
  1716. package/bin/linux-x64/licenses/zeroize_derive-1.5.0/LICENSE-MIT +25 -0
  1717. package/bin/linux-x64/licenses/zerotrie-0.2.4/LICENSE +46 -0
  1718. package/bin/linux-x64/licenses/zerovec-0.11.6/LICENSE +46 -0
  1719. package/bin/linux-x64/licenses/zerovec-derive-0.11.3/LICENSE +46 -0
  1720. package/bin/linux-x64/licenses/zmij-1.0.21/LICENSE-MIT +23 -0
  1721. package/bin/windows-arm64/action-api.exe +0 -0
  1722. package/bin/windows-arm64/dependencies.json +2387 -0
  1723. package/bin/windows-arm64/licenses/adler2-2.0.1/LICENSE-0BSD +12 -0
  1724. package/bin/windows-arm64/licenses/adler2-2.0.1/LICENSE-APACHE +201 -0
  1725. package/bin/windows-arm64/licenses/adler2-2.0.1/LICENSE-MIT +23 -0
  1726. package/bin/windows-arm64/licenses/aho-corasick-1.1.4/COPYING +3 -0
  1727. package/bin/windows-arm64/licenses/aho-corasick-1.1.4/LICENSE-MIT +21 -0
  1728. package/bin/windows-arm64/licenses/anstream-1.0.0/LICENSE-APACHE +202 -0
  1729. package/bin/windows-arm64/licenses/anstream-1.0.0/LICENSE-MIT +19 -0
  1730. package/bin/windows-arm64/licenses/anstyle-1.0.14/LICENSE-APACHE +202 -0
  1731. package/bin/windows-arm64/licenses/anstyle-1.0.14/LICENSE-MIT +19 -0
  1732. package/bin/windows-arm64/licenses/anstyle-parse-1.0.0/LICENSE-APACHE +202 -0
  1733. package/bin/windows-arm64/licenses/anstyle-parse-1.0.0/LICENSE-MIT +19 -0
  1734. package/bin/windows-arm64/licenses/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
  1735. package/bin/windows-arm64/licenses/anstyle-query-1.1.5/LICENSE-MIT +19 -0
  1736. package/bin/windows-arm64/licenses/anstyle-wincon-3.0.11/LICENSE-APACHE +202 -0
  1737. package/bin/windows-arm64/licenses/anstyle-wincon-3.0.11/LICENSE-MIT +19 -0
  1738. package/bin/windows-arm64/licenses/anyhow-1.0.103/LICENSE-APACHE +176 -0
  1739. package/bin/windows-arm64/licenses/anyhow-1.0.103/LICENSE-MIT +23 -0
  1740. package/bin/windows-arm64/licenses/assert-json-diff-2.0.2/LICENSE +7 -0
  1741. package/bin/windows-arm64/licenses/async-compression-0.4.43/LICENSE-APACHE +201 -0
  1742. package/bin/windows-arm64/licenses/async-compression-0.4.43/LICENSE-MIT +21 -0
  1743. package/bin/windows-arm64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  1744. package/bin/windows-arm64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  1745. package/bin/windows-arm64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  1746. package/bin/windows-arm64/licenses/base64-0.22.1/LICENSE-APACHE +201 -0
  1747. package/bin/windows-arm64/licenses/base64-0.22.1/LICENSE-MIT +21 -0
  1748. package/bin/windows-arm64/licenses/bitflags-2.13.0/LICENSE-APACHE +201 -0
  1749. package/bin/windows-arm64/licenses/bitflags-2.13.0/LICENSE-MIT +25 -0
  1750. package/bin/windows-arm64/licenses/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  1751. package/bin/windows-arm64/licenses/block-buffer-0.10.4/LICENSE-MIT +25 -0
  1752. package/bin/windows-arm64/licenses/byteorder-1.5.0/COPYING +3 -0
  1753. package/bin/windows-arm64/licenses/byteorder-1.5.0/LICENSE-MIT +21 -0
  1754. package/bin/windows-arm64/licenses/bytes-1.12.0/LICENSE +25 -0
  1755. package/bin/windows-arm64/licenses/cc-1.2.65/LICENSE-APACHE +201 -0
  1756. package/bin/windows-arm64/licenses/cc-1.2.65/LICENSE-MIT +25 -0
  1757. package/bin/windows-arm64/licenses/cfg-if-1.0.4/LICENSE-APACHE +201 -0
  1758. package/bin/windows-arm64/licenses/cfg-if-1.0.4/LICENSE-MIT +25 -0
  1759. package/bin/windows-arm64/licenses/cfg_aliases-0.2.1/LICENSE +9 -0
  1760. package/bin/windows-arm64/licenses/clap-4.6.1/LICENSE-APACHE +202 -0
  1761. package/bin/windows-arm64/licenses/clap-4.6.1/LICENSE-MIT +19 -0
  1762. package/bin/windows-arm64/licenses/clap_builder-4.6.0/LICENSE-APACHE +202 -0
  1763. package/bin/windows-arm64/licenses/clap_builder-4.6.0/LICENSE-MIT +19 -0
  1764. package/bin/windows-arm64/licenses/clap_complete-4.6.5/LICENSE-APACHE +202 -0
  1765. package/bin/windows-arm64/licenses/clap_complete-4.6.5/LICENSE-MIT +19 -0
  1766. package/bin/windows-arm64/licenses/clap_derive-4.6.1/LICENSE-APACHE +202 -0
  1767. package/bin/windows-arm64/licenses/clap_derive-4.6.1/LICENSE-MIT +19 -0
  1768. package/bin/windows-arm64/licenses/clap_lex-1.1.0/LICENSE-APACHE +202 -0
  1769. package/bin/windows-arm64/licenses/clap_lex-1.1.0/LICENSE-MIT +19 -0
  1770. package/bin/windows-arm64/licenses/clap_mangen-0.2.33/LICENSE-APACHE +202 -0
  1771. package/bin/windows-arm64/licenses/clap_mangen-0.2.33/LICENSE-MIT +19 -0
  1772. package/bin/windows-arm64/licenses/colorchoice-1.0.5/LICENSE-APACHE +202 -0
  1773. package/bin/windows-arm64/licenses/colorchoice-1.0.5/LICENSE-MIT +19 -0
  1774. package/bin/windows-arm64/licenses/compression-codecs-0.4.38/LICENSE-APACHE +201 -0
  1775. package/bin/windows-arm64/licenses/compression-codecs-0.4.38/LICENSE-MIT +21 -0
  1776. package/bin/windows-arm64/licenses/compression-core-0.4.32/LICENSE-APACHE +201 -0
  1777. package/bin/windows-arm64/licenses/compression-core-0.4.32/LICENSE-MIT +21 -0
  1778. package/bin/windows-arm64/licenses/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  1779. package/bin/windows-arm64/licenses/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  1780. package/bin/windows-arm64/licenses/crc32fast-1.5.0/LICENSE-APACHE +202 -0
  1781. package/bin/windows-arm64/licenses/crc32fast-1.5.0/LICENSE-MIT +21 -0
  1782. package/bin/windows-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-APACHE +201 -0
  1783. package/bin/windows-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-MIT +27 -0
  1784. package/bin/windows-arm64/licenses/crossbeam-channel-0.5.15/LICENSE-THIRD-PARTY +593 -0
  1785. package/bin/windows-arm64/licenses/crossbeam-utils-0.8.21/LICENSE-APACHE +201 -0
  1786. package/bin/windows-arm64/licenses/crossbeam-utils-0.8.21/LICENSE-MIT +27 -0
  1787. package/bin/windows-arm64/licenses/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  1788. package/bin/windows-arm64/licenses/crypto-common-0.1.7/LICENSE-MIT +25 -0
  1789. package/bin/windows-arm64/licenses/data-encoding-2.11.0/LICENSE +22 -0
  1790. package/bin/windows-arm64/licenses/deadpool-0.12.3/LICENSE-APACHE +202 -0
  1791. package/bin/windows-arm64/licenses/deadpool-0.12.3/LICENSE-MIT +21 -0
  1792. package/bin/windows-arm64/licenses/deadpool-runtime-0.1.4/LICENSE-APACHE +202 -0
  1793. package/bin/windows-arm64/licenses/deadpool-runtime-0.1.4/LICENSE-MIT +21 -0
  1794. package/bin/windows-arm64/licenses/deranged-0.5.8/LICENSE-Apache +202 -0
  1795. package/bin/windows-arm64/licenses/deranged-0.5.8/LICENSE-MIT +19 -0
  1796. package/bin/windows-arm64/licenses/deunicode-1.6.2/LICENSE +26 -0
  1797. package/bin/windows-arm64/licenses/digest-0.10.7/LICENSE-APACHE +201 -0
  1798. package/bin/windows-arm64/licenses/digest-0.10.7/LICENSE-MIT +25 -0
  1799. package/bin/windows-arm64/licenses/displaydoc-0.2.6/LICENSE-APACHE +201 -0
  1800. package/bin/windows-arm64/licenses/displaydoc-0.2.6/LICENSE-MIT +23 -0
  1801. package/bin/windows-arm64/licenses/dotenvy-0.15.7/LICENSE +21 -0
  1802. package/bin/windows-arm64/licenses/equivalent-1.0.2/LICENSE-APACHE +201 -0
  1803. package/bin/windows-arm64/licenses/equivalent-1.0.2/LICENSE-MIT +25 -0
  1804. package/bin/windows-arm64/licenses/fastrand-2.4.1/LICENSE-APACHE +201 -0
  1805. package/bin/windows-arm64/licenses/fastrand-2.4.1/LICENSE-MIT +23 -0
  1806. package/bin/windows-arm64/licenses/find-msvc-tools-0.1.9/LICENSE-APACHE +201 -0
  1807. package/bin/windows-arm64/licenses/find-msvc-tools-0.1.9/LICENSE-MIT +25 -0
  1808. package/bin/windows-arm64/licenses/flate2-1.1.9/LICENSE-APACHE +201 -0
  1809. package/bin/windows-arm64/licenses/flate2-1.1.9/LICENSE-MIT +25 -0
  1810. package/bin/windows-arm64/licenses/fnv-1.0.7/LICENSE-APACHE +201 -0
  1811. package/bin/windows-arm64/licenses/fnv-1.0.7/LICENSE-MIT +25 -0
  1812. package/bin/windows-arm64/licenses/foreign-types-0.3.2/LICENSE-APACHE +202 -0
  1813. package/bin/windows-arm64/licenses/foreign-types-0.3.2/LICENSE-MIT +19 -0
  1814. package/bin/windows-arm64/licenses/foreign-types-shared-0.1.1/LICENSE-APACHE +202 -0
  1815. package/bin/windows-arm64/licenses/foreign-types-shared-0.1.1/LICENSE-MIT +19 -0
  1816. package/bin/windows-arm64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  1817. package/bin/windows-arm64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  1818. package/bin/windows-arm64/licenses/futures-0.3.32/LICENSE-APACHE +202 -0
  1819. package/bin/windows-arm64/licenses/futures-0.3.32/LICENSE-MIT +26 -0
  1820. package/bin/windows-arm64/licenses/futures-channel-0.3.32/LICENSE-APACHE +202 -0
  1821. package/bin/windows-arm64/licenses/futures-channel-0.3.32/LICENSE-MIT +26 -0
  1822. package/bin/windows-arm64/licenses/futures-core-0.3.32/LICENSE-APACHE +202 -0
  1823. package/bin/windows-arm64/licenses/futures-core-0.3.32/LICENSE-MIT +26 -0
  1824. package/bin/windows-arm64/licenses/futures-executor-0.3.32/LICENSE-APACHE +202 -0
  1825. package/bin/windows-arm64/licenses/futures-executor-0.3.32/LICENSE-MIT +26 -0
  1826. package/bin/windows-arm64/licenses/futures-io-0.3.32/LICENSE-APACHE +202 -0
  1827. package/bin/windows-arm64/licenses/futures-io-0.3.32/LICENSE-MIT +26 -0
  1828. package/bin/windows-arm64/licenses/futures-macro-0.3.32/LICENSE-APACHE +202 -0
  1829. package/bin/windows-arm64/licenses/futures-macro-0.3.32/LICENSE-MIT +26 -0
  1830. package/bin/windows-arm64/licenses/futures-sink-0.3.32/LICENSE-APACHE +202 -0
  1831. package/bin/windows-arm64/licenses/futures-sink-0.3.32/LICENSE-MIT +26 -0
  1832. package/bin/windows-arm64/licenses/futures-task-0.3.32/LICENSE-APACHE +202 -0
  1833. package/bin/windows-arm64/licenses/futures-task-0.3.32/LICENSE-MIT +26 -0
  1834. package/bin/windows-arm64/licenses/futures-util-0.3.32/LICENSE-APACHE +202 -0
  1835. package/bin/windows-arm64/licenses/futures-util-0.3.32/LICENSE-MIT +26 -0
  1836. package/bin/windows-arm64/licenses/generic-array-0.14.7/LICENSE +21 -0
  1837. package/bin/windows-arm64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  1838. package/bin/windows-arm64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  1839. package/bin/windows-arm64/licenses/getrandom-0.3.4/LICENSE-APACHE +201 -0
  1840. package/bin/windows-arm64/licenses/getrandom-0.3.4/LICENSE-MIT +26 -0
  1841. package/bin/windows-arm64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  1842. package/bin/windows-arm64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  1843. package/bin/windows-arm64/licenses/h2-0.4.16/LICENSE +25 -0
  1844. package/bin/windows-arm64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  1845. package/bin/windows-arm64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  1846. package/bin/windows-arm64/licenses/heck-0.5.0/LICENSE-APACHE +201 -0
  1847. package/bin/windows-arm64/licenses/heck-0.5.0/LICENSE-MIT +25 -0
  1848. package/bin/windows-arm64/licenses/hmac-0.12.1/LICENSE-APACHE +201 -0
  1849. package/bin/windows-arm64/licenses/hmac-0.12.1/LICENSE-MIT +25 -0
  1850. package/bin/windows-arm64/licenses/http-1.4.2/LICENSE-APACHE +201 -0
  1851. package/bin/windows-arm64/licenses/http-1.4.2/LICENSE-MIT +25 -0
  1852. package/bin/windows-arm64/licenses/http-body-1.0.1/LICENSE +25 -0
  1853. package/bin/windows-arm64/licenses/http-body-util-0.1.3/LICENSE +25 -0
  1854. package/bin/windows-arm64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  1855. package/bin/windows-arm64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  1856. package/bin/windows-arm64/licenses/httpdate-1.0.3/LICENSE-APACHE +201 -0
  1857. package/bin/windows-arm64/licenses/httpdate-1.0.3/LICENSE-MIT +19 -0
  1858. package/bin/windows-arm64/licenses/hyper-1.10.1/LICENSE +19 -0
  1859. package/bin/windows-arm64/licenses/hyper-rustls-0.27.9/LICENSE-APACHE +201 -0
  1860. package/bin/windows-arm64/licenses/hyper-rustls-0.27.9/LICENSE-ISC +15 -0
  1861. package/bin/windows-arm64/licenses/hyper-rustls-0.27.9/LICENSE-MIT +25 -0
  1862. package/bin/windows-arm64/licenses/hyper-tls-0.6.0/LICENSE-APACHE +201 -0
  1863. package/bin/windows-arm64/licenses/hyper-tls-0.6.0/LICENSE-MIT +20 -0
  1864. package/bin/windows-arm64/licenses/hyper-util-0.1.20/LICENSE +19 -0
  1865. package/bin/windows-arm64/licenses/icu_collections-2.2.0/LICENSE +46 -0
  1866. package/bin/windows-arm64/licenses/icu_locale_core-2.2.0/LICENSE +46 -0
  1867. package/bin/windows-arm64/licenses/icu_normalizer-2.2.0/LICENSE +46 -0
  1868. package/bin/windows-arm64/licenses/icu_normalizer_data-2.2.0/LICENSE +46 -0
  1869. package/bin/windows-arm64/licenses/icu_properties-2.2.0/LICENSE +46 -0
  1870. package/bin/windows-arm64/licenses/icu_properties_data-2.2.0/LICENSE +46 -0
  1871. package/bin/windows-arm64/licenses/icu_provider-2.2.0/LICENSE +46 -0
  1872. package/bin/windows-arm64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  1873. package/bin/windows-arm64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  1874. package/bin/windows-arm64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  1875. package/bin/windows-arm64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  1876. package/bin/windows-arm64/licenses/indexmap-2.14.0/LICENSE-APACHE +201 -0
  1877. package/bin/windows-arm64/licenses/indexmap-2.14.0/LICENSE-MIT +25 -0
  1878. package/bin/windows-arm64/licenses/inventory-0.3.24/LICENSE-APACHE +176 -0
  1879. package/bin/windows-arm64/licenses/inventory-0.3.24/LICENSE-MIT +23 -0
  1880. package/bin/windows-arm64/licenses/ipnet-2.12.0/LICENSE-APACHE +201 -0
  1881. package/bin/windows-arm64/licenses/ipnet-2.12.0/LICENSE-MIT +7 -0
  1882. package/bin/windows-arm64/licenses/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
  1883. package/bin/windows-arm64/licenses/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
  1884. package/bin/windows-arm64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  1885. package/bin/windows-arm64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  1886. package/bin/windows-arm64/licenses/jmespath-0.3.0/jmespath-LICENSE +19 -0
  1887. package/bin/windows-arm64/licenses/keyring-3.6.3/LICENSE-APACHE +201 -0
  1888. package/bin/windows-arm64/licenses/keyring-3.6.3/LICENSE-MIT +25 -0
  1889. package/bin/windows-arm64/licenses/lazy_static-1.5.0/LICENSE-APACHE +201 -0
  1890. package/bin/windows-arm64/licenses/lazy_static-1.5.0/LICENSE-MIT +25 -0
  1891. package/bin/windows-arm64/licenses/libc-0.2.186/LICENSE-APACHE +176 -0
  1892. package/bin/windows-arm64/licenses/libc-0.2.186/LICENSE-MIT +25 -0
  1893. package/bin/windows-arm64/licenses/litemap-0.8.2/LICENSE +46 -0
  1894. package/bin/windows-arm64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  1895. package/bin/windows-arm64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  1896. package/bin/windows-arm64/licenses/log-0.4.33/LICENSE-APACHE +201 -0
  1897. package/bin/windows-arm64/licenses/log-0.4.33/LICENSE-MIT +25 -0
  1898. package/bin/windows-arm64/licenses/lru-slab-0.1.2/LICENSE-APACHE +202 -0
  1899. package/bin/windows-arm64/licenses/lru-slab-0.1.2/LICENSE-MIT +7 -0
  1900. package/bin/windows-arm64/licenses/lru-slab-0.1.2/LICENSE-ZLIB +19 -0
  1901. package/bin/windows-arm64/licenses/matchers-0.2.0/LICENSE +19 -0
  1902. package/bin/windows-arm64/licenses/memchr-2.8.2/COPYING +3 -0
  1903. package/bin/windows-arm64/licenses/memchr-2.8.2/LICENSE-MIT +21 -0
  1904. package/bin/windows-arm64/licenses/mime-0.3.17/LICENSE-APACHE +201 -0
  1905. package/bin/windows-arm64/licenses/mime-0.3.17/LICENSE-MIT +20 -0
  1906. package/bin/windows-arm64/licenses/mime_guess-2.0.5/LICENSE +22 -0
  1907. package/bin/windows-arm64/licenses/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  1908. package/bin/windows-arm64/licenses/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  1909. package/bin/windows-arm64/licenses/minimal-lexical-0.2.1/LICENSE.md +37 -0
  1910. package/bin/windows-arm64/licenses/miniz_oxide-0.8.9/LICENSE +25 -0
  1911. package/bin/windows-arm64/licenses/miniz_oxide-0.8.9/LICENSE-APACHE.md +177 -0
  1912. package/bin/windows-arm64/licenses/miniz_oxide-0.8.9/LICENSE-MIT.md +24 -0
  1913. package/bin/windows-arm64/licenses/miniz_oxide-0.8.9/LICENSE-ZLIB.md +14 -0
  1914. package/bin/windows-arm64/licenses/mio-1.2.1/LICENSE +19 -0
  1915. package/bin/windows-arm64/licenses/native-tls-0.2.18/LICENSE-APACHE +202 -0
  1916. package/bin/windows-arm64/licenses/native-tls-0.2.18/LICENSE-MIT +19 -0
  1917. package/bin/windows-arm64/licenses/nom-7.1.3/LICENSE +20 -0
  1918. package/bin/windows-arm64/licenses/nu-ansi-term-0.50.3/LICENSE +22 -0
  1919. package/bin/windows-arm64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  1920. package/bin/windows-arm64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  1921. package/bin/windows-arm64/licenses/num_cpus-1.17.0/LICENSE-APACHE +201 -0
  1922. package/bin/windows-arm64/licenses/num_cpus-1.17.0/LICENSE-MIT +20 -0
  1923. package/bin/windows-arm64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  1924. package/bin/windows-arm64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  1925. package/bin/windows-arm64/licenses/once_cell_polyfill-1.70.2/LICENSE-APACHE +202 -0
  1926. package/bin/windows-arm64/licenses/once_cell_polyfill-1.70.2/LICENSE-MIT +19 -0
  1927. package/bin/windows-arm64/licenses/openssl-0.10.81/LICENSE +15 -0
  1928. package/bin/windows-arm64/licenses/openssl-0.10.81/LICENSE-APACHE +202 -0
  1929. package/bin/windows-arm64/licenses/openssl-macros-0.1.1/LICENSE-APACHE +202 -0
  1930. package/bin/windows-arm64/licenses/openssl-macros-0.1.1/LICENSE-MIT +19 -0
  1931. package/bin/windows-arm64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-APACHE +201 -0
  1932. package/bin/windows-arm64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-MIT +25 -0
  1933. package/bin/windows-arm64/licenses/openssl-sys-0.9.117/LICENSE-MIT +25 -0
  1934. package/bin/windows-arm64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  1935. package/bin/windows-arm64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  1936. package/bin/windows-arm64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  1937. package/bin/windows-arm64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  1938. package/bin/windows-arm64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  1939. package/bin/windows-arm64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  1940. package/bin/windows-arm64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  1941. package/bin/windows-arm64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  1942. package/bin/windows-arm64/licenses/pkg-config-0.3.33/LICENSE-APACHE +201 -0
  1943. package/bin/windows-arm64/licenses/pkg-config-0.3.33/LICENSE-MIT +25 -0
  1944. package/bin/windows-arm64/licenses/potential_utf-0.1.5/LICENSE +46 -0
  1945. package/bin/windows-arm64/licenses/powerfmt-0.2.0/LICENSE-Apache +202 -0
  1946. package/bin/windows-arm64/licenses/powerfmt-0.2.0/LICENSE-MIT +19 -0
  1947. package/bin/windows-arm64/licenses/ppv-lite86-0.2.21/LICENSE-APACHE +201 -0
  1948. package/bin/windows-arm64/licenses/ppv-lite86-0.2.21/LICENSE-MIT +25 -0
  1949. package/bin/windows-arm64/licenses/proc-macro2-1.0.106/LICENSE-APACHE +176 -0
  1950. package/bin/windows-arm64/licenses/proc-macro2-1.0.106/LICENSE-MIT +23 -0
  1951. package/bin/windows-arm64/licenses/quinn-0.11.11/LICENSE-APACHE +201 -0
  1952. package/bin/windows-arm64/licenses/quinn-0.11.11/LICENSE-MIT +7 -0
  1953. package/bin/windows-arm64/licenses/quinn-proto-0.11.15/LICENSE-APACHE +201 -0
  1954. package/bin/windows-arm64/licenses/quinn-proto-0.11.15/LICENSE-MIT +7 -0
  1955. package/bin/windows-arm64/licenses/quinn-udp-0.5.14/LICENSE-APACHE +201 -0
  1956. package/bin/windows-arm64/licenses/quinn-udp-0.5.14/LICENSE-MIT +7 -0
  1957. package/bin/windows-arm64/licenses/quote-1.0.46/LICENSE-APACHE +176 -0
  1958. package/bin/windows-arm64/licenses/quote-1.0.46/LICENSE-MIT +23 -0
  1959. package/bin/windows-arm64/licenses/rand-0.8.6/LICENSE-APACHE +176 -0
  1960. package/bin/windows-arm64/licenses/rand-0.8.6/LICENSE-MIT +26 -0
  1961. package/bin/windows-arm64/licenses/rand-0.9.4/LICENSE-APACHE +176 -0
  1962. package/bin/windows-arm64/licenses/rand-0.9.4/LICENSE-MIT +26 -0
  1963. package/bin/windows-arm64/licenses/rand_chacha-0.3.1/LICENSE-APACHE +201 -0
  1964. package/bin/windows-arm64/licenses/rand_chacha-0.3.1/LICENSE-MIT +26 -0
  1965. package/bin/windows-arm64/licenses/rand_chacha-0.9.0/LICENSE-APACHE +176 -0
  1966. package/bin/windows-arm64/licenses/rand_chacha-0.9.0/LICENSE-MIT +26 -0
  1967. package/bin/windows-arm64/licenses/rand_core-0.6.4/LICENSE-APACHE +187 -0
  1968. package/bin/windows-arm64/licenses/rand_core-0.6.4/LICENSE-MIT +26 -0
  1969. package/bin/windows-arm64/licenses/rand_core-0.9.5/LICENSE-APACHE +187 -0
  1970. package/bin/windows-arm64/licenses/rand_core-0.9.5/LICENSE-MIT +26 -0
  1971. package/bin/windows-arm64/licenses/regex-1.12.4/LICENSE-APACHE +201 -0
  1972. package/bin/windows-arm64/licenses/regex-1.12.4/LICENSE-MIT +25 -0
  1973. package/bin/windows-arm64/licenses/regex-automata-0.4.14/LICENSE-APACHE +201 -0
  1974. package/bin/windows-arm64/licenses/regex-automata-0.4.14/LICENSE-MIT +25 -0
  1975. package/bin/windows-arm64/licenses/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
  1976. package/bin/windows-arm64/licenses/regex-syntax-0.8.11/LICENSE-MIT +25 -0
  1977. package/bin/windows-arm64/licenses/reqwest-0.12.28/LICENSE-APACHE +201 -0
  1978. package/bin/windows-arm64/licenses/reqwest-0.12.28/LICENSE-MIT +20 -0
  1979. package/bin/windows-arm64/licenses/ring-0.17.14/LICENSE +9 -0
  1980. package/bin/windows-arm64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  1981. package/bin/windows-arm64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  1982. package/bin/windows-arm64/licenses/roff-1.1.1/LICENSE-APACHE +202 -0
  1983. package/bin/windows-arm64/licenses/roff-1.1.1/LICENSE-MIT +19 -0
  1984. package/bin/windows-arm64/licenses/rustc-hash-2.1.2/LICENSE-APACHE +176 -0
  1985. package/bin/windows-arm64/licenses/rustc-hash-2.1.2/LICENSE-MIT +23 -0
  1986. package/bin/windows-arm64/licenses/rustls-0.23.41/LICENSE-APACHE +201 -0
  1987. package/bin/windows-arm64/licenses/rustls-0.23.41/LICENSE-ISC +15 -0
  1988. package/bin/windows-arm64/licenses/rustls-0.23.41/LICENSE-MIT +25 -0
  1989. package/bin/windows-arm64/licenses/rustls-native-certs-0.8.4/LICENSE +10 -0
  1990. package/bin/windows-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-APACHE +201 -0
  1991. package/bin/windows-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-ISC +15 -0
  1992. package/bin/windows-arm64/licenses/rustls-native-certs-0.8.4/LICENSE-MIT +25 -0
  1993. package/bin/windows-arm64/licenses/rustls-pki-types-1.14.1/LICENSE-APACHE +201 -0
  1994. package/bin/windows-arm64/licenses/rustls-pki-types-1.14.1/LICENSE-MIT +25 -0
  1995. package/bin/windows-arm64/licenses/rustls-webpki-0.103.13/LICENSE +19 -0
  1996. package/bin/windows-arm64/licenses/ryu-1.0.23/LICENSE-APACHE +176 -0
  1997. package/bin/windows-arm64/licenses/ryu-1.0.23/LICENSE-BOOST +23 -0
  1998. package/bin/windows-arm64/licenses/schannel-0.1.29/LICENSE.md +7 -0
  1999. package/bin/windows-arm64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  2000. package/bin/windows-arm64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  2001. package/bin/windows-arm64/licenses/secrecy-0.10.3/LICENSE-APACHE +202 -0
  2002. package/bin/windows-arm64/licenses/secrecy-0.10.3/LICENSE-MIT +21 -0
  2003. package/bin/windows-arm64/licenses/serde-1.0.228/LICENSE-APACHE +176 -0
  2004. package/bin/windows-arm64/licenses/serde-1.0.228/LICENSE-MIT +23 -0
  2005. package/bin/windows-arm64/licenses/serde_core-1.0.228/LICENSE-APACHE +176 -0
  2006. package/bin/windows-arm64/licenses/serde_core-1.0.228/LICENSE-MIT +23 -0
  2007. package/bin/windows-arm64/licenses/serde_derive-1.0.228/LICENSE-APACHE +176 -0
  2008. package/bin/windows-arm64/licenses/serde_derive-1.0.228/LICENSE-MIT +23 -0
  2009. package/bin/windows-arm64/licenses/serde_json-1.0.150/LICENSE-APACHE +176 -0
  2010. package/bin/windows-arm64/licenses/serde_json-1.0.150/LICENSE-MIT +23 -0
  2011. package/bin/windows-arm64/licenses/serde_json_path-0.7.2/LICENSE-MIT +21 -0
  2012. package/bin/windows-arm64/licenses/serde_json_path_core-0.2.2/LICENSE-MIT +21 -0
  2013. package/bin/windows-arm64/licenses/serde_json_path_macros-0.1.6/LICENSE-MIT +21 -0
  2014. package/bin/windows-arm64/licenses/serde_json_path_macros_internal-0.1.2/LICENSE-MIT +21 -0
  2015. package/bin/windows-arm64/licenses/serde_qs-1.1.2/LICENSE-APACHE +176 -0
  2016. package/bin/windows-arm64/licenses/serde_qs-1.1.2/LICENSE-MIT +27 -0
  2017. package/bin/windows-arm64/licenses/serde_urlencoded-0.7.1/LICENSE-APACHE +176 -0
  2018. package/bin/windows-arm64/licenses/serde_urlencoded-0.7.1/LICENSE-MIT +25 -0
  2019. package/bin/windows-arm64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-APACHE +176 -0
  2020. package/bin/windows-arm64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-MIT +23 -0
  2021. package/bin/windows-arm64/licenses/serial_test-3.5.0/LICENSE +19 -0
  2022. package/bin/windows-arm64/licenses/serial_test_derive-3.5.0/LICENSE +19 -0
  2023. package/bin/windows-arm64/licenses/sha1-0.10.6/LICENSE-APACHE +201 -0
  2024. package/bin/windows-arm64/licenses/sha1-0.10.6/LICENSE-MIT +27 -0
  2025. package/bin/windows-arm64/licenses/sha2-0.10.9/LICENSE-APACHE +201 -0
  2026. package/bin/windows-arm64/licenses/sha2-0.10.9/LICENSE-MIT +27 -0
  2027. package/bin/windows-arm64/licenses/sharded-slab-0.1.7/LICENSE +19 -0
  2028. package/bin/windows-arm64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  2029. package/bin/windows-arm64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  2030. package/bin/windows-arm64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  2031. package/bin/windows-arm64/licenses/slab-0.4.12/LICENSE +25 -0
  2032. package/bin/windows-arm64/licenses/slug-0.1.6/LICENSE-APACHE +201 -0
  2033. package/bin/windows-arm64/licenses/slug-0.1.6/LICENSE-MIT +25 -0
  2034. package/bin/windows-arm64/licenses/smallvec-1.15.2/LICENSE-APACHE +201 -0
  2035. package/bin/windows-arm64/licenses/smallvec-1.15.2/LICENSE-MIT +25 -0
  2036. package/bin/windows-arm64/licenses/socket2-0.6.4/LICENSE-APACHE +201 -0
  2037. package/bin/windows-arm64/licenses/socket2-0.6.4/LICENSE-MIT +25 -0
  2038. package/bin/windows-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  2039. package/bin/windows-arm64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  2040. package/bin/windows-arm64/licenses/strsim-0.11.1/LICENSE +23 -0
  2041. package/bin/windows-arm64/licenses/subtle-2.6.1/LICENSE +29 -0
  2042. package/bin/windows-arm64/licenses/symlink-0.1.0/LICENSE-APACHE +201 -0
  2043. package/bin/windows-arm64/licenses/symlink-0.1.0/LICENSE-MIT +25 -0
  2044. package/bin/windows-arm64/licenses/syn-2.0.118/LICENSE-APACHE +176 -0
  2045. package/bin/windows-arm64/licenses/syn-2.0.118/LICENSE-MIT +23 -0
  2046. package/bin/windows-arm64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  2047. package/bin/windows-arm64/licenses/synstructure-0.13.2/LICENSE +7 -0
  2048. package/bin/windows-arm64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  2049. package/bin/windows-arm64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  2050. package/bin/windows-arm64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  2051. package/bin/windows-arm64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  2052. package/bin/windows-arm64/licenses/thiserror-2.0.18/LICENSE-APACHE +176 -0
  2053. package/bin/windows-arm64/licenses/thiserror-2.0.18/LICENSE-MIT +23 -0
  2054. package/bin/windows-arm64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  2055. package/bin/windows-arm64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  2056. package/bin/windows-arm64/licenses/thiserror-impl-2.0.18/LICENSE-APACHE +176 -0
  2057. package/bin/windows-arm64/licenses/thiserror-impl-2.0.18/LICENSE-MIT +23 -0
  2058. package/bin/windows-arm64/licenses/thread_local-1.1.9/LICENSE-APACHE +201 -0
  2059. package/bin/windows-arm64/licenses/thread_local-1.1.9/LICENSE-MIT +25 -0
  2060. package/bin/windows-arm64/licenses/time-0.3.51/LICENSE-Apache +177 -0
  2061. package/bin/windows-arm64/licenses/time-0.3.51/LICENSE-MIT +19 -0
  2062. package/bin/windows-arm64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  2063. package/bin/windows-arm64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  2064. package/bin/windows-arm64/licenses/time-macros-0.2.30/LICENSE-Apache +177 -0
  2065. package/bin/windows-arm64/licenses/time-macros-0.2.30/LICENSE-MIT +19 -0
  2066. package/bin/windows-arm64/licenses/tinystr-0.8.3/LICENSE +46 -0
  2067. package/bin/windows-arm64/licenses/tinyvec-1.11.0/LICENSE-APACHE.md +202 -0
  2068. package/bin/windows-arm64/licenses/tinyvec-1.11.0/LICENSE-MIT.md +5 -0
  2069. package/bin/windows-arm64/licenses/tinyvec-1.11.0/LICENSE-ZLIB.md +11 -0
  2070. package/bin/windows-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-APACHE.md +202 -0
  2071. package/bin/windows-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-MIT.md +21 -0
  2072. package/bin/windows-arm64/licenses/tinyvec_macros-0.1.1/LICENSE-ZLIB.md +20 -0
  2073. package/bin/windows-arm64/licenses/tokio-1.52.3/LICENSE +21 -0
  2074. package/bin/windows-arm64/licenses/tokio-macros-2.7.0/LICENSE +22 -0
  2075. package/bin/windows-arm64/licenses/tokio-native-tls-0.3.1/LICENSE +25 -0
  2076. package/bin/windows-arm64/licenses/tokio-rustls-0.26.4/LICENSE-APACHE +201 -0
  2077. package/bin/windows-arm64/licenses/tokio-rustls-0.26.4/LICENSE-MIT +25 -0
  2078. package/bin/windows-arm64/licenses/tokio-tungstenite-0.24.0/LICENSE +20 -0
  2079. package/bin/windows-arm64/licenses/tokio-util-0.7.18/LICENSE +21 -0
  2080. package/bin/windows-arm64/licenses/tower-0.5.3/LICENSE +25 -0
  2081. package/bin/windows-arm64/licenses/tower-http-0.6.11/LICENSE +25 -0
  2082. package/bin/windows-arm64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  2083. package/bin/windows-arm64/licenses/tower-service-0.3.3/LICENSE +25 -0
  2084. package/bin/windows-arm64/licenses/tracing-0.1.44/LICENSE +25 -0
  2085. package/bin/windows-arm64/licenses/tracing-appender-0.2.5/LICENSE +25 -0
  2086. package/bin/windows-arm64/licenses/tracing-attributes-0.1.31/LICENSE +25 -0
  2087. package/bin/windows-arm64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  2088. package/bin/windows-arm64/licenses/tracing-log-0.2.0/LICENSE +25 -0
  2089. package/bin/windows-arm64/licenses/tracing-serde-0.2.0/LICENSE +25 -0
  2090. package/bin/windows-arm64/licenses/tracing-subscriber-0.3.23/LICENSE +25 -0
  2091. package/bin/windows-arm64/licenses/try-lock-0.2.5/LICENSE +21 -0
  2092. package/bin/windows-arm64/licenses/tungstenite-0.24.0/LICENSE-APACHE +201 -0
  2093. package/bin/windows-arm64/licenses/tungstenite-0.24.0/LICENSE-MIT +20 -0
  2094. package/bin/windows-arm64/licenses/typenum-1.20.1/LICENSE +1 -0
  2095. package/bin/windows-arm64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  2096. package/bin/windows-arm64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  2097. package/bin/windows-arm64/licenses/unicase-2.9.0/LICENSE-APACHE +201 -0
  2098. package/bin/windows-arm64/licenses/unicase-2.9.0/LICENSE-MIT +20 -0
  2099. package/bin/windows-arm64/licenses/unicode-ident-1.0.24/LICENSE-APACHE +176 -0
  2100. package/bin/windows-arm64/licenses/unicode-ident-1.0.24/LICENSE-MIT +23 -0
  2101. package/bin/windows-arm64/licenses/unicode-ident-1.0.24/LICENSE-UNICODE +39 -0
  2102. package/bin/windows-arm64/licenses/unicode-normalization-0.1.25/LICENSE-APACHE +201 -0
  2103. package/bin/windows-arm64/licenses/unicode-normalization-0.1.25/LICENSE-MIT +25 -0
  2104. package/bin/windows-arm64/licenses/unsafe-libyaml-0.2.11/LICENSE-MIT +23 -0
  2105. package/bin/windows-arm64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  2106. package/bin/windows-arm64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  2107. package/bin/windows-arm64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  2108. package/bin/windows-arm64/licenses/utf-8-0.7.6/LICENSE-APACHE +176 -0
  2109. package/bin/windows-arm64/licenses/utf-8-0.7.6/LICENSE-MIT +23 -0
  2110. package/bin/windows-arm64/licenses/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
  2111. package/bin/windows-arm64/licenses/utf8_iter-1.0.4/LICENSE-MIT +25 -0
  2112. package/bin/windows-arm64/licenses/utf8parse-0.2.2/LICENSE-APACHE +176 -0
  2113. package/bin/windows-arm64/licenses/utf8parse-0.2.2/LICENSE-MIT +25 -0
  2114. package/bin/windows-arm64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  2115. package/bin/windows-arm64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  2116. package/bin/windows-arm64/licenses/version_check-0.9.5/LICENSE-APACHE +201 -0
  2117. package/bin/windows-arm64/licenses/version_check-0.9.5/LICENSE-MIT +19 -0
  2118. package/bin/windows-arm64/licenses/want-0.3.1/LICENSE +20 -0
  2119. package/bin/windows-arm64/licenses/webbrowser-1.2.4/LICENSE-APACHE +190 -0
  2120. package/bin/windows-arm64/licenses/webbrowser-1.2.4/LICENSE-MIT +27 -0
  2121. package/bin/windows-arm64/licenses/windows-link-0.2.1/license-apache-2.0 +201 -0
  2122. package/bin/windows-arm64/licenses/windows-link-0.2.1/license-mit +21 -0
  2123. package/bin/windows-arm64/licenses/windows-sys-0.52.0/license-apache-2.0 +201 -0
  2124. package/bin/windows-arm64/licenses/windows-sys-0.52.0/license-mit +21 -0
  2125. package/bin/windows-arm64/licenses/windows-sys-0.60.2/license-apache-2.0 +201 -0
  2126. package/bin/windows-arm64/licenses/windows-sys-0.60.2/license-mit +21 -0
  2127. package/bin/windows-arm64/licenses/windows-sys-0.61.2/license-apache-2.0 +201 -0
  2128. package/bin/windows-arm64/licenses/windows-sys-0.61.2/license-mit +21 -0
  2129. package/bin/windows-arm64/licenses/windows-targets-0.52.6/license-apache-2.0 +201 -0
  2130. package/bin/windows-arm64/licenses/windows-targets-0.52.6/license-mit +21 -0
  2131. package/bin/windows-arm64/licenses/windows-targets-0.53.5/license-apache-2.0 +201 -0
  2132. package/bin/windows-arm64/licenses/windows-targets-0.53.5/license-mit +21 -0
  2133. package/bin/windows-arm64/licenses/windows_aarch64_msvc-0.52.6/license-apache-2.0 +201 -0
  2134. package/bin/windows-arm64/licenses/windows_aarch64_msvc-0.52.6/license-mit +21 -0
  2135. package/bin/windows-arm64/licenses/windows_aarch64_msvc-0.53.1/license-apache-2.0 +201 -0
  2136. package/bin/windows-arm64/licenses/windows_aarch64_msvc-0.53.1/license-mit +21 -0
  2137. package/bin/windows-arm64/licenses/wiremock-0.6.5/LICENSE-APACHE +201 -0
  2138. package/bin/windows-arm64/licenses/wiremock-0.6.5/LICENSE-MIT +23 -0
  2139. package/bin/windows-arm64/licenses/writeable-0.6.3/LICENSE +46 -0
  2140. package/bin/windows-arm64/licenses/yoke-0.8.3/LICENSE +46 -0
  2141. package/bin/windows-arm64/licenses/yoke-derive-0.8.2/LICENSE +46 -0
  2142. package/bin/windows-arm64/licenses/zerocopy-0.8.52/LICENSE-APACHE +202 -0
  2143. package/bin/windows-arm64/licenses/zerocopy-0.8.52/LICENSE-BSD +24 -0
  2144. package/bin/windows-arm64/licenses/zerocopy-0.8.52/LICENSE-MIT +26 -0
  2145. package/bin/windows-arm64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  2146. package/bin/windows-arm64/licenses/zerofrom-derive-0.1.7/LICENSE +46 -0
  2147. package/bin/windows-arm64/licenses/zeroize-1.9.0/LICENSE-APACHE +202 -0
  2148. package/bin/windows-arm64/licenses/zeroize-1.9.0/LICENSE-MIT +25 -0
  2149. package/bin/windows-arm64/licenses/zeroize_derive-1.5.0/LICENSE-APACHE +202 -0
  2150. package/bin/windows-arm64/licenses/zeroize_derive-1.5.0/LICENSE-MIT +25 -0
  2151. package/bin/windows-arm64/licenses/zerotrie-0.2.4/LICENSE +46 -0
  2152. package/bin/windows-arm64/licenses/zerovec-0.11.6/LICENSE +46 -0
  2153. package/bin/windows-arm64/licenses/zerovec-derive-0.11.3/LICENSE +46 -0
  2154. package/bin/windows-arm64/licenses/zmij-1.0.21/LICENSE-MIT +23 -0
  2155. package/bin/windows-x64/action-api.exe +0 -0
  2156. package/bin/windows-x64/dependencies.json +2387 -0
  2157. package/bin/windows-x64/licenses/adler2-2.0.1/LICENSE-0BSD +12 -0
  2158. package/bin/windows-x64/licenses/adler2-2.0.1/LICENSE-APACHE +201 -0
  2159. package/bin/windows-x64/licenses/adler2-2.0.1/LICENSE-MIT +23 -0
  2160. package/bin/windows-x64/licenses/aho-corasick-1.1.4/COPYING +3 -0
  2161. package/bin/windows-x64/licenses/aho-corasick-1.1.4/LICENSE-MIT +21 -0
  2162. package/bin/windows-x64/licenses/anstream-1.0.0/LICENSE-APACHE +202 -0
  2163. package/bin/windows-x64/licenses/anstream-1.0.0/LICENSE-MIT +19 -0
  2164. package/bin/windows-x64/licenses/anstyle-1.0.14/LICENSE-APACHE +202 -0
  2165. package/bin/windows-x64/licenses/anstyle-1.0.14/LICENSE-MIT +19 -0
  2166. package/bin/windows-x64/licenses/anstyle-parse-1.0.0/LICENSE-APACHE +202 -0
  2167. package/bin/windows-x64/licenses/anstyle-parse-1.0.0/LICENSE-MIT +19 -0
  2168. package/bin/windows-x64/licenses/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
  2169. package/bin/windows-x64/licenses/anstyle-query-1.1.5/LICENSE-MIT +19 -0
  2170. package/bin/windows-x64/licenses/anstyle-wincon-3.0.11/LICENSE-APACHE +202 -0
  2171. package/bin/windows-x64/licenses/anstyle-wincon-3.0.11/LICENSE-MIT +19 -0
  2172. package/bin/windows-x64/licenses/anyhow-1.0.103/LICENSE-APACHE +176 -0
  2173. package/bin/windows-x64/licenses/anyhow-1.0.103/LICENSE-MIT +23 -0
  2174. package/bin/windows-x64/licenses/assert-json-diff-2.0.2/LICENSE +7 -0
  2175. package/bin/windows-x64/licenses/async-compression-0.4.43/LICENSE-APACHE +201 -0
  2176. package/bin/windows-x64/licenses/async-compression-0.4.43/LICENSE-MIT +21 -0
  2177. package/bin/windows-x64/licenses/atomic-waker-1.1.2/LICENSE-APACHE +201 -0
  2178. package/bin/windows-x64/licenses/atomic-waker-1.1.2/LICENSE-MIT +23 -0
  2179. package/bin/windows-x64/licenses/atomic-waker-1.1.2/LICENSE-THIRD-PARTY +45 -0
  2180. package/bin/windows-x64/licenses/base64-0.22.1/LICENSE-APACHE +201 -0
  2181. package/bin/windows-x64/licenses/base64-0.22.1/LICENSE-MIT +21 -0
  2182. package/bin/windows-x64/licenses/bitflags-2.13.0/LICENSE-APACHE +201 -0
  2183. package/bin/windows-x64/licenses/bitflags-2.13.0/LICENSE-MIT +25 -0
  2184. package/bin/windows-x64/licenses/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  2185. package/bin/windows-x64/licenses/block-buffer-0.10.4/LICENSE-MIT +25 -0
  2186. package/bin/windows-x64/licenses/byteorder-1.5.0/COPYING +3 -0
  2187. package/bin/windows-x64/licenses/byteorder-1.5.0/LICENSE-MIT +21 -0
  2188. package/bin/windows-x64/licenses/bytes-1.12.0/LICENSE +25 -0
  2189. package/bin/windows-x64/licenses/cc-1.2.65/LICENSE-APACHE +201 -0
  2190. package/bin/windows-x64/licenses/cc-1.2.65/LICENSE-MIT +25 -0
  2191. package/bin/windows-x64/licenses/cfg-if-1.0.4/LICENSE-APACHE +201 -0
  2192. package/bin/windows-x64/licenses/cfg-if-1.0.4/LICENSE-MIT +25 -0
  2193. package/bin/windows-x64/licenses/cfg_aliases-0.2.1/LICENSE +9 -0
  2194. package/bin/windows-x64/licenses/clap-4.6.1/LICENSE-APACHE +202 -0
  2195. package/bin/windows-x64/licenses/clap-4.6.1/LICENSE-MIT +19 -0
  2196. package/bin/windows-x64/licenses/clap_builder-4.6.0/LICENSE-APACHE +202 -0
  2197. package/bin/windows-x64/licenses/clap_builder-4.6.0/LICENSE-MIT +19 -0
  2198. package/bin/windows-x64/licenses/clap_complete-4.6.5/LICENSE-APACHE +202 -0
  2199. package/bin/windows-x64/licenses/clap_complete-4.6.5/LICENSE-MIT +19 -0
  2200. package/bin/windows-x64/licenses/clap_derive-4.6.1/LICENSE-APACHE +202 -0
  2201. package/bin/windows-x64/licenses/clap_derive-4.6.1/LICENSE-MIT +19 -0
  2202. package/bin/windows-x64/licenses/clap_lex-1.1.0/LICENSE-APACHE +202 -0
  2203. package/bin/windows-x64/licenses/clap_lex-1.1.0/LICENSE-MIT +19 -0
  2204. package/bin/windows-x64/licenses/clap_mangen-0.2.33/LICENSE-APACHE +202 -0
  2205. package/bin/windows-x64/licenses/clap_mangen-0.2.33/LICENSE-MIT +19 -0
  2206. package/bin/windows-x64/licenses/colorchoice-1.0.5/LICENSE-APACHE +202 -0
  2207. package/bin/windows-x64/licenses/colorchoice-1.0.5/LICENSE-MIT +19 -0
  2208. package/bin/windows-x64/licenses/compression-codecs-0.4.38/LICENSE-APACHE +201 -0
  2209. package/bin/windows-x64/licenses/compression-codecs-0.4.38/LICENSE-MIT +21 -0
  2210. package/bin/windows-x64/licenses/compression-core-0.4.32/LICENSE-APACHE +201 -0
  2211. package/bin/windows-x64/licenses/compression-core-0.4.32/LICENSE-MIT +21 -0
  2212. package/bin/windows-x64/licenses/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  2213. package/bin/windows-x64/licenses/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  2214. package/bin/windows-x64/licenses/crc32fast-1.5.0/LICENSE-APACHE +202 -0
  2215. package/bin/windows-x64/licenses/crc32fast-1.5.0/LICENSE-MIT +21 -0
  2216. package/bin/windows-x64/licenses/crossbeam-channel-0.5.15/LICENSE-APACHE +201 -0
  2217. package/bin/windows-x64/licenses/crossbeam-channel-0.5.15/LICENSE-MIT +27 -0
  2218. package/bin/windows-x64/licenses/crossbeam-channel-0.5.15/LICENSE-THIRD-PARTY +593 -0
  2219. package/bin/windows-x64/licenses/crossbeam-utils-0.8.21/LICENSE-APACHE +201 -0
  2220. package/bin/windows-x64/licenses/crossbeam-utils-0.8.21/LICENSE-MIT +27 -0
  2221. package/bin/windows-x64/licenses/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  2222. package/bin/windows-x64/licenses/crypto-common-0.1.7/LICENSE-MIT +25 -0
  2223. package/bin/windows-x64/licenses/data-encoding-2.11.0/LICENSE +22 -0
  2224. package/bin/windows-x64/licenses/deadpool-0.12.3/LICENSE-APACHE +202 -0
  2225. package/bin/windows-x64/licenses/deadpool-0.12.3/LICENSE-MIT +21 -0
  2226. package/bin/windows-x64/licenses/deadpool-runtime-0.1.4/LICENSE-APACHE +202 -0
  2227. package/bin/windows-x64/licenses/deadpool-runtime-0.1.4/LICENSE-MIT +21 -0
  2228. package/bin/windows-x64/licenses/deranged-0.5.8/LICENSE-Apache +202 -0
  2229. package/bin/windows-x64/licenses/deranged-0.5.8/LICENSE-MIT +19 -0
  2230. package/bin/windows-x64/licenses/deunicode-1.6.2/LICENSE +26 -0
  2231. package/bin/windows-x64/licenses/digest-0.10.7/LICENSE-APACHE +201 -0
  2232. package/bin/windows-x64/licenses/digest-0.10.7/LICENSE-MIT +25 -0
  2233. package/bin/windows-x64/licenses/displaydoc-0.2.6/LICENSE-APACHE +201 -0
  2234. package/bin/windows-x64/licenses/displaydoc-0.2.6/LICENSE-MIT +23 -0
  2235. package/bin/windows-x64/licenses/dotenvy-0.15.7/LICENSE +21 -0
  2236. package/bin/windows-x64/licenses/equivalent-1.0.2/LICENSE-APACHE +201 -0
  2237. package/bin/windows-x64/licenses/equivalent-1.0.2/LICENSE-MIT +25 -0
  2238. package/bin/windows-x64/licenses/fastrand-2.4.1/LICENSE-APACHE +201 -0
  2239. package/bin/windows-x64/licenses/fastrand-2.4.1/LICENSE-MIT +23 -0
  2240. package/bin/windows-x64/licenses/find-msvc-tools-0.1.9/LICENSE-APACHE +201 -0
  2241. package/bin/windows-x64/licenses/find-msvc-tools-0.1.9/LICENSE-MIT +25 -0
  2242. package/bin/windows-x64/licenses/flate2-1.1.9/LICENSE-APACHE +201 -0
  2243. package/bin/windows-x64/licenses/flate2-1.1.9/LICENSE-MIT +25 -0
  2244. package/bin/windows-x64/licenses/fnv-1.0.7/LICENSE-APACHE +201 -0
  2245. package/bin/windows-x64/licenses/fnv-1.0.7/LICENSE-MIT +25 -0
  2246. package/bin/windows-x64/licenses/foreign-types-0.3.2/LICENSE-APACHE +202 -0
  2247. package/bin/windows-x64/licenses/foreign-types-0.3.2/LICENSE-MIT +19 -0
  2248. package/bin/windows-x64/licenses/foreign-types-shared-0.1.1/LICENSE-APACHE +202 -0
  2249. package/bin/windows-x64/licenses/foreign-types-shared-0.1.1/LICENSE-MIT +19 -0
  2250. package/bin/windows-x64/licenses/form_urlencoded-1.2.2/LICENSE-APACHE +201 -0
  2251. package/bin/windows-x64/licenses/form_urlencoded-1.2.2/LICENSE-MIT +25 -0
  2252. package/bin/windows-x64/licenses/futures-0.3.32/LICENSE-APACHE +202 -0
  2253. package/bin/windows-x64/licenses/futures-0.3.32/LICENSE-MIT +26 -0
  2254. package/bin/windows-x64/licenses/futures-channel-0.3.32/LICENSE-APACHE +202 -0
  2255. package/bin/windows-x64/licenses/futures-channel-0.3.32/LICENSE-MIT +26 -0
  2256. package/bin/windows-x64/licenses/futures-core-0.3.32/LICENSE-APACHE +202 -0
  2257. package/bin/windows-x64/licenses/futures-core-0.3.32/LICENSE-MIT +26 -0
  2258. package/bin/windows-x64/licenses/futures-executor-0.3.32/LICENSE-APACHE +202 -0
  2259. package/bin/windows-x64/licenses/futures-executor-0.3.32/LICENSE-MIT +26 -0
  2260. package/bin/windows-x64/licenses/futures-io-0.3.32/LICENSE-APACHE +202 -0
  2261. package/bin/windows-x64/licenses/futures-io-0.3.32/LICENSE-MIT +26 -0
  2262. package/bin/windows-x64/licenses/futures-macro-0.3.32/LICENSE-APACHE +202 -0
  2263. package/bin/windows-x64/licenses/futures-macro-0.3.32/LICENSE-MIT +26 -0
  2264. package/bin/windows-x64/licenses/futures-sink-0.3.32/LICENSE-APACHE +202 -0
  2265. package/bin/windows-x64/licenses/futures-sink-0.3.32/LICENSE-MIT +26 -0
  2266. package/bin/windows-x64/licenses/futures-task-0.3.32/LICENSE-APACHE +202 -0
  2267. package/bin/windows-x64/licenses/futures-task-0.3.32/LICENSE-MIT +26 -0
  2268. package/bin/windows-x64/licenses/futures-util-0.3.32/LICENSE-APACHE +202 -0
  2269. package/bin/windows-x64/licenses/futures-util-0.3.32/LICENSE-MIT +26 -0
  2270. package/bin/windows-x64/licenses/generic-array-0.14.7/LICENSE +21 -0
  2271. package/bin/windows-x64/licenses/getrandom-0.2.17/LICENSE-APACHE +201 -0
  2272. package/bin/windows-x64/licenses/getrandom-0.2.17/LICENSE-MIT +26 -0
  2273. package/bin/windows-x64/licenses/getrandom-0.3.4/LICENSE-APACHE +201 -0
  2274. package/bin/windows-x64/licenses/getrandom-0.3.4/LICENSE-MIT +26 -0
  2275. package/bin/windows-x64/licenses/getrandom-0.4.3/LICENSE-APACHE +201 -0
  2276. package/bin/windows-x64/licenses/getrandom-0.4.3/LICENSE-MIT +26 -0
  2277. package/bin/windows-x64/licenses/h2-0.4.16/LICENSE +25 -0
  2278. package/bin/windows-x64/licenses/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  2279. package/bin/windows-x64/licenses/hashbrown-0.17.1/LICENSE-MIT +25 -0
  2280. package/bin/windows-x64/licenses/heck-0.5.0/LICENSE-APACHE +201 -0
  2281. package/bin/windows-x64/licenses/heck-0.5.0/LICENSE-MIT +25 -0
  2282. package/bin/windows-x64/licenses/hmac-0.12.1/LICENSE-APACHE +201 -0
  2283. package/bin/windows-x64/licenses/hmac-0.12.1/LICENSE-MIT +25 -0
  2284. package/bin/windows-x64/licenses/http-1.4.2/LICENSE-APACHE +201 -0
  2285. package/bin/windows-x64/licenses/http-1.4.2/LICENSE-MIT +25 -0
  2286. package/bin/windows-x64/licenses/http-body-1.0.1/LICENSE +25 -0
  2287. package/bin/windows-x64/licenses/http-body-util-0.1.3/LICENSE +25 -0
  2288. package/bin/windows-x64/licenses/httparse-1.10.1/LICENSE-APACHE +201 -0
  2289. package/bin/windows-x64/licenses/httparse-1.10.1/LICENSE-MIT +20 -0
  2290. package/bin/windows-x64/licenses/httpdate-1.0.3/LICENSE-APACHE +201 -0
  2291. package/bin/windows-x64/licenses/httpdate-1.0.3/LICENSE-MIT +19 -0
  2292. package/bin/windows-x64/licenses/hyper-1.10.1/LICENSE +19 -0
  2293. package/bin/windows-x64/licenses/hyper-rustls-0.27.9/LICENSE-APACHE +201 -0
  2294. package/bin/windows-x64/licenses/hyper-rustls-0.27.9/LICENSE-ISC +15 -0
  2295. package/bin/windows-x64/licenses/hyper-rustls-0.27.9/LICENSE-MIT +25 -0
  2296. package/bin/windows-x64/licenses/hyper-tls-0.6.0/LICENSE-APACHE +201 -0
  2297. package/bin/windows-x64/licenses/hyper-tls-0.6.0/LICENSE-MIT +20 -0
  2298. package/bin/windows-x64/licenses/hyper-util-0.1.20/LICENSE +19 -0
  2299. package/bin/windows-x64/licenses/icu_collections-2.2.0/LICENSE +46 -0
  2300. package/bin/windows-x64/licenses/icu_locale_core-2.2.0/LICENSE +46 -0
  2301. package/bin/windows-x64/licenses/icu_normalizer-2.2.0/LICENSE +46 -0
  2302. package/bin/windows-x64/licenses/icu_normalizer_data-2.2.0/LICENSE +46 -0
  2303. package/bin/windows-x64/licenses/icu_properties-2.2.0/LICENSE +46 -0
  2304. package/bin/windows-x64/licenses/icu_properties_data-2.2.0/LICENSE +46 -0
  2305. package/bin/windows-x64/licenses/icu_provider-2.2.0/LICENSE +46 -0
  2306. package/bin/windows-x64/licenses/idna-1.1.0/LICENSE-APACHE +201 -0
  2307. package/bin/windows-x64/licenses/idna-1.1.0/LICENSE-MIT +25 -0
  2308. package/bin/windows-x64/licenses/idna_adapter-1.2.2/LICENSE-APACHE +201 -0
  2309. package/bin/windows-x64/licenses/idna_adapter-1.2.2/LICENSE-MIT +25 -0
  2310. package/bin/windows-x64/licenses/indexmap-2.14.0/LICENSE-APACHE +201 -0
  2311. package/bin/windows-x64/licenses/indexmap-2.14.0/LICENSE-MIT +25 -0
  2312. package/bin/windows-x64/licenses/inventory-0.3.24/LICENSE-APACHE +176 -0
  2313. package/bin/windows-x64/licenses/inventory-0.3.24/LICENSE-MIT +23 -0
  2314. package/bin/windows-x64/licenses/ipnet-2.12.0/LICENSE-APACHE +201 -0
  2315. package/bin/windows-x64/licenses/ipnet-2.12.0/LICENSE-MIT +7 -0
  2316. package/bin/windows-x64/licenses/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
  2317. package/bin/windows-x64/licenses/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
  2318. package/bin/windows-x64/licenses/itoa-1.0.18/LICENSE-APACHE +176 -0
  2319. package/bin/windows-x64/licenses/itoa-1.0.18/LICENSE-MIT +23 -0
  2320. package/bin/windows-x64/licenses/jmespath-0.3.0/jmespath-LICENSE +19 -0
  2321. package/bin/windows-x64/licenses/keyring-3.6.3/LICENSE-APACHE +201 -0
  2322. package/bin/windows-x64/licenses/keyring-3.6.3/LICENSE-MIT +25 -0
  2323. package/bin/windows-x64/licenses/lazy_static-1.5.0/LICENSE-APACHE +201 -0
  2324. package/bin/windows-x64/licenses/lazy_static-1.5.0/LICENSE-MIT +25 -0
  2325. package/bin/windows-x64/licenses/libc-0.2.186/LICENSE-APACHE +176 -0
  2326. package/bin/windows-x64/licenses/libc-0.2.186/LICENSE-MIT +25 -0
  2327. package/bin/windows-x64/licenses/litemap-0.8.2/LICENSE +46 -0
  2328. package/bin/windows-x64/licenses/lock_api-0.4.14/LICENSE-APACHE +201 -0
  2329. package/bin/windows-x64/licenses/lock_api-0.4.14/LICENSE-MIT +25 -0
  2330. package/bin/windows-x64/licenses/log-0.4.33/LICENSE-APACHE +201 -0
  2331. package/bin/windows-x64/licenses/log-0.4.33/LICENSE-MIT +25 -0
  2332. package/bin/windows-x64/licenses/lru-slab-0.1.2/LICENSE-APACHE +202 -0
  2333. package/bin/windows-x64/licenses/lru-slab-0.1.2/LICENSE-MIT +7 -0
  2334. package/bin/windows-x64/licenses/lru-slab-0.1.2/LICENSE-ZLIB +19 -0
  2335. package/bin/windows-x64/licenses/matchers-0.2.0/LICENSE +19 -0
  2336. package/bin/windows-x64/licenses/memchr-2.8.2/COPYING +3 -0
  2337. package/bin/windows-x64/licenses/memchr-2.8.2/LICENSE-MIT +21 -0
  2338. package/bin/windows-x64/licenses/mime-0.3.17/LICENSE-APACHE +201 -0
  2339. package/bin/windows-x64/licenses/mime-0.3.17/LICENSE-MIT +20 -0
  2340. package/bin/windows-x64/licenses/mime_guess-2.0.5/LICENSE +22 -0
  2341. package/bin/windows-x64/licenses/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  2342. package/bin/windows-x64/licenses/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  2343. package/bin/windows-x64/licenses/minimal-lexical-0.2.1/LICENSE.md +37 -0
  2344. package/bin/windows-x64/licenses/miniz_oxide-0.8.9/LICENSE +25 -0
  2345. package/bin/windows-x64/licenses/miniz_oxide-0.8.9/LICENSE-APACHE.md +177 -0
  2346. package/bin/windows-x64/licenses/miniz_oxide-0.8.9/LICENSE-MIT.md +24 -0
  2347. package/bin/windows-x64/licenses/miniz_oxide-0.8.9/LICENSE-ZLIB.md +14 -0
  2348. package/bin/windows-x64/licenses/mio-1.2.1/LICENSE +19 -0
  2349. package/bin/windows-x64/licenses/native-tls-0.2.18/LICENSE-APACHE +202 -0
  2350. package/bin/windows-x64/licenses/native-tls-0.2.18/LICENSE-MIT +19 -0
  2351. package/bin/windows-x64/licenses/nom-7.1.3/LICENSE +20 -0
  2352. package/bin/windows-x64/licenses/nu-ansi-term-0.50.3/LICENSE +22 -0
  2353. package/bin/windows-x64/licenses/num-conv-0.2.2/LICENSE-Apache +177 -0
  2354. package/bin/windows-x64/licenses/num-conv-0.2.2/LICENSE-MIT +19 -0
  2355. package/bin/windows-x64/licenses/num_cpus-1.17.0/LICENSE-APACHE +201 -0
  2356. package/bin/windows-x64/licenses/num_cpus-1.17.0/LICENSE-MIT +20 -0
  2357. package/bin/windows-x64/licenses/once_cell-1.21.4/LICENSE-APACHE +201 -0
  2358. package/bin/windows-x64/licenses/once_cell-1.21.4/LICENSE-MIT +23 -0
  2359. package/bin/windows-x64/licenses/once_cell_polyfill-1.70.2/LICENSE-APACHE +202 -0
  2360. package/bin/windows-x64/licenses/once_cell_polyfill-1.70.2/LICENSE-MIT +19 -0
  2361. package/bin/windows-x64/licenses/openssl-0.10.81/LICENSE +15 -0
  2362. package/bin/windows-x64/licenses/openssl-0.10.81/LICENSE-APACHE +202 -0
  2363. package/bin/windows-x64/licenses/openssl-macros-0.1.1/LICENSE-APACHE +202 -0
  2364. package/bin/windows-x64/licenses/openssl-macros-0.1.1/LICENSE-MIT +19 -0
  2365. package/bin/windows-x64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-APACHE +201 -0
  2366. package/bin/windows-x64/licenses/openssl-src-300.6.1+3.6.3/LICENSE-MIT +25 -0
  2367. package/bin/windows-x64/licenses/openssl-sys-0.9.117/LICENSE-MIT +25 -0
  2368. package/bin/windows-x64/licenses/parking_lot-0.12.5/LICENSE-APACHE +201 -0
  2369. package/bin/windows-x64/licenses/parking_lot-0.12.5/LICENSE-MIT +25 -0
  2370. package/bin/windows-x64/licenses/parking_lot_core-0.9.12/LICENSE-APACHE +201 -0
  2371. package/bin/windows-x64/licenses/parking_lot_core-0.9.12/LICENSE-MIT +25 -0
  2372. package/bin/windows-x64/licenses/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  2373. package/bin/windows-x64/licenses/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  2374. package/bin/windows-x64/licenses/pin-project-lite-0.2.17/LICENSE-APACHE +177 -0
  2375. package/bin/windows-x64/licenses/pin-project-lite-0.2.17/LICENSE-MIT +23 -0
  2376. package/bin/windows-x64/licenses/pkg-config-0.3.33/LICENSE-APACHE +201 -0
  2377. package/bin/windows-x64/licenses/pkg-config-0.3.33/LICENSE-MIT +25 -0
  2378. package/bin/windows-x64/licenses/potential_utf-0.1.5/LICENSE +46 -0
  2379. package/bin/windows-x64/licenses/powerfmt-0.2.0/LICENSE-Apache +202 -0
  2380. package/bin/windows-x64/licenses/powerfmt-0.2.0/LICENSE-MIT +19 -0
  2381. package/bin/windows-x64/licenses/ppv-lite86-0.2.21/LICENSE-APACHE +201 -0
  2382. package/bin/windows-x64/licenses/ppv-lite86-0.2.21/LICENSE-MIT +25 -0
  2383. package/bin/windows-x64/licenses/proc-macro2-1.0.106/LICENSE-APACHE +176 -0
  2384. package/bin/windows-x64/licenses/proc-macro2-1.0.106/LICENSE-MIT +23 -0
  2385. package/bin/windows-x64/licenses/quinn-0.11.11/LICENSE-APACHE +201 -0
  2386. package/bin/windows-x64/licenses/quinn-0.11.11/LICENSE-MIT +7 -0
  2387. package/bin/windows-x64/licenses/quinn-proto-0.11.15/LICENSE-APACHE +201 -0
  2388. package/bin/windows-x64/licenses/quinn-proto-0.11.15/LICENSE-MIT +7 -0
  2389. package/bin/windows-x64/licenses/quinn-udp-0.5.14/LICENSE-APACHE +201 -0
  2390. package/bin/windows-x64/licenses/quinn-udp-0.5.14/LICENSE-MIT +7 -0
  2391. package/bin/windows-x64/licenses/quote-1.0.46/LICENSE-APACHE +176 -0
  2392. package/bin/windows-x64/licenses/quote-1.0.46/LICENSE-MIT +23 -0
  2393. package/bin/windows-x64/licenses/rand-0.8.6/LICENSE-APACHE +176 -0
  2394. package/bin/windows-x64/licenses/rand-0.8.6/LICENSE-MIT +26 -0
  2395. package/bin/windows-x64/licenses/rand-0.9.4/LICENSE-APACHE +176 -0
  2396. package/bin/windows-x64/licenses/rand-0.9.4/LICENSE-MIT +26 -0
  2397. package/bin/windows-x64/licenses/rand_chacha-0.3.1/LICENSE-APACHE +201 -0
  2398. package/bin/windows-x64/licenses/rand_chacha-0.3.1/LICENSE-MIT +26 -0
  2399. package/bin/windows-x64/licenses/rand_chacha-0.9.0/LICENSE-APACHE +176 -0
  2400. package/bin/windows-x64/licenses/rand_chacha-0.9.0/LICENSE-MIT +26 -0
  2401. package/bin/windows-x64/licenses/rand_core-0.6.4/LICENSE-APACHE +187 -0
  2402. package/bin/windows-x64/licenses/rand_core-0.6.4/LICENSE-MIT +26 -0
  2403. package/bin/windows-x64/licenses/rand_core-0.9.5/LICENSE-APACHE +187 -0
  2404. package/bin/windows-x64/licenses/rand_core-0.9.5/LICENSE-MIT +26 -0
  2405. package/bin/windows-x64/licenses/regex-1.12.4/LICENSE-APACHE +201 -0
  2406. package/bin/windows-x64/licenses/regex-1.12.4/LICENSE-MIT +25 -0
  2407. package/bin/windows-x64/licenses/regex-automata-0.4.14/LICENSE-APACHE +201 -0
  2408. package/bin/windows-x64/licenses/regex-automata-0.4.14/LICENSE-MIT +25 -0
  2409. package/bin/windows-x64/licenses/regex-syntax-0.8.11/LICENSE-APACHE +201 -0
  2410. package/bin/windows-x64/licenses/regex-syntax-0.8.11/LICENSE-MIT +25 -0
  2411. package/bin/windows-x64/licenses/reqwest-0.12.28/LICENSE-APACHE +201 -0
  2412. package/bin/windows-x64/licenses/reqwest-0.12.28/LICENSE-MIT +20 -0
  2413. package/bin/windows-x64/licenses/ring-0.17.14/LICENSE +9 -0
  2414. package/bin/windows-x64/licenses/ring-0.17.14/LICENSE-BoringSSL +272 -0
  2415. package/bin/windows-x64/licenses/ring-0.17.14/LICENSE-other-bits +13 -0
  2416. package/bin/windows-x64/licenses/roff-1.1.1/LICENSE-APACHE +202 -0
  2417. package/bin/windows-x64/licenses/roff-1.1.1/LICENSE-MIT +19 -0
  2418. package/bin/windows-x64/licenses/rustc-hash-2.1.2/LICENSE-APACHE +176 -0
  2419. package/bin/windows-x64/licenses/rustc-hash-2.1.2/LICENSE-MIT +23 -0
  2420. package/bin/windows-x64/licenses/rustls-0.23.41/LICENSE-APACHE +201 -0
  2421. package/bin/windows-x64/licenses/rustls-0.23.41/LICENSE-ISC +15 -0
  2422. package/bin/windows-x64/licenses/rustls-0.23.41/LICENSE-MIT +25 -0
  2423. package/bin/windows-x64/licenses/rustls-native-certs-0.8.4/LICENSE +10 -0
  2424. package/bin/windows-x64/licenses/rustls-native-certs-0.8.4/LICENSE-APACHE +201 -0
  2425. package/bin/windows-x64/licenses/rustls-native-certs-0.8.4/LICENSE-ISC +15 -0
  2426. package/bin/windows-x64/licenses/rustls-native-certs-0.8.4/LICENSE-MIT +25 -0
  2427. package/bin/windows-x64/licenses/rustls-pki-types-1.14.1/LICENSE-APACHE +201 -0
  2428. package/bin/windows-x64/licenses/rustls-pki-types-1.14.1/LICENSE-MIT +25 -0
  2429. package/bin/windows-x64/licenses/rustls-webpki-0.103.13/LICENSE +19 -0
  2430. package/bin/windows-x64/licenses/ryu-1.0.23/LICENSE-APACHE +176 -0
  2431. package/bin/windows-x64/licenses/ryu-1.0.23/LICENSE-BOOST +23 -0
  2432. package/bin/windows-x64/licenses/schannel-0.1.29/LICENSE.md +7 -0
  2433. package/bin/windows-x64/licenses/scopeguard-1.2.0/LICENSE-APACHE +201 -0
  2434. package/bin/windows-x64/licenses/scopeguard-1.2.0/LICENSE-MIT +25 -0
  2435. package/bin/windows-x64/licenses/secrecy-0.10.3/LICENSE-APACHE +202 -0
  2436. package/bin/windows-x64/licenses/secrecy-0.10.3/LICENSE-MIT +21 -0
  2437. package/bin/windows-x64/licenses/serde-1.0.228/LICENSE-APACHE +176 -0
  2438. package/bin/windows-x64/licenses/serde-1.0.228/LICENSE-MIT +23 -0
  2439. package/bin/windows-x64/licenses/serde_core-1.0.228/LICENSE-APACHE +176 -0
  2440. package/bin/windows-x64/licenses/serde_core-1.0.228/LICENSE-MIT +23 -0
  2441. package/bin/windows-x64/licenses/serde_derive-1.0.228/LICENSE-APACHE +176 -0
  2442. package/bin/windows-x64/licenses/serde_derive-1.0.228/LICENSE-MIT +23 -0
  2443. package/bin/windows-x64/licenses/serde_json-1.0.150/LICENSE-APACHE +176 -0
  2444. package/bin/windows-x64/licenses/serde_json-1.0.150/LICENSE-MIT +23 -0
  2445. package/bin/windows-x64/licenses/serde_json_path-0.7.2/LICENSE-MIT +21 -0
  2446. package/bin/windows-x64/licenses/serde_json_path_core-0.2.2/LICENSE-MIT +21 -0
  2447. package/bin/windows-x64/licenses/serde_json_path_macros-0.1.6/LICENSE-MIT +21 -0
  2448. package/bin/windows-x64/licenses/serde_json_path_macros_internal-0.1.2/LICENSE-MIT +21 -0
  2449. package/bin/windows-x64/licenses/serde_qs-1.1.2/LICENSE-APACHE +176 -0
  2450. package/bin/windows-x64/licenses/serde_qs-1.1.2/LICENSE-MIT +27 -0
  2451. package/bin/windows-x64/licenses/serde_urlencoded-0.7.1/LICENSE-APACHE +176 -0
  2452. package/bin/windows-x64/licenses/serde_urlencoded-0.7.1/LICENSE-MIT +25 -0
  2453. package/bin/windows-x64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-APACHE +176 -0
  2454. package/bin/windows-x64/licenses/serde_yaml-0.9.34+deprecated/LICENSE-MIT +23 -0
  2455. package/bin/windows-x64/licenses/serial_test-3.5.0/LICENSE +19 -0
  2456. package/bin/windows-x64/licenses/serial_test_derive-3.5.0/LICENSE +19 -0
  2457. package/bin/windows-x64/licenses/sha1-0.10.6/LICENSE-APACHE +201 -0
  2458. package/bin/windows-x64/licenses/sha1-0.10.6/LICENSE-MIT +27 -0
  2459. package/bin/windows-x64/licenses/sha2-0.10.9/LICENSE-APACHE +201 -0
  2460. package/bin/windows-x64/licenses/sha2-0.10.9/LICENSE-MIT +27 -0
  2461. package/bin/windows-x64/licenses/sharded-slab-0.1.7/LICENSE +19 -0
  2462. package/bin/windows-x64/licenses/shlex-2.0.1/LICENSE-APACHE +13 -0
  2463. package/bin/windows-x64/licenses/shlex-2.0.1/LICENSE-MIT +21 -0
  2464. package/bin/windows-x64/licenses/simd-adler32-0.3.10/LICENSE.md +21 -0
  2465. package/bin/windows-x64/licenses/slab-0.4.12/LICENSE +25 -0
  2466. package/bin/windows-x64/licenses/slug-0.1.6/LICENSE-APACHE +201 -0
  2467. package/bin/windows-x64/licenses/slug-0.1.6/LICENSE-MIT +25 -0
  2468. package/bin/windows-x64/licenses/smallvec-1.15.2/LICENSE-APACHE +201 -0
  2469. package/bin/windows-x64/licenses/smallvec-1.15.2/LICENSE-MIT +25 -0
  2470. package/bin/windows-x64/licenses/socket2-0.6.4/LICENSE-APACHE +201 -0
  2471. package/bin/windows-x64/licenses/socket2-0.6.4/LICENSE-MIT +25 -0
  2472. package/bin/windows-x64/licenses/stable_deref_trait-1.2.1/LICENSE-APACHE +201 -0
  2473. package/bin/windows-x64/licenses/stable_deref_trait-1.2.1/LICENSE-MIT +25 -0
  2474. package/bin/windows-x64/licenses/strsim-0.11.1/LICENSE +23 -0
  2475. package/bin/windows-x64/licenses/subtle-2.6.1/LICENSE +29 -0
  2476. package/bin/windows-x64/licenses/symlink-0.1.0/LICENSE-APACHE +201 -0
  2477. package/bin/windows-x64/licenses/symlink-0.1.0/LICENSE-MIT +25 -0
  2478. package/bin/windows-x64/licenses/syn-2.0.118/LICENSE-APACHE +176 -0
  2479. package/bin/windows-x64/licenses/syn-2.0.118/LICENSE-MIT +23 -0
  2480. package/bin/windows-x64/licenses/sync_wrapper-1.0.2/LICENSE +177 -0
  2481. package/bin/windows-x64/licenses/synstructure-0.13.2/LICENSE +7 -0
  2482. package/bin/windows-x64/licenses/tempfile-3.27.0/LICENSE-APACHE +201 -0
  2483. package/bin/windows-x64/licenses/tempfile-3.27.0/LICENSE-MIT +25 -0
  2484. package/bin/windows-x64/licenses/thiserror-1.0.69/LICENSE-APACHE +176 -0
  2485. package/bin/windows-x64/licenses/thiserror-1.0.69/LICENSE-MIT +23 -0
  2486. package/bin/windows-x64/licenses/thiserror-2.0.18/LICENSE-APACHE +176 -0
  2487. package/bin/windows-x64/licenses/thiserror-2.0.18/LICENSE-MIT +23 -0
  2488. package/bin/windows-x64/licenses/thiserror-impl-1.0.69/LICENSE-APACHE +176 -0
  2489. package/bin/windows-x64/licenses/thiserror-impl-1.0.69/LICENSE-MIT +23 -0
  2490. package/bin/windows-x64/licenses/thiserror-impl-2.0.18/LICENSE-APACHE +176 -0
  2491. package/bin/windows-x64/licenses/thiserror-impl-2.0.18/LICENSE-MIT +23 -0
  2492. package/bin/windows-x64/licenses/thread_local-1.1.9/LICENSE-APACHE +201 -0
  2493. package/bin/windows-x64/licenses/thread_local-1.1.9/LICENSE-MIT +25 -0
  2494. package/bin/windows-x64/licenses/time-0.3.51/LICENSE-Apache +177 -0
  2495. package/bin/windows-x64/licenses/time-0.3.51/LICENSE-MIT +19 -0
  2496. package/bin/windows-x64/licenses/time-core-0.1.9/LICENSE-Apache +177 -0
  2497. package/bin/windows-x64/licenses/time-core-0.1.9/LICENSE-MIT +19 -0
  2498. package/bin/windows-x64/licenses/time-macros-0.2.30/LICENSE-Apache +177 -0
  2499. package/bin/windows-x64/licenses/time-macros-0.2.30/LICENSE-MIT +19 -0
  2500. package/bin/windows-x64/licenses/tinystr-0.8.3/LICENSE +46 -0
  2501. package/bin/windows-x64/licenses/tinyvec-1.11.0/LICENSE-APACHE.md +202 -0
  2502. package/bin/windows-x64/licenses/tinyvec-1.11.0/LICENSE-MIT.md +5 -0
  2503. package/bin/windows-x64/licenses/tinyvec-1.11.0/LICENSE-ZLIB.md +11 -0
  2504. package/bin/windows-x64/licenses/tinyvec_macros-0.1.1/LICENSE-APACHE.md +202 -0
  2505. package/bin/windows-x64/licenses/tinyvec_macros-0.1.1/LICENSE-MIT.md +21 -0
  2506. package/bin/windows-x64/licenses/tinyvec_macros-0.1.1/LICENSE-ZLIB.md +20 -0
  2507. package/bin/windows-x64/licenses/tokio-1.52.3/LICENSE +21 -0
  2508. package/bin/windows-x64/licenses/tokio-macros-2.7.0/LICENSE +22 -0
  2509. package/bin/windows-x64/licenses/tokio-native-tls-0.3.1/LICENSE +25 -0
  2510. package/bin/windows-x64/licenses/tokio-rustls-0.26.4/LICENSE-APACHE +201 -0
  2511. package/bin/windows-x64/licenses/tokio-rustls-0.26.4/LICENSE-MIT +25 -0
  2512. package/bin/windows-x64/licenses/tokio-tungstenite-0.24.0/LICENSE +20 -0
  2513. package/bin/windows-x64/licenses/tokio-util-0.7.18/LICENSE +21 -0
  2514. package/bin/windows-x64/licenses/tower-0.5.3/LICENSE +25 -0
  2515. package/bin/windows-x64/licenses/tower-http-0.6.11/LICENSE +25 -0
  2516. package/bin/windows-x64/licenses/tower-layer-0.3.3/LICENSE +25 -0
  2517. package/bin/windows-x64/licenses/tower-service-0.3.3/LICENSE +25 -0
  2518. package/bin/windows-x64/licenses/tracing-0.1.44/LICENSE +25 -0
  2519. package/bin/windows-x64/licenses/tracing-appender-0.2.5/LICENSE +25 -0
  2520. package/bin/windows-x64/licenses/tracing-attributes-0.1.31/LICENSE +25 -0
  2521. package/bin/windows-x64/licenses/tracing-core-0.1.36/LICENSE +25 -0
  2522. package/bin/windows-x64/licenses/tracing-log-0.2.0/LICENSE +25 -0
  2523. package/bin/windows-x64/licenses/tracing-serde-0.2.0/LICENSE +25 -0
  2524. package/bin/windows-x64/licenses/tracing-subscriber-0.3.23/LICENSE +25 -0
  2525. package/bin/windows-x64/licenses/try-lock-0.2.5/LICENSE +21 -0
  2526. package/bin/windows-x64/licenses/tungstenite-0.24.0/LICENSE-APACHE +201 -0
  2527. package/bin/windows-x64/licenses/tungstenite-0.24.0/LICENSE-MIT +20 -0
  2528. package/bin/windows-x64/licenses/typenum-1.20.1/LICENSE +1 -0
  2529. package/bin/windows-x64/licenses/typenum-1.20.1/LICENSE-APACHE +201 -0
  2530. package/bin/windows-x64/licenses/typenum-1.20.1/LICENSE-MIT +21 -0
  2531. package/bin/windows-x64/licenses/unicase-2.9.0/LICENSE-APACHE +201 -0
  2532. package/bin/windows-x64/licenses/unicase-2.9.0/LICENSE-MIT +20 -0
  2533. package/bin/windows-x64/licenses/unicode-ident-1.0.24/LICENSE-APACHE +176 -0
  2534. package/bin/windows-x64/licenses/unicode-ident-1.0.24/LICENSE-MIT +23 -0
  2535. package/bin/windows-x64/licenses/unicode-ident-1.0.24/LICENSE-UNICODE +39 -0
  2536. package/bin/windows-x64/licenses/unicode-normalization-0.1.25/LICENSE-APACHE +201 -0
  2537. package/bin/windows-x64/licenses/unicode-normalization-0.1.25/LICENSE-MIT +25 -0
  2538. package/bin/windows-x64/licenses/unsafe-libyaml-0.2.11/LICENSE-MIT +23 -0
  2539. package/bin/windows-x64/licenses/untrusted-0.9.0/LICENSE.txt +13 -0
  2540. package/bin/windows-x64/licenses/url-2.5.8/LICENSE-APACHE +201 -0
  2541. package/bin/windows-x64/licenses/url-2.5.8/LICENSE-MIT +25 -0
  2542. package/bin/windows-x64/licenses/utf-8-0.7.6/LICENSE-APACHE +176 -0
  2543. package/bin/windows-x64/licenses/utf-8-0.7.6/LICENSE-MIT +23 -0
  2544. package/bin/windows-x64/licenses/utf8_iter-1.0.4/LICENSE-APACHE +202 -0
  2545. package/bin/windows-x64/licenses/utf8_iter-1.0.4/LICENSE-MIT +25 -0
  2546. package/bin/windows-x64/licenses/utf8parse-0.2.2/LICENSE-APACHE +176 -0
  2547. package/bin/windows-x64/licenses/utf8parse-0.2.2/LICENSE-MIT +25 -0
  2548. package/bin/windows-x64/licenses/vcpkg-0.2.15/LICENSE-APACHE +202 -0
  2549. package/bin/windows-x64/licenses/vcpkg-0.2.15/LICENSE-MIT +26 -0
  2550. package/bin/windows-x64/licenses/version_check-0.9.5/LICENSE-APACHE +201 -0
  2551. package/bin/windows-x64/licenses/version_check-0.9.5/LICENSE-MIT +19 -0
  2552. package/bin/windows-x64/licenses/want-0.3.1/LICENSE +20 -0
  2553. package/bin/windows-x64/licenses/webbrowser-1.2.4/LICENSE-APACHE +190 -0
  2554. package/bin/windows-x64/licenses/webbrowser-1.2.4/LICENSE-MIT +27 -0
  2555. package/bin/windows-x64/licenses/windows-link-0.2.1/license-apache-2.0 +201 -0
  2556. package/bin/windows-x64/licenses/windows-link-0.2.1/license-mit +21 -0
  2557. package/bin/windows-x64/licenses/windows-sys-0.52.0/license-apache-2.0 +201 -0
  2558. package/bin/windows-x64/licenses/windows-sys-0.52.0/license-mit +21 -0
  2559. package/bin/windows-x64/licenses/windows-sys-0.60.2/license-apache-2.0 +201 -0
  2560. package/bin/windows-x64/licenses/windows-sys-0.60.2/license-mit +21 -0
  2561. package/bin/windows-x64/licenses/windows-sys-0.61.2/license-apache-2.0 +201 -0
  2562. package/bin/windows-x64/licenses/windows-sys-0.61.2/license-mit +21 -0
  2563. package/bin/windows-x64/licenses/windows-targets-0.52.6/license-apache-2.0 +201 -0
  2564. package/bin/windows-x64/licenses/windows-targets-0.52.6/license-mit +21 -0
  2565. package/bin/windows-x64/licenses/windows-targets-0.53.5/license-apache-2.0 +201 -0
  2566. package/bin/windows-x64/licenses/windows-targets-0.53.5/license-mit +21 -0
  2567. package/bin/windows-x64/licenses/windows_x86_64_msvc-0.52.6/license-apache-2.0 +201 -0
  2568. package/bin/windows-x64/licenses/windows_x86_64_msvc-0.52.6/license-mit +21 -0
  2569. package/bin/windows-x64/licenses/windows_x86_64_msvc-0.53.1/license-apache-2.0 +201 -0
  2570. package/bin/windows-x64/licenses/windows_x86_64_msvc-0.53.1/license-mit +21 -0
  2571. package/bin/windows-x64/licenses/wiremock-0.6.5/LICENSE-APACHE +201 -0
  2572. package/bin/windows-x64/licenses/wiremock-0.6.5/LICENSE-MIT +23 -0
  2573. package/bin/windows-x64/licenses/writeable-0.6.3/LICENSE +46 -0
  2574. package/bin/windows-x64/licenses/yoke-0.8.3/LICENSE +46 -0
  2575. package/bin/windows-x64/licenses/yoke-derive-0.8.2/LICENSE +46 -0
  2576. package/bin/windows-x64/licenses/zerocopy-0.8.52/LICENSE-APACHE +202 -0
  2577. package/bin/windows-x64/licenses/zerocopy-0.8.52/LICENSE-BSD +24 -0
  2578. package/bin/windows-x64/licenses/zerocopy-0.8.52/LICENSE-MIT +26 -0
  2579. package/bin/windows-x64/licenses/zerofrom-0.1.8/LICENSE +46 -0
  2580. package/bin/windows-x64/licenses/zerofrom-derive-0.1.7/LICENSE +46 -0
  2581. package/bin/windows-x64/licenses/zeroize-1.9.0/LICENSE-APACHE +202 -0
  2582. package/bin/windows-x64/licenses/zeroize-1.9.0/LICENSE-MIT +25 -0
  2583. package/bin/windows-x64/licenses/zeroize_derive-1.5.0/LICENSE-APACHE +202 -0
  2584. package/bin/windows-x64/licenses/zeroize_derive-1.5.0/LICENSE-MIT +25 -0
  2585. package/bin/windows-x64/licenses/zerotrie-0.2.4/LICENSE +46 -0
  2586. package/bin/windows-x64/licenses/zerovec-0.11.6/LICENSE +46 -0
  2587. package/bin/windows-x64/licenses/zerovec-derive-0.11.3/LICENSE +46 -0
  2588. package/bin/windows-x64/licenses/zmij-1.0.21/LICENSE-MIT +23 -0
  2589. package/package.json +9 -2
package/action.mjs CHANGED
@@ -1,37 +1,37 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as BC}from"node:module";var JC=Object.create;var{getPrototypeOf:UC,defineProperty:tn,getOwnPropertyNames:YC}=Object;var FC=Object.prototype.hasOwnProperty;function XC(i){return this[i]}var GC,ZC,FA=(i,f,w)=>{var l=i!=null&&typeof i==="object";if(l){var t=f?GC??=new WeakMap:ZC??=new WeakMap,n=t.get(i);if(n)return n}w=i!=null?JC(UC(i)):{};let W=f||!i||!i.__esModule?tn(w,"default",{value:i,enumerable:!0}):w;for(let A of YC(i))if(!FC.call(W,A))tn(W,A,{get:XC.bind(i,A),enumerable:!0});if(l)t.set(i,W);return W};var N=(i,f)=>()=>(f||i((f={exports:{}}).exports,f),f.exports);var KC=(i)=>i;function QC(i,f){this[i]=KC.bind(null,f)}var XA=(i,f)=>{for(var w in f)tn(i,w,{get:f[w],enumerable:!0,configurable:!0,set:QC.bind(f,w)})};var bw=BC(import.meta.url);var rw=N((VC)=>{class nn extends Error{constructor(i,f,w){super(w);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=f,this.exitCode=i,this.nestedError=void 0}}class GA extends nn{constructor(i){super(1,"commander.invalidArgument",i);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}VC.CommanderError=nn;VC.InvalidArgumentError=GA});var Yl=N((xC)=>{var{InvalidArgumentError:vC}=rw();class ZA{constructor(i,f){switch(this.description=f||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,i[0]){case"<":this.required=!0,this._name=i.slice(1,-1);break;case"[":this.required=!1,this._name=i.slice(1,-1);break;default:this.required=!0,this._name=i;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(i,f){if(f===this.defaultValue||!Array.isArray(f))return[i];return f.push(i),f}default(i,f){return this.defaultValue=i,this.defaultValueDescription=f,this}argParser(i){return this.parseArg=i,this}choices(i){return this.argChoices=i.slice(),this.parseArg=(f,w)=>{if(!this.argChoices.includes(f))throw new vC(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(f,w);return f},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function hC(i){let f=i.name()+(i.variadic===!0?"...":"");return i.required?"<"+f+">":"["+f+"]"}xC.Argument=ZA;xC.humanReadableArgName=hC});var Wn=N((qC)=>{var{humanReadableArgName:mC}=Yl();class KA{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(i){this.helpWidth=this.helpWidth??i.helpWidth??80}visibleCommands(i){let f=i.commands.filter((l)=>!l._hidden),w=i._getHelpCommand();if(w&&!w._hidden)f.push(w);if(this.sortSubcommands)f.sort((l,t)=>{return l.name().localeCompare(t.name())});return f}compareOptions(i,f){let w=(l)=>{return l.short?l.short.replace(/^-/,""):l.long.replace(/^--/,"")};return w(i).localeCompare(w(f))}visibleOptions(i){let f=i.options.filter((l)=>!l.hidden),w=i._getHelpOption();if(w&&!w.hidden){let l=w.short&&i._findOption(w.short),t=w.long&&i._findOption(w.long);if(!l&&!t)f.push(w);else if(w.long&&!t)f.push(i.createOption(w.long,w.description));else if(w.short&&!l)f.push(i.createOption(w.short,w.description))}if(this.sortOptions)f.sort(this.compareOptions);return f}visibleGlobalOptions(i){if(!this.showGlobalOptions)return[];let f=[];for(let w=i.parent;w;w=w.parent){let l=w.options.filter((t)=>!t.hidden);f.push(...l)}if(this.sortOptions)f.sort(this.compareOptions);return f}visibleArguments(i){if(i._argsDescription)i.registeredArguments.forEach((f)=>{f.description=f.description||i._argsDescription[f.name()]||""});if(i.registeredArguments.find((f)=>f.description))return i.registeredArguments;return[]}subcommandTerm(i){let f=i.registeredArguments.map((w)=>mC(w)).join(" ");return i._name+(i._aliases[0]?"|"+i._aliases[0]:"")+(i.options.length?" [options]":"")+(f?" "+f:"")}optionTerm(i){return i.flags}argumentTerm(i){return i.name()}longestSubcommandTermLength(i,f){return f.visibleCommands(i).reduce((w,l)=>{return Math.max(w,this.displayWidth(f.styleSubcommandTerm(f.subcommandTerm(l))))},0)}longestOptionTermLength(i,f){return f.visibleOptions(i).reduce((w,l)=>{return Math.max(w,this.displayWidth(f.styleOptionTerm(f.optionTerm(l))))},0)}longestGlobalOptionTermLength(i,f){return f.visibleGlobalOptions(i).reduce((w,l)=>{return Math.max(w,this.displayWidth(f.styleOptionTerm(f.optionTerm(l))))},0)}longestArgumentTermLength(i,f){return f.visibleArguments(i).reduce((w,l)=>{return Math.max(w,this.displayWidth(f.styleArgumentTerm(f.argumentTerm(l))))},0)}commandUsage(i){let f=i._name;if(i._aliases[0])f=f+"|"+i._aliases[0];let w="";for(let l=i.parent;l;l=l.parent)w=l.name()+" "+w;return w+f+" "+i.usage()}commandDescription(i){return i.description()}subcommandDescription(i){return i.summary()||i.description()}optionDescription(i){let f=[];if(i.argChoices)f.push(`choices: ${i.argChoices.map((w)=>JSON.stringify(w)).join(", ")}`);if(i.defaultValue!==void 0){if(i.required||i.optional||i.isBoolean()&&typeof i.defaultValue==="boolean")f.push(`default: ${i.defaultValueDescription||JSON.stringify(i.defaultValue)}`)}if(i.presetArg!==void 0&&i.optional)f.push(`preset: ${JSON.stringify(i.presetArg)}`);if(i.envVar!==void 0)f.push(`env: ${i.envVar}`);if(f.length>0){let w=`(${f.join(", ")})`;if(i.description)return`${i.description} ${w}`;return w}return i.description}argumentDescription(i){let f=[];if(i.argChoices)f.push(`choices: ${i.argChoices.map((w)=>JSON.stringify(w)).join(", ")}`);if(i.defaultValue!==void 0)f.push(`default: ${i.defaultValueDescription||JSON.stringify(i.defaultValue)}`);if(f.length>0){let w=`(${f.join(", ")})`;if(i.description)return`${i.description} ${w}`;return w}return i.description}formatItemList(i,f,w){if(f.length===0)return[];return[w.styleTitle(i),...f,""]}groupItems(i,f,w){let l=new Map;return i.forEach((t)=>{let n=w(t);if(!l.has(n))l.set(n,[])}),f.forEach((t)=>{let n=w(t);if(!l.has(n))l.set(n,[]);l.get(n).push(t)}),l}formatHelp(i,f){let w=f.padWidth(i,f),l=f.helpWidth??80;function t(k,R){return f.formatItem(k,w,R,f)}let n=[`${f.styleTitle("Usage:")} ${f.styleUsage(f.commandUsage(i))}`,""],W=f.commandDescription(i);if(W.length>0)n=n.concat([f.boxWrap(f.styleCommandDescription(W),l),""]);let A=f.visibleArguments(i).map((k)=>{return t(f.styleArgumentTerm(f.argumentTerm(k)),f.styleArgumentDescription(f.argumentDescription(k)))});if(n=n.concat(this.formatItemList("Arguments:",A,f)),this.groupItems(i.options,f.visibleOptions(i),(k)=>k.helpGroupHeading??"Options:").forEach((k,R)=>{let C=k.map((L)=>{return t(f.styleOptionTerm(f.optionTerm(L)),f.styleOptionDescription(f.optionDescription(L)))});n=n.concat(this.formatItemList(R,C,f))}),f.showGlobalOptions){let k=f.visibleGlobalOptions(i).map((R)=>{return t(f.styleOptionTerm(f.optionTerm(R)),f.styleOptionDescription(f.optionDescription(R)))});n=n.concat(this.formatItemList("Global Options:",k,f))}return this.groupItems(i.commands,f.visibleCommands(i),(k)=>k.helpGroup()||"Commands:").forEach((k,R)=>{let C=k.map((L)=>{return t(f.styleSubcommandTerm(f.subcommandTerm(L)),f.styleSubcommandDescription(f.subcommandDescription(L)))});n=n.concat(this.formatItemList(R,C,f))}),n.join(`
3
- `)}displayWidth(i){return QA(i).length}styleTitle(i){return i}styleUsage(i){return i.split(" ").map((f)=>{if(f==="[options]")return this.styleOptionText(f);if(f==="[command]")return this.styleSubcommandText(f);if(f[0]==="["||f[0]==="<")return this.styleArgumentText(f);return this.styleCommandText(f)}).join(" ")}styleCommandDescription(i){return this.styleDescriptionText(i)}styleOptionDescription(i){return this.styleDescriptionText(i)}styleSubcommandDescription(i){return this.styleDescriptionText(i)}styleArgumentDescription(i){return this.styleDescriptionText(i)}styleDescriptionText(i){return i}styleOptionTerm(i){return this.styleOptionText(i)}styleSubcommandTerm(i){return i.split(" ").map((f)=>{if(f==="[options]")return this.styleOptionText(f);if(f[0]==="["||f[0]==="<")return this.styleArgumentText(f);return this.styleSubcommandText(f)}).join(" ")}styleArgumentTerm(i){return this.styleArgumentText(i)}styleOptionText(i){return i}styleArgumentText(i){return i}styleSubcommandText(i){return i}styleCommandText(i){return i}padWidth(i,f){return Math.max(f.longestOptionTermLength(i,f),f.longestGlobalOptionTermLength(i,f),f.longestSubcommandTermLength(i,f),f.longestArgumentTermLength(i,f))}preformatted(i){return/\n[^\S\r\n]/.test(i)}formatItem(i,f,w,l){let n=" ".repeat(2);if(!w)return n+i;let W=i.padEnd(f+i.length-l.displayWidth(i)),A=2,I=(this.helpWidth??80)-f-A-2,k;if(I<this.minWidthToWrap||l.preformatted(w))k=w;else k=l.boxWrap(w,I).replace(/\n/g,`
4
- `+" ".repeat(f+A));return n+W+" ".repeat(A)+k.replace(/\n/g,`
5
- ${n}`)}boxWrap(i,f){if(f<this.minWidthToWrap)return i;let w=i.split(/\r\n|\n/),l=/[\s]*[^\s]+/g,t=[];return w.forEach((n)=>{let W=n.match(l);if(W===null){t.push("");return}let A=[W.shift()],$=this.displayWidth(A[0]);W.forEach((I)=>{let k=this.displayWidth(I);if($+k<=f){A.push(I),$+=k;return}t.push(A.join(""));let R=I.trimStart();A=[R],$=this.displayWidth(R)}),t.push(A.join(""))}),t.join(`
6
- `)}}function QA(i){let f=/\x1b\[\d*(;\d*)*m/g;return i.replace(f,"")}qC.Help=KA;qC.stripColor=QA});var An=N((pC)=>{var{InvalidArgumentError:_C}=rw();class VA{constructor(i,f){this.flags=i,this.description=f||"",this.required=i.includes("<"),this.optional=i.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(i),this.mandatory=!1;let w=sC(i);if(this.short=w.shortFlag,this.long=w.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(i,f){return this.defaultValue=i,this.defaultValueDescription=f,this}preset(i){return this.presetArg=i,this}conflicts(i){return this.conflictsWith=this.conflictsWith.concat(i),this}implies(i){let f=i;if(typeof i==="string")f={[i]:!0};return this.implied=Object.assign(this.implied||{},f),this}env(i){return this.envVar=i,this}argParser(i){return this.parseArg=i,this}makeOptionMandatory(i=!0){return this.mandatory=!!i,this}hideHelp(i=!0){return this.hidden=!!i,this}_collectValue(i,f){if(f===this.defaultValue||!Array.isArray(f))return[i];return f.push(i),f}choices(i){return this.argChoices=i.slice(),this.parseArg=(f,w)=>{if(!this.argChoices.includes(f))throw new _C(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(f,w);return f},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return BA(this.name().replace(/^no-/,""));return BA(this.name())}helpGroup(i){return this.helpGroupHeading=i,this}is(i){return this.short===i||this.long===i}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class HA{constructor(i){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,i.forEach((f)=>{if(f.negate)this.negativeOptions.set(f.attributeName(),f);else this.positiveOptions.set(f.attributeName(),f)}),this.negativeOptions.forEach((f,w)=>{if(this.positiveOptions.has(w))this.dualOptions.add(w)})}valueFromOption(i,f){let w=f.attributeName();if(!this.dualOptions.has(w))return!0;let l=this.negativeOptions.get(w).presetArg,t=l!==void 0?l:!1;return f.negate===(t===i)}}function BA(i){return i.split("-").reduce((f,w)=>{return f+w[0].toUpperCase()+w.slice(1)})}function sC(i){let f,w,l=/^-[^-]$/,t=/^--[^-]/,n=i.split(/[ |,]+/).concat("guard");if(l.test(n[0]))f=n.shift();if(t.test(n[0]))w=n.shift();if(!f&&l.test(n[0]))f=n.shift();if(!f&&t.test(n[0]))f=w,w=n.shift();if(n[0].startsWith("-")){let W=n[0],A=`option creation failed due to '${W}' in option flags '${i}'`;if(/^-[^-][^-]/.test(W))throw Error(`${A}
2
+ import{createRequire as np}from"node:module";var Zm=Object.create;var{getPrototypeOf:Qm,defineProperty:jo,getOwnPropertyNames:xm}=Object;var _m=Object.prototype.hasOwnProperty;function ep(e){return this[e]}var rp,ip,Go=(e,r,i)=>{var n=e!=null&&typeof e==="object";if(n){var t=r?rp??=new WeakMap:ip??=new WeakMap,a=t.get(e);if(a)return a}i=e!=null?Zm(Qm(e)):{};let o=r||!e||!e.__esModule?jo(i,"default",{value:e,enumerable:!0}):i;for(let s of xm(e))if(!_m.call(o,s))jo(o,s,{get:ep.bind(e,s),enumerable:!0});if(n)t.set(e,o);return o};var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Kr=np(import.meta.url);var Hr=y((tp)=>{class Ct extends Error{constructor(e,r,i){super(i);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}}class Uo extends Ct{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}tp.CommanderError=Ct;tp.InvalidArgumentError=Uo});var xi=y((lp)=>{var{InvalidArgumentError:sp}=Hr();class Jo{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(e,r){if(r===this.defaultValue||!Array.isArray(r))return[e];return r.push(e),r}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new sp(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(r,i);return r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function up(e){let r=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+r+">":"["+r+"]"}lp.Argument=Jo;lp.humanReadableArgName=up});var kt=y((mp)=>{var{humanReadableArgName:fp}=xi();class Mo{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let r=e.commands.filter((n)=>!n._hidden),i=e._getHelpCommand();if(i&&!i._hidden)r.push(i);if(this.sortSubcommands)r.sort((n,t)=>{return n.name().localeCompare(t.name())});return r}compareOptions(e,r){let i=(n)=>{return n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"")};return i(e).localeCompare(i(r))}visibleOptions(e){let r=e.options.filter((n)=>!n.hidden),i=e._getHelpOption();if(i&&!i.hidden){let n=i.short&&e._findOption(i.short),t=i.long&&e._findOption(i.long);if(!n&&!t)r.push(i);else if(i.long&&!t)r.push(e.createOption(i.long,i.description));else if(i.short&&!n)r.push(e.createOption(i.short,i.description))}if(this.sortOptions)r.sort(this.compareOptions);return r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let i=e.parent;i;i=i.parent){let n=i.options.filter((t)=>!t.hidden);r.push(...n)}if(this.sortOptions)r.sort(this.compareOptions);return r}visibleArguments(e){if(e._argsDescription)e.registeredArguments.forEach((r)=>{r.description=r.description||e._argsDescription[r.name()]||""});if(e.registeredArguments.find((r)=>r.description))return e.registeredArguments;return[]}subcommandTerm(e){let r=e.registeredArguments.map((i)=>fp(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((i,n)=>{return Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n))))},0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((i,n)=>{return Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n))))},0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((i,n)=>{return Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n))))},0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((i,n)=>{return Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n))))},0)}commandUsage(e){let r=e._name;if(e._aliases[0])r=r+"|"+e._aliases[0];let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];if(e.argChoices)r.push(`choices: ${e.argChoices.map((i)=>JSON.stringify(i)).join(", ")}`);if(e.defaultValue!==void 0){if(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean")r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(e.presetArg!==void 0&&e.optional)r.push(`preset: ${JSON.stringify(e.presetArg)}`);if(e.envVar!==void 0)r.push(`env: ${e.envVar}`);if(r.length>0){let i=`(${r.join(", ")})`;if(e.description)return`${e.description} ${i}`;return i}return e.description}argumentDescription(e){let r=[];if(e.argChoices)r.push(`choices: ${e.argChoices.map((i)=>JSON.stringify(i)).join(", ")}`);if(e.defaultValue!==void 0)r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`);if(r.length>0){let i=`(${r.join(", ")})`;if(e.description)return`${e.description} ${i}`;return i}return e.description}formatItemList(e,r,i){if(r.length===0)return[];return[i.styleTitle(e),...r,""]}groupItems(e,r,i){let n=new Map;return e.forEach((t)=>{let a=i(t);if(!n.has(a))n.set(a,[])}),r.forEach((t)=>{let a=i(t);if(!n.has(a))n.set(a,[]);n.get(a).push(t)}),n}formatHelp(e,r){let i=r.padWidth(e,r),n=r.helpWidth??80;function t(d,c){return r.formatItem(d,i,c,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(e))}`,""],o=r.commandDescription(e);if(o.length>0)a=a.concat([r.boxWrap(r.styleCommandDescription(o),n),""]);let s=r.visibleArguments(e).map((d)=>{return t(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d)))});if(a=a.concat(this.formatItemList("Arguments:",s,r)),this.groupItems(e.options,r.visibleOptions(e),(d)=>d.helpGroupHeading??"Options:").forEach((d,c)=>{let p=d.map((I)=>{return t(r.styleOptionTerm(r.optionTerm(I)),r.styleOptionDescription(r.optionDescription(I)))});a=a.concat(this.formatItemList(c,p,r))}),r.showGlobalOptions){let d=r.visibleGlobalOptions(e).map((c)=>{return t(r.styleOptionTerm(r.optionTerm(c)),r.styleOptionDescription(r.optionDescription(c)))});a=a.concat(this.formatItemList("Global Options:",d,r))}return this.groupItems(e.commands,r.visibleCommands(e),(d)=>d.helpGroup()||"Commands:").forEach((d,c)=>{let p=d.map((I)=>{return t(r.styleSubcommandTerm(r.subcommandTerm(I)),r.styleSubcommandDescription(r.subcommandDescription(I)))});a=a.concat(this.formatItemList(c,p,r))}),a.join(`
3
+ `)}displayWidth(e){return Yo(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map((r)=>{if(r==="[options]")return this.styleOptionText(r);if(r==="[command]")return this.styleSubcommandText(r);if(r[0]==="["||r[0]==="<")return this.styleArgumentText(r);return this.styleCommandText(r)}).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map((r)=>{if(r==="[options]")return this.styleOptionText(r);if(r[0]==="["||r[0]==="<")return this.styleArgumentText(r);return this.styleSubcommandText(r)}).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,r,i,n){let a=" ".repeat(2);if(!i)return a+e;let o=e.padEnd(r+e.length-n.displayWidth(e)),s=2,l=(this.helpWidth??80)-r-s-2,d;if(l<this.minWidthToWrap||n.preformatted(i))d=i;else d=n.boxWrap(i,l).replace(/\n/g,`
4
+ `+" ".repeat(r+s));return a+o+" ".repeat(s)+d.replace(/\n/g,`
5
+ ${a}`)}boxWrap(e,r){if(r<this.minWidthToWrap)return e;let i=e.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,t=[];return i.forEach((a)=>{let o=a.match(n);if(o===null){t.push("");return}let s=[o.shift()],u=this.displayWidth(s[0]);o.forEach((l)=>{let d=this.displayWidth(l);if(u+d<=r){s.push(l),u+=d;return}t.push(s.join(""));let c=l.trimStart();s=[c],u=this.displayWidth(c)}),t.push(s.join(""))}),t.join(`
6
+ `)}}function Yo(e){let r=/\x1b\[\d*(;\d*)*m/g;return e.replace(r,"")}mp.Help=Mo;mp.stripColor=Yo});var bt=y((wp)=>{var{InvalidArgumentError:qp}=Hr();class Fo{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=hp(e);if(this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;if(typeof e==="string")r={[e]:!0};return this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,r){if(r===this.defaultValue||!Array.isArray(r))return[e];return r.push(e),r}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new qp(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(r,i);return r},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return Bo(this.name().replace(/^no-/,""));return Bo(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class Ko{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach((r)=>{if(r.negate)this.negativeOptions.set(r.attributeName(),r);else this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{if(this.positiveOptions.has(i))this.dualOptions.add(i)})}valueFromOption(e,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,t=n!==void 0?n:!1;return r.negate===(t===e)}}function Bo(e){return e.split("-").reduce((r,i)=>{return r+i[0].toUpperCase()+i.slice(1)})}function hp(e){let r,i,n=/^-[^-]$/,t=/^--[^-]/,a=e.split(/[ |,]+/).concat("guard");if(n.test(a[0]))r=a.shift();if(t.test(a[0]))i=a.shift();if(!r&&n.test(a[0]))r=a.shift();if(!r&&t.test(a[0]))r=i,i=a.shift();if(a[0].startsWith("-")){let o=a[0],s=`option creation failed due to '${o}' in option flags '${e}'`;if(/^-[^-][^-]/.test(o))throw Error(`${s}
7
7
  - a short flag is a single dash and a single character
8
8
  - either use a single dash and a single character (for a short flag)
9
- - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(l.test(W))throw Error(`${A}
10
- - too many short flags`);if(t.test(W))throw Error(`${A}
11
- - too many long flags`);throw Error(`${A}
12
- - unrecognised flag format`)}if(f===void 0&&w===void 0)throw Error(`option creation failed due to no flags found in '${i}'.`);return{shortFlag:f,longFlag:w}}pC.Option=VA;pC.DualOptions=HA});var jA=N((lS)=>{function fS(i,f){if(Math.abs(i.length-f.length)>3)return Math.max(i.length,f.length);let w=[];for(let l=0;l<=i.length;l++)w[l]=[l];for(let l=0;l<=f.length;l++)w[0][l]=l;for(let l=1;l<=f.length;l++)for(let t=1;t<=i.length;t++){let n=1;if(i[t-1]===f[l-1])n=0;else n=1;if(w[t][l]=Math.min(w[t-1][l]+1,w[t][l-1]+1,w[t-1][l-1]+n),t>1&&l>1&&i[t-1]===f[l-2]&&i[t-2]===f[l-1])w[t][l]=Math.min(w[t][l],w[t-2][l-2]+1)}return w[i.length][f.length]}function wS(i,f){if(!f||f.length===0)return"";f=Array.from(new Set(f));let w=i.startsWith("--");if(w)i=i.slice(2),f=f.map((W)=>W.slice(2));let l=[],t=3,n=0.4;if(f.forEach((W)=>{if(W.length<=1)return;let A=fS(i,W),$=Math.max(i.length,W.length);if(($-A)/$>n){if(A<t)t=A,l=[W];else if(A===t)l.push(W)}}),l.sort((W,A)=>W.localeCompare(A)),w)l=l.map((W)=>`--${W}`);if(l.length>1)return`
13
- (Did you mean one of ${l.join(", ")}?)`;if(l.length===1)return`
14
- (Did you mean ${l[0]}?)`;return""}lS.suggestSimilar=wS});var OA=N((RS)=>{var nS=bw("node:events").EventEmitter,In=bw("node:child_process"),wf=bw("node:path"),Fl=bw("node:fs"),K=bw("node:process"),{Argument:WS,humanReadableArgName:AS}=Yl(),{CommanderError:kn}=rw(),{Help:IS,stripColor:kS}=Wn(),{Option:vA,DualOptions:$S}=An(),{suggestSimilar:hA}=jA();class Rn extends nS{constructor(i){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=i||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(f)=>K.stdout.write(f),writeErr:(f)=>K.stderr.write(f),outputError:(f,w)=>w(f),getOutHelpWidth:()=>K.stdout.isTTY?K.stdout.columns:void 0,getErrHelpWidth:()=>K.stderr.isTTY?K.stderr.columns:void 0,getOutHasColors:()=>$n()??(K.stdout.isTTY&&K.stdout.hasColors?.()),getErrHasColors:()=>$n()??(K.stderr.isTTY&&K.stderr.hasColors?.()),stripColor:(f)=>kS(f)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(i){return this._outputConfiguration=i._outputConfiguration,this._helpOption=i._helpOption,this._helpCommand=i._helpCommand,this._helpConfiguration=i._helpConfiguration,this._exitCallback=i._exitCallback,this._storeOptionsAsProperties=i._storeOptionsAsProperties,this._combineFlagAndOptionalValue=i._combineFlagAndOptionalValue,this._allowExcessArguments=i._allowExcessArguments,this._enablePositionalOptions=i._enablePositionalOptions,this._showHelpAfterError=i._showHelpAfterError,this._showSuggestionAfterError=i._showSuggestionAfterError,this}_getCommandAndAncestors(){let i=[];for(let f=this;f;f=f.parent)i.push(f);return i}command(i,f,w){let l=f,t=w;if(typeof l==="object"&&l!==null)t=l,l=null;t=t||{};let[,n,W]=i.match(/([^ ]+) *(.*)/),A=this.createCommand(n);if(l)A.description(l),A._executableHandler=!0;if(t.isDefault)this._defaultCommandName=A._name;if(A._hidden=!!(t.noHelp||t.hidden),A._executableFile=t.executableFile||null,W)A.arguments(W);if(this._registerCommand(A),A.parent=this,A.copyInheritedSettings(this),l)return this;return A}createCommand(i){return new Rn(i)}createHelp(){return Object.assign(new IS,this.configureHelp())}configureHelp(i){if(i===void 0)return this._helpConfiguration;return this._helpConfiguration=i,this}configureOutput(i){if(i===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...i},this}showHelpAfterError(i=!0){if(typeof i!=="string")i=!!i;return this._showHelpAfterError=i,this}showSuggestionAfterError(i=!0){return this._showSuggestionAfterError=!!i,this}addCommand(i,f){if(!i._name)throw Error(`Command passed to .addCommand() must have a name
15
- - specify the name in Command constructor or using .name()`);if(f=f||{},f.isDefault)this._defaultCommandName=i._name;if(f.noHelp||f.hidden)i._hidden=!0;return this._registerCommand(i),i.parent=this,i._checkForBrokenPassThrough(),this}createArgument(i,f){return new WS(i,f)}argument(i,f,w,l){let t=this.createArgument(i,f);if(typeof w==="function")t.default(l).argParser(w);else t.default(w);return this.addArgument(t),this}arguments(i){return i.trim().split(/ +/).forEach((f)=>{this.argument(f)}),this}addArgument(i){let f=this.registeredArguments.slice(-1)[0];if(f?.variadic)throw Error(`only the last argument can be variadic '${f.name()}'`);if(i.required&&i.defaultValue!==void 0&&i.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${i.name()}'`);return this.registeredArguments.push(i),this}helpCommand(i,f){if(typeof i==="boolean"){if(this._addImplicitHelpCommand=i,i&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let w=i??"help [command]",[,l,t]=w.match(/([^ ]+) *(.*)/),n=f??"display help for command",W=this.createCommand(l);if(W.helpOption(!1),t)W.arguments(t);if(n)W.description(n);if(this._addImplicitHelpCommand=!0,this._helpCommand=W,i||f)this._initCommandGroup(W);return this}addHelpCommand(i,f){if(typeof i!=="object")return this.helpCommand(i,f),this;return this._addImplicitHelpCommand=!0,this._helpCommand=i,this._initCommandGroup(i),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(i,f){let w=["preSubcommand","preAction","postAction"];if(!w.includes(i))throw Error(`Unexpected value for event passed to hook : '${i}'.
16
- Expecting one of '${w.join("', '")}'`);if(this._lifeCycleHooks[i])this._lifeCycleHooks[i].push(f);else this._lifeCycleHooks[i]=[f];return this}exitOverride(i){if(i)this._exitCallback=i;else this._exitCallback=(f)=>{if(f.code!=="commander.executeSubCommandAsync")throw f};return this}_exit(i,f,w){if(this._exitCallback)this._exitCallback(new kn(i,f,w));K.exit(i)}action(i){let f=(w)=>{let l=this.registeredArguments.length,t=w.slice(0,l);if(this._storeOptionsAsProperties)t[l]=this;else t[l]=this.opts();return t.push(this),i.apply(this,t)};return this._actionHandler=f,this}createOption(i,f){return new vA(i,f)}_callParseArg(i,f,w,l){try{return i.parseArg(f,w)}catch(t){if(t.code==="commander.invalidArgument"){let n=`${l} ${t.message}`;this.error(n,{exitCode:t.exitCode,code:t.code})}throw t}}_registerOption(i){let f=i.short&&this._findOption(i.short)||i.long&&this._findOption(i.long);if(f){let w=i.long&&this._findOption(i.long)?i.long:i.short;throw Error(`Cannot add option '${i.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${w}'
17
- - already used by option '${f.flags}'`)}this._initOptionGroup(i),this.options.push(i)}_registerCommand(i){let f=(l)=>{return[l.name()].concat(l.aliases())},w=f(i).find((l)=>this._findCommand(l));if(w){let l=f(this._findCommand(w)).join("|"),t=f(i).join("|");throw Error(`cannot add command '${t}' as already have command '${l}'`)}this._initCommandGroup(i),this.commands.push(i)}addOption(i){this._registerOption(i);let f=i.name(),w=i.attributeName();if(i.negate){let t=i.long.replace(/^--no-/,"--");if(!this._findOption(t))this.setOptionValueWithSource(w,i.defaultValue===void 0?!0:i.defaultValue,"default")}else if(i.defaultValue!==void 0)this.setOptionValueWithSource(w,i.defaultValue,"default");let l=(t,n,W)=>{if(t==null&&i.presetArg!==void 0)t=i.presetArg;let A=this.getOptionValue(w);if(t!==null&&i.parseArg)t=this._callParseArg(i,t,A,n);else if(t!==null&&i.variadic)t=i._collectValue(t,A);if(t==null)if(i.negate)t=!1;else if(i.isBoolean()||i.optional)t=!0;else t="";this.setOptionValueWithSource(w,t,W)};if(this.on("option:"+f,(t)=>{let n=`error: option '${i.flags}' argument '${t}' is invalid.`;l(t,n,"cli")}),i.envVar)this.on("optionEnv:"+f,(t)=>{let n=`error: option '${i.flags}' value '${t}' from env '${i.envVar}' is invalid.`;l(t,n,"env")});return this}_optionEx(i,f,w,l,t){if(typeof f==="object"&&f instanceof vA)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let n=this.createOption(f,w);if(n.makeOptionMandatory(!!i.mandatory),typeof l==="function")n.default(t).argParser(l);else if(l instanceof RegExp){let W=l;l=(A,$)=>{let I=W.exec(A);return I?I[0]:$},n.default(t).argParser(l)}else n.default(l);return this.addOption(n)}option(i,f,w,l){return this._optionEx({},i,f,w,l)}requiredOption(i,f,w,l){return this._optionEx({mandatory:!0},i,f,w,l)}combineFlagAndOptionalValue(i=!0){return this._combineFlagAndOptionalValue=!!i,this}allowUnknownOption(i=!0){return this._allowUnknownOption=!!i,this}allowExcessArguments(i=!0){return this._allowExcessArguments=!!i,this}enablePositionalOptions(i=!0){return this._enablePositionalOptions=!!i,this}passThroughOptions(i=!0){return this._passThroughOptions=!!i,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(i=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!i,this}getOptionValue(i){if(this._storeOptionsAsProperties)return this[i];return this._optionValues[i]}setOptionValue(i,f){return this.setOptionValueWithSource(i,f,void 0)}setOptionValueWithSource(i,f,w){if(this._storeOptionsAsProperties)this[i]=f;else this._optionValues[i]=f;return this._optionValueSources[i]=w,this}getOptionValueSource(i){return this._optionValueSources[i]}getOptionValueSourceWithGlobals(i){let f;return this._getCommandAndAncestors().forEach((w)=>{if(w.getOptionValueSource(i)!==void 0)f=w.getOptionValueSource(i)}),f}_prepareUserArgs(i,f){if(i!==void 0&&!Array.isArray(i))throw Error("first parameter to parse must be array or undefined");if(f=f||{},i===void 0&&f.from===void 0){if(K.versions?.electron)f.from="electron";let l=K.execArgv??[];if(l.includes("-e")||l.includes("--eval")||l.includes("-p")||l.includes("--print"))f.from="eval"}if(i===void 0)i=K.argv;this.rawArgs=i.slice();let w;switch(f.from){case void 0:case"node":this._scriptPath=i[1],w=i.slice(2);break;case"electron":if(K.defaultApp)this._scriptPath=i[1],w=i.slice(2);else w=i.slice(1);break;case"user":w=i.slice(0);break;case"eval":w=i.slice(1);break;default:throw Error(`unexpected parse option { from: '${f.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",w}parse(i,f){this._prepareForParse();let w=this._prepareUserArgs(i,f);return this._parseCommand([],w),this}async parseAsync(i,f){this._prepareForParse();let w=this._prepareUserArgs(i,f);return await this._parseCommand([],w),this}_prepareForParse(){if(this._savedState===null)this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
18
- - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(i,f,w){if(Fl.existsSync(i))return;let l=f?`searched for local subcommand relative to directory '${f}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",t=`'${i}' does not exist
19
- - if '${w}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
9
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(n.test(o))throw Error(`${s}
10
+ - too many short flags`);if(t.test(o))throw Error(`${s}
11
+ - too many long flags`);throw Error(`${s}
12
+ - unrecognised flag format`)}if(r===void 0&&i===void 0)throw Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:r,longFlag:i}}wp.Option=Fo;wp.DualOptions=Ko});var Ho=y((kp)=>{function gp(e,r){if(Math.abs(e.length-r.length)>3)return Math.max(e.length,r.length);let i=[];for(let n=0;n<=e.length;n++)i[n]=[n];for(let n=0;n<=r.length;n++)i[0][n]=n;for(let n=1;n<=r.length;n++)for(let t=1;t<=e.length;t++){let a=1;if(e[t-1]===r[n-1])a=0;else a=1;if(i[t][n]=Math.min(i[t-1][n]+1,i[t][n-1]+1,i[t-1][n-1]+a),t>1&&n>1&&e[t-1]===r[n-2]&&e[t-2]===r[n-1])i[t][n]=Math.min(i[t][n],i[t-2][n-2]+1)}return i[e.length][r.length]}function Cp(e,r){if(!r||r.length===0)return"";r=Array.from(new Set(r));let i=e.startsWith("--");if(i)e=e.slice(2),r=r.map((o)=>o.slice(2));let n=[],t=3,a=0.4;if(r.forEach((o)=>{if(o.length<=1)return;let s=gp(e,o),u=Math.max(e.length,o.length);if((u-s)/u>a){if(s<t)t=s,n=[o];else if(s===t)n.push(o)}}),n.sort((o,s)=>o.localeCompare(s)),i)n=n.map((o)=>`--${o}`);if(n.length>1)return`
13
+ (Did you mean one of ${n.join(", ")}?)`;if(n.length===1)return`
14
+ (Did you mean ${n[0]}?)`;return""}kp.suggestSimilar=Cp});var _o=y((vp)=>{var Rp=Kr("node:events").EventEmitter,Rt=Kr("node:child_process"),Oe=Kr("node:path"),_i=Kr("node:fs"),O=Kr("node:process"),{Argument:Xp,humanReadableArgName:Lp}=xi(),{CommanderError:Xt}=Hr(),{Help:Wp,stripColor:Sp}=kt(),{Option:Zo,DualOptions:zp}=bt(),{suggestSimilar:Qo}=Ho();class Wt extends Rp{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(r)=>O.stdout.write(r),writeErr:(r)=>O.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>O.stdout.isTTY?O.stdout.columns:void 0,getErrHelpWidth:()=>O.stderr.isTTY?O.stderr.columns:void 0,getOutHasColors:()=>Lt()??(O.stdout.isTTY&&O.stdout.hasColors?.()),getErrHasColors:()=>Lt()??(O.stderr.isTTY&&O.stderr.hasColors?.()),stripColor:(r)=>Sp(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,i){let n=r,t=i;if(typeof n==="object"&&n!==null)t=n,n=null;t=t||{};let[,a,o]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(a);if(n)s.description(n),s._executableHandler=!0;if(t.isDefault)this._defaultCommandName=s._name;if(s._hidden=!!(t.noHelp||t.hidden),s._executableFile=t.executableFile||null,o)s.arguments(o);if(this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),n)return this;return s}createCommand(e){return new Wt(e)}createHelp(){return Object.assign(new Wp,this.configureHelp())}configureHelp(e){if(e===void 0)return this._helpConfiguration;return this._helpConfiguration=e,this}configureOutput(e){if(e===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...e},this}showHelpAfterError(e=!0){if(typeof e!=="string")e=!!e;return this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
15
+ - specify the name in Command constructor or using .name()`);if(r=r||{},r.isDefault)this._defaultCommandName=e._name;if(r.noHelp||r.hidden)e._hidden=!0;return this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new Xp(e,r)}argument(e,r,i,n){let t=this.createArgument(e,r);if(typeof i==="function")t.default(n).argParser(i);else t.default(i);return this.addArgument(t),this}arguments(e){return e.trim().split(/ +/).forEach((r)=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,r){if(typeof e==="boolean"){if(this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let i=e??"help [command]",[,n,t]=i.match(/([^ ]+) *(.*)/),a=r??"display help for command",o=this.createCommand(n);if(o.helpOption(!1),t)o.arguments(t);if(a)o.description(a);if(this._addImplicitHelpCommand=!0,this._helpCommand=o,e||r)this._initCommandGroup(o);return this}addHelpCommand(e,r){if(typeof e!=="object")return this.helpCommand(e,r),this;return this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(e,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
16
+ Expecting one of '${i.join("', '")}'`);if(this._lifeCycleHooks[e])this._lifeCycleHooks[e].push(r);else this._lifeCycleHooks[e]=[r];return this}exitOverride(e){if(e)this._exitCallback=e;else this._exitCallback=(r)=>{if(r.code!=="commander.executeSubCommandAsync")throw r};return this}_exit(e,r,i){if(this._exitCallback)this._exitCallback(new Xt(e,r,i));O.exit(e)}action(e){let r=(i)=>{let n=this.registeredArguments.length,t=i.slice(0,n);if(this._storeOptionsAsProperties)t[n]=this;else t[n]=this.opts();return t.push(this),e.apply(this,t)};return this._actionHandler=r,this}createOption(e,r){return new Zo(e,r)}_callParseArg(e,r,i,n){try{return e.parseArg(r,i)}catch(t){if(t.code==="commander.invalidArgument"){let a=`${n} ${t.message}`;this.error(a,{exitCode:t.exitCode,code:t.code})}throw t}}_registerOption(e){let r=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(r){let i=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
17
+ - already used by option '${r.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let r=(n)=>{return[n.name()].concat(n.aliases())},i=r(e).find((n)=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),t=r(e).join("|");throw Error(`cannot add command '${t}' as already have command '${n}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let r=e.name(),i=e.attributeName();if(e.negate){let t=e.long.replace(/^--no-/,"--");if(!this._findOption(t))this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else if(e.defaultValue!==void 0)this.setOptionValueWithSource(i,e.defaultValue,"default");let n=(t,a,o)=>{if(t==null&&e.presetArg!==void 0)t=e.presetArg;let s=this.getOptionValue(i);if(t!==null&&e.parseArg)t=this._callParseArg(e,t,s,a);else if(t!==null&&e.variadic)t=e._collectValue(t,s);if(t==null)if(e.negate)t=!1;else if(e.isBoolean()||e.optional)t=!0;else t="";this.setOptionValueWithSource(i,t,o)};if(this.on("option:"+r,(t)=>{let a=`error: option '${e.flags}' argument '${t}' is invalid.`;n(t,a,"cli")}),e.envVar)this.on("optionEnv:"+r,(t)=>{let a=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;n(t,a,"env")});return this}_optionEx(e,r,i,n,t){if(typeof r==="object"&&r instanceof Zo)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,i);if(a.makeOptionMandatory(!!e.mandatory),typeof n==="function")a.default(t).argParser(n);else if(n instanceof RegExp){let o=n;n=(s,u)=>{let l=o.exec(s);return l?l[0]:u},a.default(t).argParser(n)}else a.default(n);return this.addOption(a)}option(e,r,i,n){return this._optionEx({},e,r,i,n)}requiredOption(e,r,i,n){return this._optionEx({mandatory:!0},e,r,i,n)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){if(this._storeOptionsAsProperties)return this[e];return this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,i){if(this._storeOptionsAsProperties)this[e]=r;else this._optionValues[e]=r;return this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach((i)=>{if(i.getOptionValueSource(e)!==void 0)r=i.getOptionValueSource(e)}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw Error("first parameter to parse must be array or undefined");if(r=r||{},e===void 0&&r.from===void 0){if(O.versions?.electron)r.from="electron";let n=O.execArgv??[];if(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))r.from="eval"}if(e===void 0)e=O.argv;this.rawArgs=e.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":if(O.defaultApp)this._scriptPath=e[1],i=e.slice(2);else i=e.slice(1);break;case"user":i=e.slice(0);break;case"eval":i=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${r.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",i}parse(e,r){this._prepareForParse();let i=this._prepareUserArgs(e,r);return this._parseCommand([],i),this}async parseAsync(e,r){this._prepareForParse();let i=this._prepareUserArgs(e,r);return await this._parseCommand([],i),this}_prepareForParse(){if(this._savedState===null)this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
18
+ - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,r,i){if(_i.existsSync(e))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",t=`'${e}' does not exist
19
+ - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
20
20
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
21
- - ${l}`;throw Error(t)}_executeSubCommand(i,f){f=f.slice();let w=!1,l=[".js",".ts",".tsx",".mjs",".cjs"];function t(I,k){let R=wf.resolve(I,k);if(Fl.existsSync(R))return R;if(l.includes(wf.extname(k)))return;let C=l.find((L)=>Fl.existsSync(`${R}${L}`));if(C)return`${R}${C}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=i._executableFile||`${this._name}-${i._name}`,W=this._executableDir||"";if(this._scriptPath){let I;try{I=Fl.realpathSync(this._scriptPath)}catch{I=this._scriptPath}W=wf.resolve(wf.dirname(I),W)}if(W){let I=t(W,n);if(!I&&!i._executableFile&&this._scriptPath){let k=wf.basename(this._scriptPath,wf.extname(this._scriptPath));if(k!==this._name)I=t(W,`${k}-${i._name}`)}n=I||n}w=l.includes(wf.extname(n));let A;if(K.platform!=="win32")if(w)f.unshift(n),f=xA(K.execArgv).concat(f),A=In.spawn(K.argv[0],f,{stdio:"inherit"});else A=In.spawn(n,f,{stdio:"inherit"});else this._checkForMissingExecutable(n,W,i._name),f.unshift(n),f=xA(K.execArgv).concat(f),A=In.spawn(K.execPath,f,{stdio:"inherit"});if(!A.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((k)=>{K.on(k,()=>{if(A.killed===!1&&A.exitCode===null)A.kill(k)})});let $=this._exitCallback;A.on("close",(I)=>{if(I=I??1,!$)K.exit(I);else $(new kn(I,"commander.executeSubCommandAsync","(close)"))}),A.on("error",(I)=>{if(I.code==="ENOENT")this._checkForMissingExecutable(n,W,i._name);else if(I.code==="EACCES")throw Error(`'${n}' not executable`);if(!$)K.exit(1);else{let k=new kn(1,"commander.executeSubCommandAsync","(error)");k.nestedError=I,$(k)}}),this.runningCommand=A}_dispatchSubcommand(i,f,w){let l=this._findCommand(i);if(!l)this.help({error:!0});l._prepareForParse();let t;return t=this._chainOrCallSubCommandHook(t,l,"preSubcommand"),t=this._chainOrCall(t,()=>{if(l._executableHandler)this._executeSubCommand(l,f.concat(w));else return l._parseCommand(f,w)}),t}_dispatchHelpCommand(i){if(!i)this.help();let f=this._findCommand(i);if(f&&!f._executableHandler)f.help();return this._dispatchSubcommand(i,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((i,f)=>{if(i.required&&this.args[f]==null)this.missingArgument(i.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let i=(w,l,t)=>{let n=l;if(l!==null&&w.parseArg){let W=`error: command-argument value '${l}' is invalid for argument '${w.name()}'.`;n=this._callParseArg(w,l,t,W)}return n};this._checkNumberOfArguments();let f=[];this.registeredArguments.forEach((w,l)=>{let t=w.defaultValue;if(w.variadic){if(l<this.args.length){if(t=this.args.slice(l),w.parseArg)t=t.reduce((n,W)=>{return i(w,W,n)},w.defaultValue)}else if(t===void 0)t=[]}else if(l<this.args.length){if(t=this.args[l],w.parseArg)t=i(w,t,w.defaultValue)}f[l]=t}),this.processedArgs=f}_chainOrCall(i,f){if(i?.then&&typeof i.then==="function")return i.then(()=>f());return f()}_chainOrCallHooks(i,f){let w=i,l=[];if(this._getCommandAndAncestors().reverse().filter((t)=>t._lifeCycleHooks[f]!==void 0).forEach((t)=>{t._lifeCycleHooks[f].forEach((n)=>{l.push({hookedCommand:t,callback:n})})}),f==="postAction")l.reverse();return l.forEach((t)=>{w=this._chainOrCall(w,()=>{return t.callback(t.hookedCommand,this)})}),w}_chainOrCallSubCommandHook(i,f,w){let l=i;if(this._lifeCycleHooks[w]!==void 0)this._lifeCycleHooks[w].forEach((t)=>{l=this._chainOrCall(l,()=>{return t(this,f)})});return l}_parseCommand(i,f){let w=this.parseOptions(f);if(this._parseOptionsEnv(),this._parseOptionsImplied(),i=i.concat(w.operands),f=w.unknown,this.args=i.concat(f),i&&this._findCommand(i[0]))return this._dispatchSubcommand(i[0],i.slice(1),f);if(this._getHelpCommand()&&i[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(i[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(f),this._dispatchSubcommand(this._defaultCommandName,i,f);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(w.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let l=()=>{if(w.unknown.length>0)this.unknownOption(w.unknown[0])},t=`command:${this.name()}`;if(this._actionHandler){l(),this._processArguments();let n;if(n=this._chainOrCallHooks(n,"preAction"),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent)n=this._chainOrCall(n,()=>{this.parent.emit(t,i,f)});return n=this._chainOrCallHooks(n,"postAction"),n}if(this.parent?.listenerCount(t))l(),this._processArguments(),this.parent.emit(t,i,f);else if(i.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",i,f);if(this.listenerCount("command:*"))this.emit("command:*",i,f);else if(this.commands.length)this.unknownCommand();else l(),this._processArguments()}else if(this.commands.length)l(),this.help({error:!0});else l(),this._processArguments()}_findCommand(i){if(!i)return;return this.commands.find((f)=>f._name===i||f._aliases.includes(i))}_findOption(i){return this.options.find((f)=>f.is(i))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((i)=>{i.options.forEach((f)=>{if(f.mandatory&&i.getOptionValue(f.attributeName())===void 0)i.missingMandatoryOptionValue(f)})})}_checkForConflictingLocalOptions(){let i=this.options.filter((w)=>{let l=w.attributeName();if(this.getOptionValue(l)===void 0)return!1;return this.getOptionValueSource(l)!=="default"});i.filter((w)=>w.conflictsWith.length>0).forEach((w)=>{let l=i.find((t)=>w.conflictsWith.includes(t.attributeName()));if(l)this._conflictingOption(w,l)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((i)=>{i._checkForConflictingLocalOptions()})}parseOptions(i){let f=[],w=[],l=f;function t(I){return I.length>1&&I[0]==="-"}let n=(I)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(I))return!1;return!this._getCommandAndAncestors().some((k)=>k.options.map((R)=>R.short).some((R)=>/^-\d$/.test(R)))},W=null,A=null,$=0;while($<i.length||A){let I=A??i[$++];if(A=null,I==="--"){if(l===w)l.push(I);l.push(...i.slice($));break}if(W&&(!t(I)||n(I))){this.emit(`option:${W.name()}`,I);continue}if(W=null,t(I)){let k=this._findOption(I);if(k){if(k.required){let R=i[$++];if(R===void 0)this.optionMissingArgument(k);this.emit(`option:${k.name()}`,R)}else if(k.optional){let R=null;if($<i.length&&(!t(i[$])||n(i[$])))R=i[$++];this.emit(`option:${k.name()}`,R)}else this.emit(`option:${k.name()}`);W=k.variadic?k:null;continue}}if(I.length>2&&I[0]==="-"&&I[1]!=="-"){let k=this._findOption(`-${I[1]}`);if(k){if(k.required||k.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${k.name()}`,I.slice(2));else this.emit(`option:${k.name()}`),A=`-${I.slice(2)}`;continue}}if(/^--[^=]+=/.test(I)){let k=I.indexOf("="),R=this._findOption(I.slice(0,k));if(R&&(R.required||R.optional)){this.emit(`option:${R.name()}`,I.slice(k+1));continue}}if(l===f&&t(I)&&!(this.commands.length===0&&n(I)))l=w;if((this._enablePositionalOptions||this._passThroughOptions)&&f.length===0&&w.length===0){if(this._findCommand(I)){f.push(I),w.push(...i.slice($));break}else if(this._getHelpCommand()&&I===this._getHelpCommand().name()){f.push(I,...i.slice($));break}else if(this._defaultCommandName){w.push(I,...i.slice($));break}}if(this._passThroughOptions){l.push(I,...i.slice($));break}l.push(I)}return{operands:f,unknown:w}}opts(){if(this._storeOptionsAsProperties){let i={},f=this.options.length;for(let w=0;w<f;w++){let l=this.options[w].attributeName();i[l]=l===this._versionOptionName?this._version:this[l]}return i}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((i,f)=>Object.assign(i,f.opts()),{})}error(i,f){if(this._outputConfiguration.outputError(`${i}
21
+ - ${n}`;throw Error(t)}_executeSubCommand(e,r){r=r.slice();let i=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function t(l,d){let c=Oe.resolve(l,d);if(_i.existsSync(c))return c;if(n.includes(Oe.extname(d)))return;let p=n.find((I)=>_i.existsSync(`${c}${I}`));if(p)return`${c}${p}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=e._executableFile||`${this._name}-${e._name}`,o=this._executableDir||"";if(this._scriptPath){let l;try{l=_i.realpathSync(this._scriptPath)}catch{l=this._scriptPath}o=Oe.resolve(Oe.dirname(l),o)}if(o){let l=t(o,a);if(!l&&!e._executableFile&&this._scriptPath){let d=Oe.basename(this._scriptPath,Oe.extname(this._scriptPath));if(d!==this._name)l=t(o,`${d}-${e._name}`)}a=l||a}i=n.includes(Oe.extname(a));let s;if(O.platform!=="win32")if(i)r.unshift(a),r=xo(O.execArgv).concat(r),s=Rt.spawn(O.argv[0],r,{stdio:"inherit"});else s=Rt.spawn(a,r,{stdio:"inherit"});else this._checkForMissingExecutable(a,o,e._name),r.unshift(a),r=xo(O.execArgv).concat(r),s=Rt.spawn(O.execPath,r,{stdio:"inherit"});if(!s.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((d)=>{O.on(d,()=>{if(s.killed===!1&&s.exitCode===null)s.kill(d)})});let u=this._exitCallback;s.on("close",(l)=>{if(l=l??1,!u)O.exit(l);else u(new Xt(l,"commander.executeSubCommandAsync","(close)"))}),s.on("error",(l)=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,o,e._name);else if(l.code==="EACCES")throw Error(`'${a}' not executable`);if(!u)O.exit(1);else{let d=new Xt(1,"commander.executeSubCommandAsync","(error)");d.nestedError=l,u(d)}}),this.runningCommand=s}_dispatchSubcommand(e,r,i){let n=this._findCommand(e);if(!n)this.help({error:!0});n._prepareForParse();let t;return t=this._chainOrCallSubCommandHook(t,n,"preSubcommand"),t=this._chainOrCall(t,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),t}_dispatchHelpCommand(e){if(!e)this.help();let r=this._findCommand(e);if(r&&!r._executableHandler)r.help();return this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((e,r)=>{if(e.required&&this.args[r]==null)this.missingArgument(e.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let e=(i,n,t)=>{let a=n;if(n!==null&&i.parseArg){let o=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;a=this._callParseArg(i,n,t,o)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let t=i.defaultValue;if(i.variadic){if(n<this.args.length){if(t=this.args.slice(n),i.parseArg)t=t.reduce((a,o)=>{return e(i,o,a)},i.defaultValue)}else if(t===void 0)t=[]}else if(n<this.args.length){if(t=this.args[n],i.parseArg)t=e(i,t,i.defaultValue)}r[n]=t}),this.processedArgs=r}_chainOrCall(e,r){if(e?.then&&typeof e.then==="function")return e.then(()=>r());return r()}_chainOrCallHooks(e,r){let i=e,n=[];if(this._getCommandAndAncestors().reverse().filter((t)=>t._lifeCycleHooks[r]!==void 0).forEach((t)=>{t._lifeCycleHooks[r].forEach((a)=>{n.push({hookedCommand:t,callback:a})})}),r==="postAction")n.reverse();return n.forEach((t)=>{i=this._chainOrCall(i,()=>{return t.callback(t.hookedCommand,this)})}),i}_chainOrCallSubCommandHook(e,r,i){let n=e;if(this._lifeCycleHooks[i]!==void 0)this._lifeCycleHooks[i].forEach((t)=>{n=this._chainOrCall(n,()=>{return t(this,r)})});return n}_parseCommand(e,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(i.operands),r=i.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,e,r);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{if(i.unknown.length>0)this.unknownOption(i.unknown[0])},t=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let a;if(a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent)a=this._chainOrCall(a,()=>{this.parent.emit(t,e,r)});return a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent?.listenerCount(t))n(),this._processArguments(),this.parent.emit(t,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);if(this.listenerCount("command:*"))this.emit("command:*",e,r);else if(this.commands.length)this.unknownCommand();else n(),this._processArguments()}else if(this.commands.length)n(),this.help({error:!0});else n(),this._processArguments()}_findCommand(e){if(!e)return;return this.commands.find((r)=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find((r)=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e)=>{e.options.forEach((r)=>{if(r.mandatory&&e.getOptionValue(r.attributeName())===void 0)e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter((i)=>{let n=i.attributeName();if(this.getOptionValue(n)===void 0)return!1;return this.getOptionValueSource(n)!=="default"});e.filter((i)=>i.conflictsWith.length>0).forEach((i)=>{let n=e.find((t)=>i.conflictsWith.includes(t.attributeName()));if(n)this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e)=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],i=[],n=r;function t(l){return l.length>1&&l[0]==="-"}let a=(l)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l))return!1;return!this._getCommandAndAncestors().some((d)=>d.options.map((c)=>c.short).some((c)=>/^-\d$/.test(c)))},o=null,s=null,u=0;while(u<e.length||s){let l=s??e[u++];if(s=null,l==="--"){if(n===i)n.push(l);n.push(...e.slice(u));break}if(o&&(!t(l)||a(l))){this.emit(`option:${o.name()}`,l);continue}if(o=null,t(l)){let d=this._findOption(l);if(d){if(d.required){let c=e[u++];if(c===void 0)this.optionMissingArgument(d);this.emit(`option:${d.name()}`,c)}else if(d.optional){let c=null;if(u<e.length&&(!t(e[u])||a(e[u])))c=e[u++];this.emit(`option:${d.name()}`,c)}else this.emit(`option:${d.name()}`);o=d.variadic?d:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let d=this._findOption(`-${l[1]}`);if(d){if(d.required||d.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${d.name()}`,l.slice(2));else this.emit(`option:${d.name()}`),s=`-${l.slice(2)}`;continue}}if(/^--[^=]+=/.test(l)){let d=l.indexOf("="),c=this._findOption(l.slice(0,d));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(d+1));continue}}if(n===r&&t(l)&&!(this.commands.length===0&&a(l)))n=i;if((this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(l)){r.push(l),i.push(...e.slice(u));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...e.slice(u));break}else if(this._defaultCommandName){i.push(l,...e.slice(u));break}}if(this._passThroughOptions){n.push(l,...e.slice(u));break}n.push(l)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){if(this._outputConfiguration.outputError(`${e}
22
22
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
23
23
  `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
24
- `),this.outputHelp({error:!0});let w=f||{},l=w.exitCode||1,t=w.code||"commander.error";this._exit(l,t,i)}_parseOptionsEnv(){this.options.forEach((i)=>{if(i.envVar&&i.envVar in K.env){let f=i.attributeName();if(this.getOptionValue(f)===void 0||["default","config","env"].includes(this.getOptionValueSource(f)))if(i.required||i.optional)this.emit(`optionEnv:${i.name()}`,K.env[i.envVar]);else this.emit(`optionEnv:${i.name()}`)}})}_parseOptionsImplied(){let i=new $S(this.options),f=(w)=>{return this.getOptionValue(w)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(w))};this.options.filter((w)=>w.implied!==void 0&&f(w.attributeName())&&i.valueFromOption(this.getOptionValue(w.attributeName()),w)).forEach((w)=>{Object.keys(w.implied).filter((l)=>!f(l)).forEach((l)=>{this.setOptionValueWithSource(l,w.implied[l],"implied")})})}missingArgument(i){let f=`error: missing required argument '${i}'`;this.error(f,{code:"commander.missingArgument"})}optionMissingArgument(i){let f=`error: option '${i.flags}' argument missing`;this.error(f,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(i){let f=`error: required option '${i.flags}' not specified`;this.error(f,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(i,f){let w=(n)=>{let W=n.attributeName(),A=this.getOptionValue(W),$=this.options.find((k)=>k.negate&&W===k.attributeName()),I=this.options.find((k)=>!k.negate&&W===k.attributeName());if($&&($.presetArg===void 0&&A===!1||$.presetArg!==void 0&&A===$.presetArg))return $;return I||n},l=(n)=>{let W=w(n),A=W.attributeName();if(this.getOptionValueSource(A)==="env")return`environment variable '${W.envVar}'`;return`option '${W.flags}'`},t=`error: ${l(i)} cannot be used with ${l(f)}`;this.error(t,{code:"commander.conflictingOption"})}unknownOption(i){if(this._allowUnknownOption)return;let f="";if(i.startsWith("--")&&this._showSuggestionAfterError){let l=[],t=this;do{let n=t.createHelp().visibleOptions(t).filter((W)=>W.long).map((W)=>W.long);l=l.concat(n),t=t.parent}while(t&&!t._enablePositionalOptions);f=hA(i,l)}let w=`error: unknown option '${i}'${f}`;this.error(w,{code:"commander.unknownOption"})}_excessArguments(i){if(this._allowExcessArguments)return;let f=this.registeredArguments.length,w=f===1?"":"s",t=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${f} argument${w} but got ${i.length}.`;this.error(t,{code:"commander.excessArguments"})}unknownCommand(){let i=this.args[0],f="";if(this._showSuggestionAfterError){let l=[];this.createHelp().visibleCommands(this).forEach((t)=>{if(l.push(t.name()),t.alias())l.push(t.alias())}),f=hA(i,l)}let w=`error: unknown command '${i}'${f}`;this.error(w,{code:"commander.unknownCommand"})}version(i,f,w){if(i===void 0)return this._version;this._version=i,f=f||"-V, --version",w=w||"output the version number";let l=this.createOption(f,w);return this._versionOptionName=l.attributeName(),this._registerOption(l),this.on("option:"+l.name(),()=>{this._outputConfiguration.writeOut(`${i}
25
- `),this._exit(0,"commander.version",i)}),this}description(i,f){if(i===void 0&&f===void 0)return this._description;if(this._description=i,f)this._argsDescription=f;return this}summary(i){if(i===void 0)return this._summary;return this._summary=i,this}alias(i){if(i===void 0)return this._aliases[0];let f=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)f=this.commands[this.commands.length-1];if(i===f._name)throw Error("Command alias can't be the same as its name");let w=this.parent?._findCommand(i);if(w){let l=[w.name()].concat(w.aliases()).join("|");throw Error(`cannot add alias '${i}' to command '${this.name()}' as already have command '${l}'`)}return f._aliases.push(i),this}aliases(i){if(i===void 0)return this._aliases;return i.forEach((f)=>this.alias(f)),this}usage(i){if(i===void 0){if(this._usage)return this._usage;let f=this.registeredArguments.map((w)=>{return AS(w)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?f:[]).join(" ")}return this._usage=i,this}name(i){if(i===void 0)return this._name;return this._name=i,this}helpGroup(i){if(i===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=i,this}commandsGroup(i){if(i===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=i,this}optionsGroup(i){if(i===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=i,this}_initOptionGroup(i){if(this._defaultOptionGroup&&!i.helpGroupHeading)i.helpGroup(this._defaultOptionGroup)}_initCommandGroup(i){if(this._defaultCommandGroup&&!i.helpGroup())i.helpGroup(this._defaultCommandGroup)}nameFromFilename(i){return this._name=wf.basename(i,wf.extname(i)),this}executableDir(i){if(i===void 0)return this._executableDir;return this._executableDir=i,this}helpInformation(i){let f=this.createHelp(),w=this._getOutputContext(i);f.prepareContext({error:w.error,helpWidth:w.helpWidth,outputHasColors:w.hasColors});let l=f.formatHelp(this,f);if(w.hasColors)return l;return this._outputConfiguration.stripColor(l)}_getOutputContext(i){i=i||{};let f=!!i.error,w,l,t;if(f)w=(W)=>this._outputConfiguration.writeErr(W),l=this._outputConfiguration.getErrHasColors(),t=this._outputConfiguration.getErrHelpWidth();else w=(W)=>this._outputConfiguration.writeOut(W),l=this._outputConfiguration.getOutHasColors(),t=this._outputConfiguration.getOutHelpWidth();return{error:f,write:(W)=>{if(!l)W=this._outputConfiguration.stripColor(W);return w(W)},hasColors:l,helpWidth:t}}outputHelp(i){let f;if(typeof i==="function")f=i,i=void 0;let w=this._getOutputContext(i),l={error:w.error,write:w.write,command:this};this._getCommandAndAncestors().reverse().forEach((n)=>n.emit("beforeAllHelp",l)),this.emit("beforeHelp",l);let t=this.helpInformation({error:w.error});if(f){if(t=f(t),typeof t!=="string"&&!Buffer.isBuffer(t))throw Error("outputHelp callback must return a string or a Buffer")}if(w.write(t),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",l),this._getCommandAndAncestors().forEach((n)=>n.emit("afterAllHelp",l))}helpOption(i,f){if(typeof i==="boolean"){if(i){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(i??"-h, --help",f??"display help for command"),i||f)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(i){return this._helpOption=i,this._initOptionGroup(i),this}help(i){this.outputHelp(i);let f=Number(K.exitCode??0);if(f===0&&i&&typeof i!=="function"&&i.error)f=1;this._exit(f,"commander.help","(outputHelp)")}addHelpText(i,f){let w=["beforeAll","before","after","afterAll"];if(!w.includes(i))throw Error(`Unexpected value for position to addHelpText.
26
- Expecting one of '${w.join("', '")}'`);let l=`${i}Help`;return this.on(l,(t)=>{let n;if(typeof f==="function")n=f({error:t.error,command:t.command});else n=f;if(n)t.write(`${n}
27
- `)}),this}_outputHelpIfRequested(i){let f=this._getHelpOption();if(f&&i.find((l)=>f.is(l)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function xA(i){return i.map((f)=>{if(!f.startsWith("--inspect"))return f;let w,l="127.0.0.1",t="9229",n;if((n=f.match(/^(--inspect(-brk)?)$/))!==null)w=n[1];else if((n=f.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(w=n[1],/^\d+$/.test(n[3]))t=n[3];else l=n[3];else if((n=f.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)w=n[1],l=n[3],t=n[4];if(w&&t!=="0")return`${w}=${l}:${parseInt(t)+1}`;return f})}function $n(){if(K.env.NO_COLOR||K.env.FORCE_COLOR==="0"||K.env.FORCE_COLOR==="false")return!1;if(K.env.FORCE_COLOR||K.env.CLICOLOR_FORCE!==void 0)return!0;return}RS.Command=Rn;RS.useColor=$n});var gA=N((zS)=>{var{Argument:aA}=Yl(),{Command:un}=OA(),{CommanderError:SS,InvalidArgumentError:mA}=rw(),{Help:LS}=Wn(),{Option:qA}=An();zS.program=new un;zS.createCommand=(i)=>new un(i);zS.createOption=(i,f)=>new qA(i,f);zS.createArgument=(i,f)=>new aA(i,f);zS.Command=un;zS.Option=qA;zS.Argument=aA;zS.Help=LS;zS.CommanderError=SS;zS.InvalidArgumentError=mA;zS.InvalidOptionArgumentError=mA});var qw=N((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.regexpCode=_I.getEsmExportName=_I.getProperty=_I.safeStringify=_I.stringify=_I.strConcat=_I.addCodeArg=_I.str=_I._=_I.nil=_I._Code=_I.Name=_I.IDENTIFIER=_I._CodeOrName=void 0;class nt{}_I._CodeOrName=nt;_I.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Ww extends nt{constructor(i){super();if(!_I.IDENTIFIER.test(i))throw Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}_I.Name=Ww;class xi extends nt{constructor(i){super();this._items=typeof i==="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((f,w)=>`${f}${w}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((f,w)=>{if(w instanceof Ww)f[w.str]=(f[w.str]||0)+1;return f},{})}}_I._Code=xi;_I.nil=new xi("");function gI(i,...f){let w=[i[0]],l=0;while(l<f.length)SW(w,f[l]),w.push(i[++l]);return new xi(w)}_I._=gI;var CW=new xi("+");function dI(i,...f){let w=[mw(i[0])],l=0;while(l<f.length)w.push(CW),SW(w,f[l]),w.push(CW,mw(i[++l]));return bz(w),new xi(w)}_I.str=dI;function SW(i,f){if(f instanceof xi)i.push(...f._items);else if(f instanceof Ww)i.push(f);else i.push(Jz(f))}_I.addCodeArg=SW;function bz(i){let f=1;while(f<i.length-1){if(i[f]===CW){let w=rz(i[f-1],i[f+1]);if(w!==void 0){i.splice(f-1,3,w);continue}i[f++]="+"}f++}}function rz(i,f){if(f==='""')return i;if(i==='""')return f;if(typeof i=="string"){if(f instanceof Ww||i[i.length-1]!=='"')return;if(typeof f!="string")return`${i.slice(0,-1)}${f}"`;if(f[0]==='"')return i.slice(0,-1)+f.slice(1);return}if(typeof f=="string"&&f[0]==='"'&&!(i instanceof Ww))return`"${i}${f.slice(1)}`;return}function Mz(i,f){return f.emptyStr()?i:i.emptyStr()?f:dI`${i}${f}`}_I.strConcat=Mz;function Jz(i){return typeof i=="number"||typeof i=="boolean"||i===null?i:mw(Array.isArray(i)?i.join(","):i)}function Uz(i){return new xi(mw(i))}_I.stringify=Uz;function mw(i){return JSON.stringify(i).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}_I.safeStringify=mw;function Yz(i){return typeof i=="string"&&_I.IDENTIFIER.test(i)?new xi(`.${i}`):gI`[${i}]`}_I.getProperty=Yz;function Fz(i){if(typeof i=="string"&&_I.IDENTIFIER.test(i))return new xi(`${i}`);throw Error(`CodeGen: invalid export name: ${i}, use explicit $id name mapping`)}_I.getEsmExportName=Fz;function Xz(i){return new xi(i.toString())}_I.regexpCode=Xz});var cW=N((ik)=>{Object.defineProperty(ik,"__esModule",{value:!0});ik.ValueScope=ik.ValueScopeName=ik.Scope=ik.varKinds=ik.UsedValueState=void 0;var yi=qw();class pI extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`);this.value=i.value}}var At;(function(i){i[i.Started=0]="Started",i[i.Completed=1]="Completed"})(At||(ik.UsedValueState=At={}));ik.varKinds={const:new yi.Name("const"),let:new yi.Name("let"),var:new yi.Name("var")};class zW{constructor({prefixes:i,parent:f}={}){this._names={},this._prefixes=i,this._parent=f}toName(i){return i instanceof yi.Name?i:this.name(i)}name(i){return new yi.Name(this._newName(i))}_newName(i){let f=this._names[i]||this._nameGroup(i);return`${i}${f.index++}`}_nameGroup(i){var f,w;if(((w=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||w===void 0?void 0:w.has(i))||this._prefixes&&!this._prefixes.has(i))throw Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}}ik.Scope=zW;class yW extends yi.Name{constructor(i,f){super(f);this.prefix=i}setValue(i,{property:f,itemIndex:w}){this.value=i,this.scopePath=yi._`.${new yi.Name(f)}[${w}]`}}ik.ValueScopeName=yW;var az=yi._`\n`;class eI extends zW{constructor(i){super(i);this._values={},this._scope=i.scope,this.opts={...i,_n:i.lines?az:yi.nil}}get(){return this._scope}name(i){return new yW(i,this._newName(i))}value(i,f){var w;if(f.ref===void 0)throw Error("CodeGen: ref must be passed in value");let l=this.toName(i),{prefix:t}=l,n=(w=f.key)!==null&&w!==void 0?w:f.ref,W=this._values[t];if(W){let I=W.get(n);if(I)return I}else W=this._values[t]=new Map;W.set(n,l);let A=this._scope[t]||(this._scope[t]=[]),$=A.length;return A[$]=f.ref,l.setValue(f,{property:t,itemIndex:$}),l}getValue(i,f){let w=this._values[i];if(!w)return;return w.get(f)}scopeRefs(i,f=this._values){return this._reduceValues(f,(w)=>{if(w.scopePath===void 0)throw Error(`CodeGen: name "${w}" has no value`);return yi._`${i}${w.scopePath}`})}scopeCode(i=this._values,f,w){return this._reduceValues(i,(l)=>{if(l.value===void 0)throw Error(`CodeGen: name "${l}" has no value`);return l.value.code},f,w)}_reduceValues(i,f,w={},l){let t=yi.nil;for(let n in i){let W=i[n];if(!W)continue;let A=w[n]=w[n]||new Map;W.forEach(($)=>{if(A.has($))return;A.set($,At.Started);let I=f($);if(I){let k=this.opts.es5?ik.varKinds.var:ik.varKinds.const;t=yi._`${t}${k} ${$} = ${I};${this.opts._n}`}else if(I=l===null||l===void 0?void 0:l($))t=yi._`${t}${I}${this.opts._n}`;else throw new pI($);A.set($,At.Completed)})}return t}}ik.ValueScope=eI});var Y=N((ci)=>{Object.defineProperty(ci,"__esModule",{value:!0});ci.or=ci.and=ci.not=ci.CodeGen=ci.operators=ci.varKinds=ci.ValueScopeName=ci.ValueScope=ci.Scope=ci.Name=ci.regexpCode=ci.stringify=ci.getProperty=ci.nil=ci.strConcat=ci.str=ci._=void 0;var F=qw(),Oi=cW(),yf=qw();Object.defineProperty(ci,"_",{enumerable:!0,get:function(){return yf._}});Object.defineProperty(ci,"str",{enumerable:!0,get:function(){return yf.str}});Object.defineProperty(ci,"strConcat",{enumerable:!0,get:function(){return yf.strConcat}});Object.defineProperty(ci,"nil",{enumerable:!0,get:function(){return yf.nil}});Object.defineProperty(ci,"getProperty",{enumerable:!0,get:function(){return yf.getProperty}});Object.defineProperty(ci,"stringify",{enumerable:!0,get:function(){return yf.stringify}});Object.defineProperty(ci,"regexpCode",{enumerable:!0,get:function(){return yf.regexpCode}});Object.defineProperty(ci,"Name",{enumerable:!0,get:function(){return yf.Name}});var Ct=cW();Object.defineProperty(ci,"Scope",{enumerable:!0,get:function(){return Ct.Scope}});Object.defineProperty(ci,"ValueScope",{enumerable:!0,get:function(){return Ct.ValueScope}});Object.defineProperty(ci,"ValueScopeName",{enumerable:!0,get:function(){return Ct.ValueScopeName}});Object.defineProperty(ci,"varKinds",{enumerable:!0,get:function(){return Ct.varKinds}});ci.operators={GT:new F._Code(">"),GTE:new F._Code(">="),LT:new F._Code("<"),LTE:new F._Code("<="),EQ:new F._Code("==="),NEQ:new F._Code("!=="),NOT:new F._Code("!"),OR:new F._Code("||"),AND:new F._Code("&&"),ADD:new F._Code("+")};class cf{optimizeNodes(){return this}optimizeNames(i,f){return this}}class wk extends cf{constructor(i,f,w){super();this.varKind=i,this.name=f,this.rhs=w}render({es5:i,_n:f}){let w=i?Oi.varKinds.var:this.varKind,l=this.rhs===void 0?"":` = ${this.rhs}`;return`${w} ${this.name}${l};`+f}optimizeNames(i,f){if(!i[this.name.str])return;if(this.rhs)this.rhs=Iw(this.rhs,i,f);return this}get names(){return this.rhs instanceof F._CodeOrName?this.rhs.names:{}}}class EW extends cf{constructor(i,f,w){super();this.lhs=i,this.rhs=f,this.sideEffects=w}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,f){if(this.lhs instanceof F.Name&&!i[this.lhs.str]&&!this.sideEffects)return;return this.rhs=Iw(this.rhs,i,f),this}get names(){let i=this.lhs instanceof F.Name?{}:{...this.lhs.names};return ut(i,this.rhs)}}class lk extends EW{constructor(i,f,w,l){super(i,w,l);this.op=f}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}}class tk extends cf{constructor(i){super();this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}}class nk extends cf{constructor(i){super();this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}}class Wk extends cf{constructor(i){super();this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}}class Ak extends cf{constructor(i){super();this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,f){return this.code=Iw(this.code,i,f),this}get names(){return this.code instanceof F._CodeOrName?this.code.names:{}}}class St extends cf{constructor(i=[]){super();this.nodes=i}render(i){return this.nodes.reduce((f,w)=>f+w.render(i),"")}optimizeNodes(){let{nodes:i}=this,f=i.length;while(f--){let w=i[f].optimizeNodes();if(Array.isArray(w))i.splice(f,1,...w);else if(w)i[f]=w;else i.splice(f,1)}return i.length>0?this:void 0}optimizeNames(i,f){let{nodes:w}=this,l=w.length;while(l--){let t=w[l];if(t.optimizeNames(i,f))continue;dz(i,t.names),w.splice(l,1)}return w.length>0?this:void 0}get names(){return this.nodes.reduce((i,f)=>Vf(i,f.names),{})}}class Tf extends St{render(i){return"{"+i._n+super.render(i)+"}"+i._n}}class Ik extends St{}class gw extends Tf{}gw.kind="else";class Af extends Tf{constructor(i,f){super(f);this.condition=i}render(i){let f=`if(${this.condition})`+super.render(i);if(this.else)f+="else "+this.else.render(i);return f}optimizeNodes(){super.optimizeNodes();let i=this.condition;if(i===!0)return this.nodes;let f=this.else;if(f){let w=f.optimizeNodes();f=this.else=Array.isArray(w)?new gw(w):w}if(f){if(i===!1)return f instanceof Af?f:f.nodes;if(this.nodes.length)return this;return new Af(Ck(i),f instanceof Af?[f]:f.nodes)}if(i===!1||!this.nodes.length)return;return this}optimizeNames(i,f){var w;if(this.else=(w=this.else)===null||w===void 0?void 0:w.optimizeNames(i,f),!(super.optimizeNames(i,f)||this.else))return;return this.condition=Iw(this.condition,i,f),this}get names(){let i=super.names;if(ut(i,this.condition),this.else)Vf(i,this.else.names);return i}}Af.kind="if";class Aw extends Tf{}Aw.kind="for";class kk extends Aw{constructor(i){super();this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,f){if(!super.optimizeNames(i,f))return;return this.iteration=Iw(this.iteration,i,f),this}get names(){return Vf(super.names,this.iteration.names)}}class $k extends Aw{constructor(i,f,w,l){super();this.varKind=i,this.name=f,this.from=w,this.to=l}render(i){let f=i.es5?Oi.varKinds.var:this.varKind,{name:w,from:l,to:t}=this;return`for(${f} ${w}=${l}; ${w}<${t}; ${w}++)`+super.render(i)}get names(){let i=ut(super.names,this.from);return ut(i,this.to)}}class TW extends Aw{constructor(i,f,w,l){super();this.loop=i,this.varKind=f,this.name=w,this.iterable=l}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,f){if(!super.optimizeNames(i,f))return;return this.iterable=Iw(this.iterable,i,f),this}get names(){return Vf(super.names,this.iterable.names)}}class It extends Tf{constructor(i,f,w){super();this.name=i,this.args=f,this.async=w}render(i){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(i)}}It.kind="func";class kt extends St{render(i){return"return "+super.render(i)}}kt.kind="return";class Rk extends Tf{render(i){let f="try"+super.render(i);if(this.catch)f+=this.catch.render(i);if(this.finally)f+=this.finally.render(i);return f}optimizeNodes(){var i,f;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(i,f){var w,l;return super.optimizeNames(i,f),(w=this.catch)===null||w===void 0||w.optimizeNames(i,f),(l=this.finally)===null||l===void 0||l.optimizeNames(i,f),this}get names(){let i=super.names;if(this.catch)Vf(i,this.catch.names);if(this.finally)Vf(i,this.finally.names);return i}}class $t extends Tf{constructor(i){super();this.error=i}render(i){return`catch(${this.error})`+super.render(i)}}$t.kind="catch";class Rt extends Tf{render(i){return"finally"+super.render(i)}}Rt.kind="finally";class uk{constructor(i,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
28
- `:""},this._extScope=i,this._scope=new Oi.Scope({parent:i}),this._nodes=[new Ik]}toString(){return this._root.render(this.opts)}name(i){return this._scope.name(i)}scopeName(i){return this._extScope.name(i)}scopeValue(i,f){let w=this._extScope.value(i,f);return(this._values[w.prefix]||(this._values[w.prefix]=new Set)).add(w),w}getScopeValue(i,f){return this._extScope.getValue(i,f)}scopeRefs(i){return this._extScope.scopeRefs(i,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(i,f,w,l){let t=this._scope.toName(f);if(w!==void 0&&l)this._constants[t.str]=w;return this._leafNode(new wk(i,t,w)),t}const(i,f,w){return this._def(Oi.varKinds.const,i,f,w)}let(i,f,w){return this._def(Oi.varKinds.let,i,f,w)}var(i,f,w){return this._def(Oi.varKinds.var,i,f,w)}assign(i,f,w){return this._leafNode(new EW(i,f,w))}add(i,f){return this._leafNode(new lk(i,ci.operators.ADD,f))}code(i){if(typeof i=="function")i();else if(i!==F.nil)this._leafNode(new Ak(i));return this}object(...i){let f=["{"];for(let[w,l]of i){if(f.length>1)f.push(",");if(f.push(w),w!==l||this.opts.es5)f.push(":"),(0,F.addCodeArg)(f,l)}return f.push("}"),new F._Code(f)}if(i,f,w){if(this._blockNode(new Af(i)),f&&w)this.code(f).else().code(w).endIf();else if(f)this.code(f).endIf();else if(w)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(i){return this._elseNode(new Af(i))}else(){return this._elseNode(new gw)}endIf(){return this._endBlockNode(Af,gw)}_for(i,f){if(this._blockNode(i),f)this.code(f).endFor();return this}for(i,f){return this._for(new kk(i),f)}forRange(i,f,w,l,t=this.opts.es5?Oi.varKinds.var:Oi.varKinds.let){let n=this._scope.toName(i);return this._for(new $k(t,n,f,w),()=>l(n))}forOf(i,f,w,l=Oi.varKinds.const){let t=this._scope.toName(i);if(this.opts.es5){let n=f instanceof F.Name?f:this.var("_arr",f);return this.forRange("_i",0,F._`${n}.length`,(W)=>{this.var(t,F._`${n}[${W}]`),w(t)})}return this._for(new TW("of",l,t,f),()=>w(t))}forIn(i,f,w,l=this.opts.es5?Oi.varKinds.var:Oi.varKinds.const){if(this.opts.ownProperties)return this.forOf(i,F._`Object.keys(${f})`,w);let t=this._scope.toName(i);return this._for(new TW("in",l,t,f),()=>w(t))}endFor(){return this._endBlockNode(Aw)}label(i){return this._leafNode(new tk(i))}break(i){return this._leafNode(new nk(i))}return(i){let f=new kt;if(this._blockNode(f),this.code(i),f.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(kt)}try(i,f,w){if(!f&&!w)throw Error('CodeGen: "try" without "catch" and "finally"');let l=new Rk;if(this._blockNode(l),this.code(i),f){let t=this.name("e");this._currNode=l.catch=new $t(t),f(t)}if(w)this._currNode=l.finally=new Rt,this.code(w);return this._endBlockNode($t,Rt)}throw(i){return this._leafNode(new Wk(i))}block(i,f){if(this._blockStarts.push(this._nodes.length),i)this.code(i).endBlock(f);return this}endBlock(i){let f=this._blockStarts.pop();if(f===void 0)throw Error("CodeGen: not in self-balancing block");let w=this._nodes.length-f;if(w<0||i!==void 0&&w!==i)throw Error(`CodeGen: wrong number of nodes: ${w} vs ${i} expected`);return this._nodes.length=f,this}func(i,f=F.nil,w,l){if(this._blockNode(new It(i,f,w)),l)this.code(l).endFunc();return this}endFunc(){return this._endBlockNode(It)}optimize(i=1){while(i-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(i){return this._currNode.nodes.push(i),this}_blockNode(i){this._currNode.nodes.push(i),this._nodes.push(i)}_endBlockNode(i,f){let w=this._currNode;if(w instanceof i||f&&w instanceof f)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${f?`${i.kind}/${f.kind}`:i.kind}"`)}_elseNode(i){let f=this._currNode;if(!(f instanceof Af))throw Error('CodeGen: "else" without "if"');return this._currNode=f.else=i,this}get _root(){return this._nodes[0]}get _currNode(){let i=this._nodes;return i[i.length-1]}set _currNode(i){let f=this._nodes;f[f.length-1]=i}}ci.CodeGen=uk;function Vf(i,f){for(let w in f)i[w]=(i[w]||0)+(f[w]||0);return i}function ut(i,f){return f instanceof F._CodeOrName?Vf(i,f.names):i}function Iw(i,f,w){if(i instanceof F.Name)return l(i);if(!t(i))return i;return new F._Code(i._items.reduce((n,W)=>{if(W instanceof F.Name)W=l(W);if(W instanceof F._Code)n.push(...W._items);else n.push(W);return n},[]));function l(n){let W=w[n.str];if(W===void 0||f[n.str]!==1)return n;return delete f[n.str],W}function t(n){return n instanceof F._Code&&n._items.some((W)=>W instanceof F.Name&&f[W.str]===1&&w[W.str]!==void 0)}}function dz(i,f){for(let w in f)i[w]=(i[w]||0)-(f[w]||0)}function Ck(i){return typeof i=="boolean"||typeof i=="number"||i===null?!i:F._`!${PW(i)}`}ci.not=Ck;var _z=Sk(ci.operators.AND);function sz(...i){return i.reduce(_z)}ci.and=sz;var pz=Sk(ci.operators.OR);function ez(...i){return i.reduce(pz)}ci.or=ez;function Sk(i){return(f,w)=>f===F.nil?w:w===F.nil?f:F._`${PW(f)} ${i} ${PW(w)}`}function PW(i){return i instanceof F.Name?i:F._`(${i})`}});var X=N((Nk)=>{Object.defineProperty(Nk,"__esModule",{value:!0});Nk.checkStrictMode=Nk.getErrorPath=Nk.Type=Nk.useFunc=Nk.setEvaluated=Nk.evaluatedPropsToName=Nk.mergeEvaluated=Nk.eachItem=Nk.unescapeJsonPointer=Nk.escapeJsonPointer=Nk.escapeFragment=Nk.unescapeFragment=Nk.schemaRefOrVal=Nk.schemaHasRulesButRef=Nk.schemaHasRules=Nk.checkUnknownRules=Nk.alwaysValidSchema=Nk.toHash=void 0;var x=Y(),ly=qw();function ty(i){let f={};for(let w of i)f[w]=!0;return f}Nk.toHash=ty;function ny(i,f){if(typeof f=="boolean")return f;if(Object.keys(f).length===0)return!0;return ck(i,f),!Tk(f,i.self.RULES.all)}Nk.alwaysValidSchema=ny;function ck(i,f=i.schema){let{opts:w,self:l}=i;if(!w.strictSchema)return;if(typeof f==="boolean")return;let t=l.RULES.keywords;for(let n in f)if(!t[n])ok(i,`unknown keyword: "${n}"`)}Nk.checkUnknownRules=ck;function Tk(i,f){if(typeof i=="boolean")return!i;for(let w in i)if(f[w])return!0;return!1}Nk.schemaHasRules=Tk;function Wy(i,f){if(typeof i=="boolean")return!i;for(let w in i)if(w!=="$ref"&&f.all[w])return!0;return!1}Nk.schemaHasRulesButRef=Wy;function Ay({topSchemaRef:i,schemaPath:f},w,l,t){if(!t){if(typeof w=="number"||typeof w=="boolean")return w;if(typeof w=="string")return x._`${w}`}return x._`${i}${f}${(0,x.getProperty)(l)}`}Nk.schemaRefOrVal=Ay;function Iy(i){return Pk(decodeURIComponent(i))}Nk.unescapeFragment=Iy;function ky(i){return encodeURIComponent(NW(i))}Nk.escapeFragment=ky;function NW(i){if(typeof i=="number")return`${i}`;return i.replace(/~/g,"~0").replace(/\//g,"~1")}Nk.escapeJsonPointer=NW;function Pk(i){return i.replace(/~1/g,"/").replace(/~0/g,"~")}Nk.unescapeJsonPointer=Pk;function $y(i,f){if(Array.isArray(i))for(let w of i)f(w);else f(i)}Nk.eachItem=$y;function zk({mergeNames:i,mergeToName:f,mergeValues:w,resultToName:l}){return(t,n,W,A)=>{let $=W===void 0?n:W instanceof x.Name?(n instanceof x.Name?i(t,n,W):f(t,n,W),W):n instanceof x.Name?(f(t,W,n),n):w(n,W);return A===x.Name&&!($ instanceof x.Name)?l(t,$):$}}Nk.mergeEvaluated={props:zk({mergeNames:(i,f,w)=>i.if(x._`${w} !== true && ${f} !== undefined`,()=>{i.if(x._`${f} === true`,()=>i.assign(w,!0),()=>i.assign(w,x._`${w} || {}`).code(x._`Object.assign(${w}, ${f})`))}),mergeToName:(i,f,w)=>i.if(x._`${w} !== true`,()=>{if(f===!0)i.assign(w,!0);else i.assign(w,x._`${w} || {}`),DW(i,w,f)}),mergeValues:(i,f)=>i===!0?!0:{...i,...f},resultToName:Ek}),items:zk({mergeNames:(i,f,w)=>i.if(x._`${w} !== true && ${f} !== undefined`,()=>i.assign(w,x._`${f} === true ? true : ${w} > ${f} ? ${w} : ${f}`)),mergeToName:(i,f,w)=>i.if(x._`${w} !== true`,()=>i.assign(w,f===!0?!0:x._`${w} > ${f} ? ${w} : ${f}`)),mergeValues:(i,f)=>i===!0?!0:Math.max(i,f),resultToName:(i,f)=>i.var("items",f)})};function Ek(i,f){if(f===!0)return i.var("props",!0);let w=i.var("props",x._`{}`);if(f!==void 0)DW(i,w,f);return w}Nk.evaluatedPropsToName=Ek;function DW(i,f,w){Object.keys(w).forEach((l)=>i.assign(x._`${f}${(0,x.getProperty)(l)}`,!0))}Nk.setEvaluated=DW;var yk={};function Ry(i,f){return i.scopeValue("func",{ref:f,code:yk[f.code]||(yk[f.code]=new ly._Code(f.code))})}Nk.useFunc=Ry;var oW;(function(i){i[i.Num=0]="Num",i[i.Str=1]="Str"})(oW||(Nk.Type=oW={}));function uy(i,f,w){if(i instanceof x.Name){let l=f===oW.Num;return w?l?x._`"[" + ${i} + "]"`:x._`"['" + ${i} + "']"`:l?x._`"/" + ${i}`:x._`"/" + ${i}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return w?(0,x.getProperty)(i).toString():"/"+NW(i)}Nk.getErrorPath=uy;function ok(i,f,w=i.opts.strictSchema){if(!w)return;if(f=`strict mode: ${f}`,w===!0)throw Error(f);i.self.logger.warn(f)}Nk.checkStrictMode=ok});var If=N((bk)=>{Object.defineProperty(bk,"__esModule",{value:!0});var ki=Y(),Yy={data:new ki.Name("data"),valCxt:new ki.Name("valCxt"),instancePath:new ki.Name("instancePath"),parentData:new ki.Name("parentData"),parentDataProperty:new ki.Name("parentDataProperty"),rootData:new ki.Name("rootData"),dynamicAnchors:new ki.Name("dynamicAnchors"),vErrors:new ki.Name("vErrors"),errors:new ki.Name("errors"),this:new ki.Name("this"),self:new ki.Name("self"),scope:new ki.Name("scope"),json:new ki.Name("json"),jsonPos:new ki.Name("jsonPos"),jsonLen:new ki.Name("jsonLen"),jsonPart:new ki.Name("jsonPart")};bk.default=Yy});var dw=N((Uk)=>{Object.defineProperty(Uk,"__esModule",{value:!0});Uk.extendErrors=Uk.resetErrorsCount=Uk.reportExtraError=Uk.reportError=Uk.keyword$DataError=Uk.keywordError=void 0;var G=Y(),zt=X(),Ci=If();Uk.keywordError={message:({keyword:i})=>G.str`must pass "${i}" keyword validation`};Uk.keyword$DataError={message:({keyword:i,schemaType:f})=>f?G.str`"${i}" keyword must be ${f} ($data)`:G.str`"${i}" keyword is invalid ($data)`};function Xy(i,f=Uk.keywordError,w,l){let{it:t}=i,{gen:n,compositeRule:W,allErrors:A}=t,$=Jk(i,f,w);if(l!==null&&l!==void 0?l:W||A)rk(n,$);else Mk(t,G._`[${$}]`)}Uk.reportError=Xy;function Gy(i,f=Uk.keywordError,w){let{it:l}=i,{gen:t,compositeRule:n,allErrors:W}=l,A=Jk(i,f,w);if(rk(t,A),!(n||W))Mk(l,Ci.default.vErrors)}Uk.reportExtraError=Gy;function Zy(i,f){i.assign(Ci.default.errors,f),i.if(G._`${Ci.default.vErrors} !== null`,()=>i.if(f,()=>i.assign(G._`${Ci.default.vErrors}.length`,f),()=>i.assign(Ci.default.vErrors,null)))}Uk.resetErrorsCount=Zy;function Ky({gen:i,keyword:f,schemaValue:w,data:l,errsCount:t,it:n}){if(t===void 0)throw Error("ajv implementation error");let W=i.name("err");i.forRange("i",t,Ci.default.errors,(A)=>{if(i.const(W,G._`${Ci.default.vErrors}[${A}]`),i.if(G._`${W}.instancePath === undefined`,()=>i.assign(G._`${W}.instancePath`,(0,G.strConcat)(Ci.default.instancePath,n.errorPath))),i.assign(G._`${W}.schemaPath`,G.str`${n.errSchemaPath}/${f}`),n.opts.verbose)i.assign(G._`${W}.schema`,w),i.assign(G._`${W}.data`,l)})}Uk.extendErrors=Ky;function rk(i,f){let w=i.const("err",f);i.if(G._`${Ci.default.vErrors} === null`,()=>i.assign(Ci.default.vErrors,G._`[${w}]`),G._`${Ci.default.vErrors}.push(${w})`),i.code(G._`${Ci.default.errors}++`)}function Mk(i,f){let{gen:w,validateName:l,schemaEnv:t}=i;if(t.$async)w.throw(G._`new ${i.ValidationError}(${f})`);else w.assign(G._`${l}.errors`,f),w.return(!1)}var Hf={keyword:new G.Name("keyword"),schemaPath:new G.Name("schemaPath"),params:new G.Name("params"),propertyName:new G.Name("propertyName"),message:new G.Name("message"),schema:new G.Name("schema"),parentSchema:new G.Name("parentSchema")};function Jk(i,f,w){let{createErrors:l}=i.it;if(l===!1)return G._`{}`;return Qy(i,f,w)}function Qy(i,f,w={}){let{gen:l,it:t}=i,n=[By(t,w),Vy(i,w)];return Hy(i,f,n),l.object(...n)}function By({errorPath:i},{instancePath:f}){let w=f?G.str`${i}${(0,zt.getErrorPath)(f,zt.Type.Str)}`:i;return[Ci.default.instancePath,(0,G.strConcat)(Ci.default.instancePath,w)]}function Vy({keyword:i,it:{errSchemaPath:f}},{schemaPath:w,parentSchema:l}){let t=l?f:G.str`${f}/${i}`;if(w)t=G.str`${t}${(0,zt.getErrorPath)(w,zt.Type.Str)}`;return[Hf.schemaPath,t]}function Hy(i,{params:f,message:w},l){let{keyword:t,data:n,schemaValue:W,it:A}=i,{opts:$,propertyName:I,topSchemaRef:k,schemaPath:R}=A;if(l.push([Hf.keyword,t],[Hf.params,typeof f=="function"?f(i):f||G._`{}`]),$.messages)l.push([Hf.message,typeof w=="function"?w(i):w]);if($.verbose)l.push([Hf.schema,W],[Hf.parentSchema,G._`${k}${R}`],[Ci.default.data,n]);if(I)l.push([Hf.propertyName,I])}});var Zk=N((Xk)=>{Object.defineProperty(Xk,"__esModule",{value:!0});Xk.boolOrEmptySchema=Xk.topBoolOrEmptySchema=void 0;var Oy=dw(),ay=Y(),my=If(),qy={message:"boolean schema is false"};function gy(i){let{gen:f,schema:w,validateName:l}=i;if(w===!1)Fk(i,!1);else if(typeof w=="object"&&w.$async===!0)f.return(my.default.data);else f.assign(ay._`${l}.errors`,null),f.return(!0)}Xk.topBoolOrEmptySchema=gy;function dy(i,f){let{gen:w,schema:l}=i;if(l===!1)w.var(f,!1),Fk(i);else w.var(f,!0)}Xk.boolOrEmptySchema=dy;function Fk(i,f){let{gen:w,data:l}=i,t={gen:w,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:i};(0,Oy.reportError)(t,qy,void 0,f)}});var rW=N((Kk)=>{Object.defineProperty(Kk,"__esModule",{value:!0});Kk.getRules=Kk.isJSONType=void 0;var sy=["string","number","integer","boolean","null","object","array"],py=new Set(sy);function ey(i){return typeof i=="string"&&py.has(i)}Kk.isJSONType=ey;function ic(){let i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}Kk.getRules=ic});var MW=N((Hk)=>{Object.defineProperty(Hk,"__esModule",{value:!0});Hk.shouldUseRule=Hk.shouldUseGroup=Hk.schemaHasRulesForType=void 0;function wc({schema:i,self:f},w){let l=f.RULES.types[w];return l&&l!==!0&&Bk(i,l)}Hk.schemaHasRulesForType=wc;function Bk(i,f){return f.rules.some((w)=>Vk(i,w))}Hk.shouldUseGroup=Bk;function Vk(i,f){var w;return i[f.keyword]!==void 0||((w=f.definition.implements)===null||w===void 0?void 0:w.some((l)=>i[l]!==void 0))}Hk.shouldUseRule=Vk});var _w=N((Ok)=>{Object.defineProperty(Ok,"__esModule",{value:!0});Ok.reportTypeError=Ok.checkDataTypes=Ok.checkDataType=Ok.coerceAndCheckDataType=Ok.getJSONTypes=Ok.getSchemaTypes=Ok.DataType=void 0;var nc=rW(),Wc=MW(),Ac=dw(),U=Y(),vk=X(),kw;(function(i){i[i.Correct=0]="Correct",i[i.Wrong=1]="Wrong"})(kw||(Ok.DataType=kw={}));function Ic(i){let f=hk(i.type);if(f.includes("null")){if(i.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!f.length&&i.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(i.nullable===!0)f.push("null")}return f}Ok.getSchemaTypes=Ic;function hk(i){let f=Array.isArray(i)?i:i?[i]:[];if(f.every(nc.isJSONType))return f;throw Error("type must be JSONType or JSONType[]: "+f.join(","))}Ok.getJSONTypes=hk;function kc(i,f){let{gen:w,data:l,opts:t}=i,n=$c(f,t.coerceTypes),W=f.length>0&&!(n.length===0&&f.length===1&&(0,Wc.schemaHasRulesForType)(i,f[0]));if(W){let A=UW(f,l,t.strictNumbers,kw.Wrong);w.if(A,()=>{if(n.length)Rc(i,f,n);else YW(i)})}return W}Ok.coerceAndCheckDataType=kc;var xk=new Set(["string","number","integer","boolean","null"]);function $c(i,f){return f?i.filter((w)=>xk.has(w)||f==="array"&&w==="array"):[]}function Rc(i,f,w){let{gen:l,data:t,opts:n}=i,W=l.let("dataType",U._`typeof ${t}`),A=l.let("coerced",U._`undefined`);if(n.coerceTypes==="array")l.if(U._`${W} == 'object' && Array.isArray(${t}) && ${t}.length == 1`,()=>l.assign(t,U._`${t}[0]`).assign(W,U._`typeof ${t}`).if(UW(f,t,n.strictNumbers),()=>l.assign(A,t)));l.if(U._`${A} !== undefined`);for(let I of w)if(xk.has(I)||I==="array"&&n.coerceTypes==="array")$(I);l.else(),YW(i),l.endIf(),l.if(U._`${A} !== undefined`,()=>{l.assign(t,A),uc(i,A)});function $(I){switch(I){case"string":l.elseIf(U._`${W} == "number" || ${W} == "boolean"`).assign(A,U._`"" + ${t}`).elseIf(U._`${t} === null`).assign(A,U._`""`);return;case"number":l.elseIf(U._`${W} == "boolean" || ${t} === null
29
- || (${W} == "string" && ${t} && ${t} == +${t})`).assign(A,U._`+${t}`);return;case"integer":l.elseIf(U._`${W} === "boolean" || ${t} === null
30
- || (${W} === "string" && ${t} && ${t} == +${t} && !(${t} % 1))`).assign(A,U._`+${t}`);return;case"boolean":l.elseIf(U._`${t} === "false" || ${t} === 0 || ${t} === null`).assign(A,!1).elseIf(U._`${t} === "true" || ${t} === 1`).assign(A,!0);return;case"null":l.elseIf(U._`${t} === "" || ${t} === 0 || ${t} === false`),l.assign(A,null);return;case"array":l.elseIf(U._`${W} === "string" || ${W} === "number"
31
- || ${W} === "boolean" || ${t} === null`).assign(A,U._`[${t}]`)}}}function uc({gen:i,parentData:f,parentDataProperty:w},l){i.if(U._`${f} !== undefined`,()=>i.assign(U._`${f}[${w}]`,l))}function JW(i,f,w,l=kw.Correct){let t=l===kw.Correct?U.operators.EQ:U.operators.NEQ,n;switch(i){case"null":return U._`${f} ${t} null`;case"array":n=U._`Array.isArray(${f})`;break;case"object":n=U._`${f} && typeof ${f} == "object" && !Array.isArray(${f})`;break;case"integer":n=W(U._`!(${f} % 1) && !isNaN(${f})`);break;case"number":n=W();break;default:return U._`typeof ${f} ${t} ${i}`}return l===kw.Correct?n:(0,U.not)(n);function W(A=U.nil){return(0,U.and)(U._`typeof ${f} == "number"`,A,w?U._`isFinite(${f})`:U.nil)}}Ok.checkDataType=JW;function UW(i,f,w,l){if(i.length===1)return JW(i[0],f,w,l);let t,n=(0,vk.toHash)(i);if(n.array&&n.object){let W=U._`typeof ${f} != "object"`;t=n.null?W:U._`!${f} || ${W}`,delete n.null,delete n.array,delete n.object}else t=U.nil;if(n.number)delete n.integer;for(let W in n)t=(0,U.and)(t,JW(W,f,w,l));return t}Ok.checkDataTypes=UW;var Cc={message:({schema:i})=>`must be ${i}`,params:({schema:i,schemaValue:f})=>typeof i=="string"?U._`{type: ${i}}`:U._`{type: ${f}}`};function YW(i){let f=Sc(i);(0,Ac.reportError)(f,Cc)}Ok.reportTypeError=YW;function Sc(i){let{gen:f,data:w,schema:l}=i,t=(0,vk.schemaRefOrVal)(i,l,"type");return{gen:f,keyword:"type",data:w,schema:l.type,schemaCode:t,schemaValue:t,parentSchema:l,params:{},it:i}}});var dk=N((qk)=>{Object.defineProperty(qk,"__esModule",{value:!0});qk.assignDefaults=void 0;var $w=Y(),Ec=X();function oc(i,f){let{properties:w,items:l}=i.schema;if(f==="object"&&w)for(let t in w)mk(i,t,w[t].default);else if(f==="array"&&Array.isArray(l))l.forEach((t,n)=>mk(i,n,t.default))}qk.assignDefaults=oc;function mk(i,f,w){let{gen:l,compositeRule:t,data:n,opts:W}=i;if(w===void 0)return;let A=$w._`${n}${(0,$w.getProperty)(f)}`;if(t){(0,Ec.checkStrictMode)(i,`default is ignored for: ${A}`);return}let $=$w._`${A} === undefined`;if(W.useDefaults==="empty")$=$w._`${$} || ${A} === null || ${A} === ""`;l.if($,$w._`${A} = ${(0,$w.stringify)(w)}`)}});var Yi=N((pk)=>{Object.defineProperty(pk,"__esModule",{value:!0});pk.validateUnion=pk.validateArray=pk.usePattern=pk.callValidateCode=pk.schemaProperties=pk.allSchemaProperties=pk.noPropertyInData=pk.propertyInData=pk.isOwnProperty=pk.hasPropFunc=pk.reportMissingProp=pk.checkMissingProp=pk.checkReportMissingProp=void 0;var _=Y(),FW=X(),Pf=If(),Nc=X();function Dc(i,f){let{gen:w,data:l,it:t}=i;w.if(GW(w,l,f,t.opts.ownProperties),()=>{i.setParams({missingProperty:_._`${f}`},!0),i.error()})}pk.checkReportMissingProp=Dc;function bc({gen:i,data:f,it:{opts:w}},l,t){return(0,_.or)(...l.map((n)=>(0,_.and)(GW(i,f,n,w.ownProperties),_._`${t} = ${n}`)))}pk.checkMissingProp=bc;function rc(i,f){i.setParams({missingProperty:f},!0),i.error()}pk.reportMissingProp=rc;function _k(i){return i.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:_._`Object.prototype.hasOwnProperty`})}pk.hasPropFunc=_k;function XW(i,f,w){return _._`${_k(i)}.call(${f}, ${w})`}pk.isOwnProperty=XW;function Mc(i,f,w,l){let t=_._`${f}${(0,_.getProperty)(w)} !== undefined`;return l?_._`${t} && ${XW(i,f,w)}`:t}pk.propertyInData=Mc;function GW(i,f,w,l){let t=_._`${f}${(0,_.getProperty)(w)} === undefined`;return l?(0,_.or)(t,(0,_.not)(XW(i,f,w))):t}pk.noPropertyInData=GW;function sk(i){return i?Object.keys(i).filter((f)=>f!=="__proto__"):[]}pk.allSchemaProperties=sk;function Jc(i,f){return sk(f).filter((w)=>!(0,FW.alwaysValidSchema)(i,f[w]))}pk.schemaProperties=Jc;function Uc({schemaCode:i,data:f,it:{gen:w,topSchemaRef:l,schemaPath:t,errorPath:n},it:W},A,$,I){let k=I?_._`${i}, ${f}, ${l}${t}`:f,R=[[Pf.default.instancePath,(0,_.strConcat)(Pf.default.instancePath,n)],[Pf.default.parentData,W.parentData],[Pf.default.parentDataProperty,W.parentDataProperty],[Pf.default.rootData,Pf.default.rootData]];if(W.opts.dynamicRef)R.push([Pf.default.dynamicAnchors,Pf.default.dynamicAnchors]);let C=_._`${k}, ${w.object(...R)}`;return $!==_.nil?_._`${A}.call(${$}, ${C})`:_._`${A}(${C})`}pk.callValidateCode=Uc;var Yc=_._`new RegExp`;function Fc({gen:i,it:{opts:f}},w){let l=f.unicodeRegExp?"u":"",{regExp:t}=f.code,n=t(w,l);return i.scopeValue("pattern",{key:n.toString(),ref:n,code:_._`${t.code==="new RegExp"?Yc:(0,Nc.useFunc)(i,t)}(${w}, ${l})`})}pk.usePattern=Fc;function Xc(i){let{gen:f,data:w,keyword:l,it:t}=i,n=f.name("valid");if(t.allErrors){let A=f.let("valid",!0);return W(()=>f.assign(A,!1)),A}return f.var(n,!0),W(()=>f.break()),n;function W(A){let $=f.const("len",_._`${w}.length`);f.forRange("i",0,$,(I)=>{i.subschema({keyword:l,dataProp:I,dataPropType:FW.Type.Num},n),f.if((0,_.not)(n),A)})}}pk.validateArray=Xc;function Gc(i){let{gen:f,schema:w,keyword:l,it:t}=i;if(!Array.isArray(w))throw Error("ajv implementation error");if(w.some(($)=>(0,FW.alwaysValidSchema)(t,$))&&!t.opts.unevaluated)return;let W=f.let("valid",!1),A=f.name("_valid");f.block(()=>w.forEach(($,I)=>{let k=i.subschema({keyword:l,schemaProp:I,compositeRule:!0},A);if(f.assign(W,_._`${W} || ${A}`),!i.mergeValidEvaluated(k,A))f.if((0,_.not)(W))})),i.result(W,()=>i.reset(),()=>i.error(!0))}pk.validateUnion=Gc});var t$=N((w$)=>{Object.defineProperty(w$,"__esModule",{value:!0});w$.validateKeywordUsage=w$.validSchemaType=w$.funcKeywordCode=w$.macroKeywordCode=void 0;var Si=Y(),jf=If(),mc=Yi(),qc=dw();function gc(i,f){let{gen:w,keyword:l,schema:t,parentSchema:n,it:W}=i,A=f.macro.call(W.self,t,n,W),$=f$(w,l,A);if(W.opts.validateSchema!==!1)W.self.validateSchema(A,!0);let I=w.name("valid");i.subschema({schema:A,schemaPath:Si.nil,errSchemaPath:`${W.errSchemaPath}/${l}`,topSchemaRef:$,compositeRule:!0},I),i.pass(I,()=>i.error(!0))}w$.macroKeywordCode=gc;function dc(i,f){var w;let{gen:l,keyword:t,schema:n,parentSchema:W,$data:A,it:$}=i;sc($,f);let I=!A&&f.compile?f.compile.call($.self,n,W,$):f.validate,k=f$(l,t,I),R=l.let("valid");i.block$data(R,C),i.ok((w=f.valid)!==null&&w!==void 0?w:R);function C(){if(f.errors===!1){if(y(),f.modifying)i$(i);T(()=>i.error())}else{let u=f.async?L():z();if(f.modifying)i$(i);T(()=>_c(i,u))}}function L(){let u=l.let("ruleErrs",null);return l.try(()=>y(Si._`await `),(S)=>l.assign(R,!1).if(Si._`${S} instanceof ${$.ValidationError}`,()=>l.assign(u,Si._`${S}.errors`),()=>l.throw(S))),u}function z(){let u=Si._`${k}.errors`;return l.assign(u,null),y(Si.nil),u}function y(u=f.async?Si._`await `:Si.nil){let S=$.opts.passContext?jf.default.this:jf.default.self,c=!(("compile"in f)&&!A||f.schema===!1);l.assign(R,Si._`${u}${(0,mc.callValidateCode)(i,k,S,c)}`,f.modifying)}function T(u){var S;l.if((0,Si.not)((S=f.valid)!==null&&S!==void 0?S:R),u)}}w$.funcKeywordCode=dc;function i$(i){let{gen:f,data:w,it:l}=i;f.if(l.parentData,()=>f.assign(w,Si._`${l.parentData}[${l.parentDataProperty}]`))}function _c(i,f){let{gen:w}=i;w.if(Si._`Array.isArray(${f})`,()=>{w.assign(jf.default.vErrors,Si._`${jf.default.vErrors} === null ? ${f} : ${jf.default.vErrors}.concat(${f})`).assign(jf.default.errors,Si._`${jf.default.vErrors}.length`),(0,qc.extendErrors)(i)},()=>i.error())}function sc({schemaEnv:i},f){if(f.async&&!i.$async)throw Error("async keyword in sync schema")}function f$(i,f,w){if(w===void 0)throw Error(`keyword "${f}" failed to compile`);return i.scopeValue("keyword",typeof w=="function"?{ref:w}:{ref:w,code:(0,Si.stringify)(w)})}function pc(i,f,w=!1){return!f.length||f.some((l)=>l==="array"?Array.isArray(i):l==="object"?i&&typeof i=="object"&&!Array.isArray(i):typeof i==l||w&&typeof i>"u")}w$.validSchemaType=pc;function ec({schema:i,opts:f,self:w,errSchemaPath:l},t,n){if(Array.isArray(t.keyword)?!t.keyword.includes(n):t.keyword!==n)throw Error("ajv implementation error");let W=t.dependencies;if(W===null||W===void 0?void 0:W.some((A)=>!Object.prototype.hasOwnProperty.call(i,A)))throw Error(`parent schema must have dependencies of ${n}: ${W.join(",")}`);if(t.validateSchema){if(!t.validateSchema(i[n])){let $=`keyword "${n}" value is invalid at path "${l}": `+w.errorsText(t.validateSchema.errors);if(f.validateSchema==="log")w.logger.error($);else throw Error($)}}}w$.validateKeywordUsage=ec});var I$=N((W$)=>{Object.defineProperty(W$,"__esModule",{value:!0});W$.extendSubschemaMode=W$.extendSubschemaData=W$.getSubschema=void 0;var si=Y(),n$=X();function lT(i,{keyword:f,schemaProp:w,schema:l,schemaPath:t,errSchemaPath:n,topSchemaRef:W}){if(f!==void 0&&l!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(f!==void 0){let A=i.schema[f];return w===void 0?{schema:A,schemaPath:si._`${i.schemaPath}${(0,si.getProperty)(f)}`,errSchemaPath:`${i.errSchemaPath}/${f}`}:{schema:A[w],schemaPath:si._`${i.schemaPath}${(0,si.getProperty)(f)}${(0,si.getProperty)(w)}`,errSchemaPath:`${i.errSchemaPath}/${f}/${(0,n$.escapeFragment)(w)}`}}if(l!==void 0){if(t===void 0||n===void 0||W===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:t,topSchemaRef:W,errSchemaPath:n}}throw Error('either "keyword" or "schema" must be passed')}W$.getSubschema=lT;function tT(i,f,{dataProp:w,dataPropType:l,data:t,dataTypes:n,propertyName:W}){if(t!==void 0&&w!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:A}=f;if(w!==void 0){let{errorPath:I,dataPathArr:k,opts:R}=f,C=A.let("data",si._`${f.data}${(0,si.getProperty)(w)}`,!0);$(C),i.errorPath=si.str`${I}${(0,n$.getErrorPath)(w,l,R.jsPropertySyntax)}`,i.parentDataProperty=si._`${w}`,i.dataPathArr=[...k,i.parentDataProperty]}if(t!==void 0){let I=t instanceof si.Name?t:A.let("data",t,!0);if($(I),W!==void 0)i.propertyName=W}if(n)i.dataTypes=n;function $(I){i.data=I,i.dataLevel=f.dataLevel+1,i.dataTypes=[],f.definedProperties=new Set,i.parentData=f.data,i.dataNames=[...f.dataNames,I]}}W$.extendSubschemaData=tT;function nT(i,{jtdDiscriminator:f,jtdMetadata:w,compositeRule:l,createErrors:t,allErrors:n}){if(l!==void 0)i.compositeRule=l;if(t!==void 0)i.createErrors=t;if(n!==void 0)i.allErrors=n;i.jtdDiscriminator=f,i.jtdMetadata=w}W$.extendSubschemaMode=nT});var ZW=N((Z4,k$)=>{k$.exports=function i(f,w){if(f===w)return!0;if(f&&w&&typeof f=="object"&&typeof w=="object"){if(f.constructor!==w.constructor)return!1;var l,t,n;if(Array.isArray(f)){if(l=f.length,l!=w.length)return!1;for(t=l;t--!==0;)if(!i(f[t],w[t]))return!1;return!0}if(f.constructor===RegExp)return f.source===w.source&&f.flags===w.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===w.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===w.toString();if(n=Object.keys(f),l=n.length,l!==Object.keys(w).length)return!1;for(t=l;t--!==0;)if(!Object.prototype.hasOwnProperty.call(w,n[t]))return!1;for(t=l;t--!==0;){var W=n[t];if(!i(f[W],w[W]))return!1}return!0}return f!==f&&w!==w}});var R$=N((K4,$$)=>{var Ef=$$.exports=function(i,f,w){if(typeof f=="function")w=f,f={};w=f.cb||w;var l=typeof w=="function"?w:w.pre||function(){},t=w.post||function(){};yt(f,l,t,i,"",i)};Ef.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ef.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ef.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ef.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function yt(i,f,w,l,t,n,W,A,$,I){if(l&&typeof l=="object"&&!Array.isArray(l)){f(l,t,n,W,A,$,I);for(var k in l){var R=l[k];if(Array.isArray(R)){if(k in Ef.arrayKeywords)for(var C=0;C<R.length;C++)yt(i,f,w,R[C],t+"/"+k+"/"+C,n,t,k,l,C)}else if(k in Ef.propsKeywords){if(R&&typeof R=="object")for(var L in R)yt(i,f,w,R[L],t+"/"+k+"/"+IT(L),n,t,k,l,L)}else if(k in Ef.keywords||i.allKeys&&!(k in Ef.skipKeywords))yt(i,f,w,R,t+"/"+k,n,t,k,l)}w(l,t,n,W,A,$,I)}}function IT(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}});var sw=N((L$)=>{Object.defineProperty(L$,"__esModule",{value:!0});L$.getSchemaRefs=L$.resolveUrl=L$.normalizeId=L$._getFullPath=L$.getFullPath=L$.inlineRef=void 0;var kT=X(),$T=ZW(),RT=R$(),uT=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function CT(i,f=!0){if(typeof i=="boolean")return!0;if(f===!0)return!KW(i);if(!f)return!1;return u$(i)<=f}L$.inlineRef=CT;var ST=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function KW(i){for(let f in i){if(ST.has(f))return!0;let w=i[f];if(Array.isArray(w)&&w.some(KW))return!0;if(typeof w=="object"&&KW(w))return!0}return!1}function u$(i){let f=0;for(let w in i){if(w==="$ref")return 1/0;if(f++,uT.has(w))continue;if(typeof i[w]=="object")(0,kT.eachItem)(i[w],(l)=>f+=u$(l));if(f===1/0)return 1/0}return f}function C$(i,f="",w){if(w!==!1)f=Rw(f);let l=i.parse(f);return S$(i,l)}L$.getFullPath=C$;function S$(i,f){return i.serialize(f).split("#")[0]+"#"}L$._getFullPath=S$;var LT=/#\/?$/;function Rw(i){return i?i.replace(LT,""):""}L$.normalizeId=Rw;function zT(i,f,w){return w=Rw(w),i.resolve(f,w)}L$.resolveUrl=zT;var yT=/^[a-z_][-a-z0-9._]*$/i;function cT(i,f){if(typeof i=="boolean")return{};let{schemaId:w,uriResolver:l}=this.opts,t=Rw(i[w]||f),n={"":t},W=C$(l,t,!1),A={},$=new Set;return RT(i,{allKeys:!0},(R,C,L,z)=>{if(z===void 0)return;let y=W+C,T=n[z];if(typeof R[w]=="string")T=u.call(this,R[w]);S.call(this,R.$anchor),S.call(this,R.$dynamicAnchor),n[C]=T;function u(c){let P=this.opts.uriResolver.resolve;if(c=Rw(T?P(T,c):c),$.has(c))throw k(c);$.add(c);let E=this.refs[c];if(typeof E=="string")E=this.refs[E];if(typeof E=="object")I(R,E.schema,c);else if(c!==Rw(y))if(c[0]==="#")I(R,A[c],c),A[c]=R;else this.refs[c]=y;return c}function S(c){if(typeof c=="string"){if(!yT.test(c))throw Error(`invalid anchor "${c}"`);u.call(this,`#${c}`)}}}),A;function I(R,C,L){if(C!==void 0&&!$T(R,C))throw k(L)}function k(R){return Error(`reference "${R}" resolves to more than one schema`)}}L$.getSchemaRefs=cT});var il=N((F$)=>{Object.defineProperty(F$,"__esModule",{value:!0});F$.getData=F$.KeywordCxt=F$.validateFunctionCode=void 0;var E$=Zk(),y$=_w(),BW=MW(),ct=_w(),DT=dk(),ew=t$(),QW=I$(),b=Y(),J=If(),bT=sw(),kf=X(),pw=dw();function rT(i){if(D$(i)){if(b$(i),N$(i)){UT(i);return}}o$(i,()=>(0,E$.topBoolOrEmptySchema)(i))}F$.validateFunctionCode=rT;function o$({gen:i,validateName:f,schema:w,schemaEnv:l,opts:t},n){if(t.code.es5)i.func(f,b._`${J.default.data}, ${J.default.valCxt}`,l.$async,()=>{i.code(b._`"use strict"; ${c$(w,t)}`),JT(i,t),i.code(n)});else i.func(f,b._`${J.default.data}, ${MT(t)}`,l.$async,()=>i.code(c$(w,t)).code(n))}function MT(i){return b._`{${J.default.instancePath}="", ${J.default.parentData}, ${J.default.parentDataProperty}, ${J.default.rootData}=${J.default.data}${i.dynamicRef?b._`, ${J.default.dynamicAnchors}={}`:b.nil}}={}`}function JT(i,f){i.if(J.default.valCxt,()=>{if(i.var(J.default.instancePath,b._`${J.default.valCxt}.${J.default.instancePath}`),i.var(J.default.parentData,b._`${J.default.valCxt}.${J.default.parentData}`),i.var(J.default.parentDataProperty,b._`${J.default.valCxt}.${J.default.parentDataProperty}`),i.var(J.default.rootData,b._`${J.default.valCxt}.${J.default.rootData}`),f.dynamicRef)i.var(J.default.dynamicAnchors,b._`${J.default.valCxt}.${J.default.dynamicAnchors}`)},()=>{if(i.var(J.default.instancePath,b._`""`),i.var(J.default.parentData,b._`undefined`),i.var(J.default.parentDataProperty,b._`undefined`),i.var(J.default.rootData,J.default.data),f.dynamicRef)i.var(J.default.dynamicAnchors,b._`{}`)})}function UT(i){let{schema:f,opts:w,gen:l}=i;o$(i,()=>{if(w.$comment&&f.$comment)M$(i);if(ZT(i),l.let(J.default.vErrors,null),l.let(J.default.errors,0),w.unevaluated)YT(i);r$(i),BT(i)});return}function YT(i){let{gen:f,validateName:w}=i;i.evaluated=f.const("evaluated",b._`${w}.evaluated`),f.if(b._`${i.evaluated}.dynamicProps`,()=>f.assign(b._`${i.evaluated}.props`,b._`undefined`)),f.if(b._`${i.evaluated}.dynamicItems`,()=>f.assign(b._`${i.evaluated}.items`,b._`undefined`))}function c$(i,f){let w=typeof i=="object"&&i[f.schemaId];return w&&(f.code.source||f.code.process)?b._`/*# sourceURL=${w} */`:b.nil}function FT(i,f){if(D$(i)){if(b$(i),N$(i)){XT(i,f);return}}(0,E$.boolOrEmptySchema)(i,f)}function N$({schema:i,self:f}){if(typeof i=="boolean")return!i;for(let w in i)if(f.RULES.all[w])return!0;return!1}function D$(i){return typeof i.schema!="boolean"}function XT(i,f){let{schema:w,gen:l,opts:t}=i;if(t.$comment&&w.$comment)M$(i);KT(i),QT(i);let n=l.const("_errs",J.default.errors);r$(i,n),l.var(f,b._`${n} === ${J.default.errors}`)}function b$(i){(0,kf.checkUnknownRules)(i),GT(i)}function r$(i,f){if(i.opts.jtd)return T$(i,[],!1,f);let w=(0,y$.getSchemaTypes)(i.schema),l=(0,y$.coerceAndCheckDataType)(i,w);T$(i,w,!l,f)}function GT(i){let{schema:f,errSchemaPath:w,opts:l,self:t}=i;if(f.$ref&&l.ignoreKeywordsWithRef&&(0,kf.schemaHasRulesButRef)(f,t.RULES))t.logger.warn(`$ref: keywords ignored in schema at path "${w}"`)}function ZT(i){let{schema:f,opts:w}=i;if(f.default!==void 0&&w.useDefaults&&w.strictSchema)(0,kf.checkStrictMode)(i,"default is ignored in the schema root")}function KT(i){let f=i.schema[i.opts.schemaId];if(f)i.baseId=(0,bT.resolveUrl)(i.opts.uriResolver,i.baseId,f)}function QT(i){if(i.schema.$async&&!i.schemaEnv.$async)throw Error("async schema in sync schema")}function M$({gen:i,schemaEnv:f,schema:w,errSchemaPath:l,opts:t}){let n=w.$comment;if(t.$comment===!0)i.code(b._`${J.default.self}.logger.log(${n})`);else if(typeof t.$comment=="function"){let W=b.str`${l}/$comment`,A=i.scopeValue("root",{ref:f.root});i.code(b._`${J.default.self}.opts.$comment(${n}, ${W}, ${A}.schema)`)}}function BT(i){let{gen:f,schemaEnv:w,validateName:l,ValidationError:t,opts:n}=i;if(w.$async)f.if(b._`${J.default.errors} === 0`,()=>f.return(J.default.data),()=>f.throw(b._`new ${t}(${J.default.vErrors})`));else{if(f.assign(b._`${l}.errors`,J.default.vErrors),n.unevaluated)VT(i);f.return(b._`${J.default.errors} === 0`)}}function VT({gen:i,evaluated:f,props:w,items:l}){if(w instanceof b.Name)i.assign(b._`${f}.props`,w);if(l instanceof b.Name)i.assign(b._`${f}.items`,l)}function T$(i,f,w,l){let{gen:t,schema:n,data:W,allErrors:A,opts:$,self:I}=i,{RULES:k}=I;if(n.$ref&&($.ignoreKeywordsWithRef||!(0,kf.schemaHasRulesButRef)(n,k))){t.block(()=>U$(i,"$ref",k.all.$ref.definition));return}if(!$.jtd)HT(i,f);t.block(()=>{for(let C of k.rules)R(C);R(k.post)});function R(C){if(!(0,BW.shouldUseGroup)(n,C))return;if(C.type){if(t.if((0,ct.checkDataType)(C.type,W,$.strictNumbers)),P$(i,C),f.length===1&&f[0]===C.type&&w)t.else(),(0,ct.reportTypeError)(i);t.endIf()}else P$(i,C);if(!A)t.if(b._`${J.default.errors} === ${l||0}`)}}function P$(i,f){let{gen:w,schema:l,opts:{useDefaults:t}}=i;if(t)(0,DT.assignDefaults)(i,f.type);w.block(()=>{for(let n of f.rules)if((0,BW.shouldUseRule)(l,n))U$(i,n.keyword,n.definition,f.type)})}function HT(i,f){if(i.schemaEnv.meta||!i.opts.strictTypes)return;if(jT(i,f),!i.opts.allowUnionTypes)vT(i,f);hT(i,i.dataTypes)}function jT(i,f){if(!f.length)return;if(!i.dataTypes.length){i.dataTypes=f;return}f.forEach((w)=>{if(!J$(i.dataTypes,w))VW(i,`type "${w}" not allowed by context "${i.dataTypes.join(",")}"`)}),OT(i,f)}function vT(i,f){if(f.length>1&&!(f.length===2&&f.includes("null")))VW(i,"use allowUnionTypes to allow union type keyword")}function hT(i,f){let w=i.self.RULES.all;for(let l in w){let t=w[l];if(typeof t=="object"&&(0,BW.shouldUseRule)(i.schema,t)){let{type:n}=t.definition;if(n.length&&!n.some((W)=>xT(f,W)))VW(i,`missing type "${n.join(",")}" for keyword "${l}"`)}}}function xT(i,f){return i.includes(f)||f==="number"&&i.includes("integer")}function J$(i,f){return i.includes(f)||f==="integer"&&i.includes("number")}function OT(i,f){let w=[];for(let l of i.dataTypes)if(J$(f,l))w.push(l);else if(f.includes("integer")&&l==="number")w.push("integer");i.dataTypes=w}function VW(i,f){let w=i.schemaEnv.baseId+i.errSchemaPath;f+=` at "${w}" (strictTypes)`,(0,kf.checkStrictMode)(i,f,i.opts.strictTypes)}class HW{constructor(i,f,w){if((0,ew.validateKeywordUsage)(i,f,w),this.gen=i.gen,this.allErrors=i.allErrors,this.keyword=w,this.data=i.data,this.schema=i.schema[w],this.$data=f.$data&&i.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,kf.schemaRefOrVal)(i,this.schema,w,this.$data),this.schemaType=f.schemaType,this.parentSchema=i.schema,this.params={},this.it=i,this.def=f,this.$data)this.schemaCode=i.gen.const("vSchema",Y$(this.$data,i));else if(this.schemaCode=this.schemaValue,!(0,ew.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw Error(`${w} value must be ${JSON.stringify(f.schemaType)}`);if("code"in f?f.trackErrors:f.errors!==!1)this.errsCount=i.gen.const("_errs",J.default.errors)}result(i,f,w){this.failResult((0,b.not)(i),f,w)}failResult(i,f,w){if(this.gen.if(i),w)w();else this.error();if(f){if(this.gen.else(),f(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(i,f){this.failResult((0,b.not)(i),void 0,f)}fail(i){if(i===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(i),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(i){if(!this.$data)return this.fail(i);let{schemaCode:f}=this;this.fail(b._`${f} !== undefined && (${(0,b.or)(this.invalid$data(),i)})`)}error(i,f,w){if(f){this.setParams(f),this._error(i,w),this.setParams({});return}this._error(i,w)}_error(i,f){(i?pw.reportExtraError:pw.reportError)(this,this.def.error,f)}$dataError(){(0,pw.reportError)(this,this.def.$dataError||pw.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,pw.resetErrorsCount)(this.gen,this.errsCount)}ok(i){if(!this.allErrors)this.gen.if(i)}setParams(i,f){if(f)Object.assign(this.params,i);else this.params=i}block$data(i,f,w=b.nil){this.gen.block(()=>{this.check$data(i,w),f()})}check$data(i=b.nil,f=b.nil){if(!this.$data)return;let{gen:w,schemaCode:l,schemaType:t,def:n}=this;if(w.if((0,b.or)(b._`${l} === undefined`,f)),i!==b.nil)w.assign(i,!0);if(t.length||n.validateSchema){if(w.elseIf(this.invalid$data()),this.$dataError(),i!==b.nil)w.assign(i,!1)}w.else()}invalid$data(){let{gen:i,schemaCode:f,schemaType:w,def:l,it:t}=this;return(0,b.or)(n(),W());function n(){if(w.length){if(!(f instanceof b.Name))throw Error("ajv implementation error");let A=Array.isArray(w)?w:[w];return b._`${(0,ct.checkDataTypes)(A,f,t.opts.strictNumbers,ct.DataType.Wrong)}`}return b.nil}function W(){if(l.validateSchema){let A=i.scopeValue("validate$data",{ref:l.validateSchema});return b._`!${A}(${f})`}return b.nil}}subschema(i,f){let w=(0,QW.getSubschema)(this.it,i);(0,QW.extendSubschemaData)(w,this.it,i),(0,QW.extendSubschemaMode)(w,i);let l={...this.it,...w,items:void 0,props:void 0};return FT(l,f),l}mergeEvaluated(i,f){let{it:w,gen:l}=this;if(!w.opts.unevaluated)return;if(w.props!==!0&&i.props!==void 0)w.props=kf.mergeEvaluated.props(l,i.props,w.props,f);if(w.items!==!0&&i.items!==void 0)w.items=kf.mergeEvaluated.items(l,i.items,w.items,f)}mergeValidEvaluated(i,f){let{it:w,gen:l}=this;if(w.opts.unevaluated&&(w.props!==!0||w.items!==!0))return l.if(f,()=>this.mergeEvaluated(i,b.Name)),!0}}F$.KeywordCxt=HW;function U$(i,f,w,l){let t=new HW(i,w,f);if("code"in w)w.code(t,l);else if(t.$data&&w.validate)(0,ew.funcKeywordCode)(t,w);else if("macro"in w)(0,ew.macroKeywordCode)(t,w);else if(w.compile||w.validate)(0,ew.funcKeywordCode)(t,w)}var aT=/^\/(?:[^~]|~0|~1)*$/,mT=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Y$(i,{dataLevel:f,dataNames:w,dataPathArr:l}){let t,n;if(i==="")return J.default.rootData;if(i[0]==="/"){if(!aT.test(i))throw Error(`Invalid JSON-pointer: ${i}`);t=i,n=J.default.rootData}else{let I=mT.exec(i);if(!I)throw Error(`Invalid JSON-pointer: ${i}`);let k=+I[1];if(t=I[2],t==="#"){if(k>=f)throw Error($("property/index",k));return l[f-k]}if(k>f)throw Error($("data",k));if(n=w[f-k],!t)return n}let W=n,A=t.split("/");for(let I of A)if(I)n=b._`${n}${(0,b.getProperty)((0,kf.unescapeJsonPointer)(I))}`,W=b._`${W} && ${n}`;return W;function $(I,k){return`Cannot access ${I} ${k} levels up, current level is ${f}`}}F$.getData=Y$});var Tt=N((Z$)=>{Object.defineProperty(Z$,"__esModule",{value:!0});class G$ extends Error{constructor(i){super("validation failed");this.errors=i,this.ajv=this.validation=!0}}Z$.default=G$});var fl=N((Q$)=>{Object.defineProperty(Q$,"__esModule",{value:!0});var jW=sw();class K$ extends Error{constructor(i,f,w,l){super(l||`can't resolve reference ${w} from id ${f}`);this.missingRef=(0,jW.resolveUrl)(i,f,w),this.missingSchema=(0,jW.normalizeId)((0,jW.getFullPath)(i,this.missingRef))}}Q$.default=K$});var Et=N((H$)=>{Object.defineProperty(H$,"__esModule",{value:!0});H$.resolveSchema=H$.getCompilingSchema=H$.resolveRef=H$.compileSchema=H$.SchemaEnv=void 0;var ai=Y(),sT=Tt(),vf=If(),mi=sw(),B$=X(),pT=il();class wl{constructor(i){var f;this.refs={},this.dynamicAnchors={};let w;if(typeof i.schema=="object")w=i.schema;this.schema=i.schema,this.schemaId=i.schemaId,this.root=i.root||this,this.baseId=(f=i.baseId)!==null&&f!==void 0?f:(0,mi.normalizeId)(w===null||w===void 0?void 0:w[i.schemaId||"$id"]),this.schemaPath=i.schemaPath,this.localRefs=i.localRefs,this.meta=i.meta,this.$async=w===null||w===void 0?void 0:w.$async,this.refs={}}}H$.SchemaEnv=wl;function hW(i){let f=V$.call(this,i);if(f)return f;let w=(0,mi.getFullPath)(this.opts.uriResolver,i.root.baseId),{es5:l,lines:t}=this.opts.code,{ownProperties:n}=this.opts,W=new ai.CodeGen(this.scope,{es5:l,lines:t,ownProperties:n}),A;if(i.$async)A=W.scopeValue("Error",{ref:sT.default,code:ai._`require("ajv/dist/runtime/validation_error").default`});let $=W.scopeName("validate");i.validateName=$;let I={gen:W,allErrors:this.opts.allErrors,data:vf.default.data,parentData:vf.default.parentData,parentDataProperty:vf.default.parentDataProperty,dataNames:[vf.default.data],dataPathArr:[ai.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:W.scopeValue("schema",this.opts.code.source===!0?{ref:i.schema,code:(0,ai.stringify)(i.schema)}:{ref:i.schema}),validateName:$,ValidationError:A,schema:i.schema,schemaEnv:i,rootId:w,baseId:i.baseId||w,schemaPath:ai.nil,errSchemaPath:i.schemaPath||(this.opts.jtd?"":"#"),errorPath:ai._`""`,opts:this.opts,self:this},k;try{this._compilations.add(i),(0,pT.validateFunctionCode)(I),W.optimize(this.opts.code.optimize);let R=W.toString();if(k=`${W.scopeRefs(vf.default.scope)}return ${R}`,this.opts.code.process)k=this.opts.code.process(k,i);let L=Function(`${vf.default.self}`,`${vf.default.scope}`,k)(this,this.scope.get());if(this.scope.value($,{ref:L}),L.errors=null,L.schema=i.schema,L.schemaEnv=i,i.$async)L.$async=!0;if(this.opts.code.source===!0)L.source={validateName:$,validateCode:R,scopeValues:W._values};if(this.opts.unevaluated){let{props:z,items:y}=I;if(L.evaluated={props:z instanceof ai.Name?void 0:z,items:y instanceof ai.Name?void 0:y,dynamicProps:z instanceof ai.Name,dynamicItems:y instanceof ai.Name},L.source)L.source.evaluated=(0,ai.stringify)(L.evaluated)}return i.validate=L,i}catch(R){if(delete i.validate,delete i.validateName,k)this.logger.error("Error compiling schema, function code:",k);throw R}finally{this._compilations.delete(i)}}H$.compileSchema=hW;function eT(i,f,w){var l;w=(0,mi.resolveUrl)(this.opts.uriResolver,f,w);let t=i.refs[w];if(t)return t;let n=wP.call(this,i,w);if(n===void 0){let W=(l=i.localRefs)===null||l===void 0?void 0:l[w],{schemaId:A}=this.opts;if(W)n=new wl({schema:W,schemaId:A,root:i,baseId:f})}if(n===void 0)return;return i.refs[w]=iP.call(this,n)}H$.resolveRef=eT;function iP(i){if((0,mi.inlineRef)(i.schema,this.opts.inlineRefs))return i.schema;return i.validate?i:hW.call(this,i)}function V$(i){for(let f of this._compilations)if(fP(f,i))return f}H$.getCompilingSchema=V$;function fP(i,f){return i.schema===f.schema&&i.root===f.root&&i.baseId===f.baseId}function wP(i,f){let w;while(typeof(w=this.refs[f])=="string")f=w;return w||this.schemas[f]||Pt.call(this,i,f)}function Pt(i,f){let w=this.opts.uriResolver.parse(f),l=(0,mi._getFullPath)(this.opts.uriResolver,w),t=(0,mi.getFullPath)(this.opts.uriResolver,i.baseId,void 0);if(Object.keys(i.schema).length>0&&l===t)return vW.call(this,w,i);let n=(0,mi.normalizeId)(l),W=this.refs[n]||this.schemas[n];if(typeof W=="string"){let A=Pt.call(this,i,W);if(typeof(A===null||A===void 0?void 0:A.schema)!=="object")return;return vW.call(this,w,A)}if(typeof(W===null||W===void 0?void 0:W.schema)!=="object")return;if(!W.validate)hW.call(this,W);if(n===(0,mi.normalizeId)(f)){let{schema:A}=W,{schemaId:$}=this.opts,I=A[$];if(I)t=(0,mi.resolveUrl)(this.opts.uriResolver,t,I);return new wl({schema:A,schemaId:$,root:i,baseId:t})}return vW.call(this,w,W)}H$.resolveSchema=Pt;var lP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function vW(i,{baseId:f,schema:w,root:l}){var t;if(((t=i.fragment)===null||t===void 0?void 0:t[0])!=="/")return;for(let A of i.fragment.slice(1).split("/")){if(typeof w==="boolean")return;let $=w[(0,B$.unescapeFragment)(A)];if($===void 0)return;w=$;let I=typeof w==="object"&&w[this.opts.schemaId];if(!lP.has(A)&&I)f=(0,mi.resolveUrl)(this.opts.uriResolver,f,I)}let n;if(typeof w!="boolean"&&w.$ref&&!(0,B$.schemaHasRulesButRef)(w,this.RULES)){let A=(0,mi.resolveUrl)(this.opts.uriResolver,f,w.$ref);n=Pt.call(this,l,A)}let{schemaId:W}=this.opts;if(n=n||new wl({schema:w,schemaId:W,root:l,baseId:f}),n.schema!==n.root.schema)return n;return}});var v$=N((v4,IP)=>{IP.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var aW=N((h4,q$)=>{var kP=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),x$=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),xW=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),O$=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),$P=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function OW(i){let f="",w=0,l=0;for(l=0;l<i.length;l++){if(w=i[l].charCodeAt(0),w===48)continue;if(!(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102))return"";f+=i[l];break}for(l+=1;l<i.length;l++){if(w=i[l].charCodeAt(0),!(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102))return"";f+=i[l]}return f}var RP=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function h$(i){return i.length=0,!0}function uP(i,f,w){if(i.length){let l=OW(i);if(l!=="")f.push(l);else return w.error=!0,!1;i.length=0}return!0}function CP(i){let f=0,w={error:!1,address:"",zone:""},l=[],t=[],n=!1,W=!1,A=uP;for(let $=0;$<i.length;$++){let I=i[$];if(I==="["||I==="]")continue;if(I===":"){if(n===!0)W=!0;if(!A(t,l,w))break;if(++f>7){w.error=!0;break}if($>0&&i[$-1]===":")n=!0;l.push(":");continue}else if(I==="%"){if(!A(t,l,w))break;A=h$}else{t.push(I);continue}}if(t.length)if(A===h$)w.zone=t.join("");else if(W)l.push(t.join(""));else l.push(OW(t));return w.address=l.join(""),w}function a$(i){if(SP(i,":")<2)return{host:i,isIPV6:!1};let f=CP(i);if(!f.error){let{address:w,address:l}=f;if(f.zone)w+="%"+f.zone,l+="%25"+f.zone;return{host:w,isIPV6:!0,escapedHost:l}}else return{host:i,isIPV6:!1}}function SP(i,f){let w=0;for(let l=0;l<i.length;l++)if(i[l]===f)w++;return w}function LP(i){let f=i,w=[],l=-1,t=0;while(t=f.length){if(t===1)if(f===".")break;else if(f==="/"){w.push("/");break}else{w.push(f);break}else if(t===2){if(f[0]==="."){if(f[1]===".")break;else if(f[1]==="/"){f=f.slice(2);continue}}else if(f[0]==="/"){if(f[1]==="."||f[1]==="/"){w.push("/");break}}}else if(t===3){if(f==="/.."){if(w.length!==0)w.pop();w.push("/");break}}if(f[0]==="."){if(f[1]==="."){if(f[2]==="/"){f=f.slice(3);continue}}else if(f[1]==="/"){f=f.slice(2);continue}}else if(f[0]==="/"){if(f[1]==="."){if(f[2]==="/"){f=f.slice(2);continue}else if(f[2]==="."){if(f[3]==="/"){if(f=f.slice(3),w.length!==0)w.pop();continue}}}}if((l=f.indexOf("/",1))===-1){w.push(f);break}else w.push(f.slice(0,l)),f=f.slice(l)}return w.join("")}var zP={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},yP=/[@/?#:]/g,cP=/[@/?#]/g;function m$(i,f){let w=f?cP:yP;return w.lastIndex=0,i.replace(w,(l)=>zP[l])}function TP(i,f=!1){if(i.indexOf("%")===-1)return i;let w="";for(let l=0;l<i.length;l++){if(i[l]==="%"&&l+2<i.length){let t=i.slice(l+1,l+3);if(xW(t)){let n=t.toUpperCase(),W=String.fromCharCode(parseInt(n,16));if(f&&O$(W))w+=W;else w+="%"+n;l+=2;continue}}w+=i[l]}return w}function PP(i){let f="";for(let w=0;w<i.length;w++){if(i[w]==="%"&&w+2<i.length){let l=i.slice(w+1,w+3);if(xW(l)){let t=l.toUpperCase(),n=String.fromCharCode(parseInt(t,16));if(n!=="."&&O$(n))f+=n;else f+="%"+t;w+=2;continue}}if($P(i[w]))f+=i[w];else f+=escape(i[w])}return f}function EP(i){let f="";for(let w=0;w<i.length;w++){if(i[w]==="%"&&w+2<i.length){let l=i.slice(w+1,w+3);if(xW(l)){f+="%"+l.toUpperCase(),w+=2;continue}}f+=escape(i[w])}return f}function oP(i){let f=[];if(i.userinfo!==void 0)f.push(i.userinfo),f.push("@");if(i.host!==void 0){let w=unescape(i.host);if(!x$(w)){let l=a$(w);if(l.isIPV6===!0)w=`[${l.escapedHost}]`;else w=m$(w,!1)}f.push(w)}if(typeof i.port==="number"||typeof i.port==="string")f.push(":"),f.push(String(i.port));return f.length?f.join(""):void 0}q$.exports={nonSimpleDomain:RP,recomposeAuthority:oP,reescapeHostDelimiters:m$,normalizePercentEncoding:TP,normalizePathEncoding:PP,escapePreservingEscapes:EP,removeDotSegments:LP,isIPv4:x$,isUUID:kP,normalizeIPv6:a$,stringArrayToHexStripped:OW}});var p$=N((x4,s$)=>{var{isUUID:NP}=aW(),DP=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,bP=["http","https","ws","wss","urn","urn:uuid"];function rP(i){return bP.indexOf(i)!==-1}function mW(i){if(i.secure===!0)return!0;else if(i.secure===!1)return!1;else if(i.scheme)return i.scheme.length===3&&(i.scheme[0]==="w"||i.scheme[0]==="W")&&(i.scheme[1]==="s"||i.scheme[1]==="S")&&(i.scheme[2]==="s"||i.scheme[2]==="S");else return!1}function g$(i){if(!i.host)i.error=i.error||"HTTP URIs must have a host.";return i}function d$(i){let f=String(i.scheme).toLowerCase()==="https";if(i.port===(f?443:80)||i.port==="")i.port=void 0;if(!i.path)i.path="/";return i}function MP(i){return i.secure=mW(i),i.resourceName=(i.path||"/")+(i.query?"?"+i.query:""),i.path=void 0,i.query=void 0,i}function JP(i){if(i.port===(mW(i)?443:80)||i.port==="")i.port=void 0;if(typeof i.secure==="boolean")i.scheme=i.secure?"wss":"ws",i.secure=void 0;if(i.resourceName){let[f,w]=i.resourceName.split("?");i.path=f&&f!=="/"?f:void 0,i.query=w,i.resourceName=void 0}return i.fragment=void 0,i}function UP(i,f){if(!i.path)return i.error="URN can not be parsed",i;let w=i.path.match(DP);if(w){let l=f.scheme||i.scheme||"urn";i.nid=w[1].toLowerCase(),i.nss=w[2];let t=`${l}:${f.nid||i.nid}`,n=qW(t);if(i.path=void 0,n)i=n.parse(i,f)}else i.error=i.error||"URN can not be parsed.";return i}function YP(i,f){if(i.nid===void 0)throw Error("URN without nid cannot be serialized");let w=f.scheme||i.scheme||"urn",l=i.nid.toLowerCase(),t=`${w}:${f.nid||l}`,n=qW(t);if(n)i=n.serialize(i,f);let W=i,A=i.nss;return W.path=`${l||f.nid}:${A}`,f.skipEscape=!0,W}function FP(i,f){let w=i;if(w.uuid=w.nss,w.nss=void 0,!f.tolerant&&(!w.uuid||!NP(w.uuid)))w.error=w.error||"UUID is not valid.";return w}function XP(i){let f=i;return f.nss=(i.uuid||"").toLowerCase(),f}var _$={scheme:"http",domainHost:!0,parse:g$,serialize:d$},GP={scheme:"https",domainHost:_$.domainHost,parse:g$,serialize:d$},ot={scheme:"ws",domainHost:!0,parse:MP,serialize:JP},ZP={scheme:"wss",domainHost:ot.domainHost,parse:ot.parse,serialize:ot.serialize},KP={scheme:"urn",parse:UP,serialize:YP,skipNormalize:!0},QP={scheme:"urn:uuid",parse:FP,serialize:XP,skipNormalize:!0},Nt={http:_$,https:GP,ws:ot,wss:ZP,urn:KP,"urn:uuid":QP};Object.setPrototypeOf(Nt,null);function qW(i){return i&&(Nt[i]||Nt[i.toLowerCase()])||void 0}s$.exports={wsIsSecure:mW,SCHEMES:Nt,isValidSchemeName:rP,getSchemeHandler:qW}});var t0=N((O4,Dt)=>{var{normalizeIPv6:BP,removeDotSegments:ll,recomposeAuthority:VP,normalizePercentEncoding:HP,normalizePathEncoding:jP,escapePreservingEscapes:vP,reescapeHostDelimiters:hP,isIPv4:xP,nonSimpleDomain:OP}=aW(),{SCHEMES:aP,getSchemeHandler:i0}=p$();function mP(i,f){if(typeof i==="string")i=sP(i,f);else if(typeof i==="object")i=uw(hf(i,f),f);return i}function qP(i,f,w){let l=w?Object.assign({scheme:"null"},w):{scheme:"null"},t=f0(uw(i,l),uw(f,l),l,!0);return l.skipEscape=!0,hf(t,l)}function f0(i,f,w,l){let t={};if(!l)i=uw(hf(i,w),w),f=uw(hf(f,w),w);if(w=w||{},!w.tolerant&&f.scheme)t.scheme=f.scheme,t.userinfo=f.userinfo,t.host=f.host,t.port=f.port,t.path=ll(f.path||""),t.query=f.query;else{if(f.userinfo!==void 0||f.host!==void 0||f.port!==void 0)t.userinfo=f.userinfo,t.host=f.host,t.port=f.port,t.path=ll(f.path||""),t.query=f.query;else{if(!f.path)if(t.path=i.path,f.query!==void 0)t.query=f.query;else t.query=i.query;else{if(f.path[0]==="/")t.path=ll(f.path);else{if((i.userinfo!==void 0||i.host!==void 0||i.port!==void 0)&&!i.path)t.path="/"+f.path;else if(!i.path)t.path=f.path;else t.path=i.path.slice(0,i.path.lastIndexOf("/")+1)+f.path;t.path=ll(t.path)}t.query=f.query}t.userinfo=i.userinfo,t.host=i.host,t.port=i.port}t.scheme=i.scheme}return t.fragment=f.fragment,t}function gP(i,f,w){let l=e$(i,w),t=e$(f,w);return l!==void 0&&t!==void 0&&l.toLowerCase()===t.toLowerCase()}function hf(i,f){let w={host:i.host,scheme:i.scheme,userinfo:i.userinfo,port:i.port,path:i.path,query:i.query,nid:i.nid,nss:i.nss,uuid:i.uuid,fragment:i.fragment,reference:i.reference,resourceName:i.resourceName,secure:i.secure,error:""},l=Object.assign({},f),t=[],n=i0(l.scheme||w.scheme);if(n&&n.serialize)n.serialize(w,l);if(w.path!==void 0)if(!l.skipEscape){if(w.path=vP(w.path),w.scheme!==void 0)w.path=w.path.split("%3A").join(":")}else w.path=HP(w.path);if(l.reference!=="suffix"&&w.scheme)t.push(w.scheme,":");let W=VP(w);if(W!==void 0){if(l.reference!=="suffix")t.push("//");if(t.push(W),w.path&&w.path[0]!=="/")t.push("/")}if(w.path!==void 0){let A=w.path;if(!l.absolutePath&&(!n||!n.absolutePath))A=ll(A);if(W===void 0&&A[0]==="/"&&A[1]==="/")A="/%2F"+A.slice(2);t.push(A)}if(w.query!==void 0)t.push("?",w.query);if(w.fragment!==void 0)t.push("#",w.fragment);return t.join("")}var dP=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function _P(i,f){if(f[2]!==void 0&&i.path&&i.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof i.port==="number"&&(i.port<0||i.port>65535))return"URI port is malformed.";return}function w0(i,f){let w=Object.assign({},f),l={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},t=!1,n=!1;if(w.reference==="suffix")if(w.scheme)i=w.scheme+":"+i;else i="//"+i;let W=i.match(dP);if(W){if(l.scheme=W[1],l.userinfo=W[3],l.host=W[4],l.port=parseInt(W[5],10),l.path=W[6]||"",l.query=W[7],l.fragment=W[8],isNaN(l.port))l.port=W[5];let A=_P(l,W);if(A!==void 0)l.error=l.error||A,t=!0;if(l.host)if(xP(l.host)===!1){let k=BP(l.host);l.host=k.host.toLowerCase(),n=k.isIPV6}else n=!0;if(l.scheme===void 0&&l.userinfo===void 0&&l.host===void 0&&l.port===void 0&&l.query===void 0&&!l.path)l.reference="same-document";else if(l.scheme===void 0)l.reference="relative";else if(l.fragment===void 0)l.reference="absolute";else l.reference="uri";if(w.reference&&w.reference!=="suffix"&&w.reference!==l.reference)l.error=l.error||"URI is not a "+w.reference+" reference.";let $=i0(w.scheme||l.scheme);if(!w.unicodeSupport&&(!$||!$.unicodeSupport)){if(l.host&&(w.domainHost||$&&$.domainHost)&&n===!1&&OP(l.host))try{l.host=new URL("http://"+l.host).hostname}catch(I){l.error=l.error||"Host's domain name can not be converted to ASCII: "+I}}if(!$||$&&!$.skipNormalize){if(i.indexOf("%")!==-1){if(l.scheme!==void 0)l.scheme=unescape(l.scheme);if(l.host!==void 0)l.host=hP(unescape(l.host),n)}if(l.path)l.path=jP(l.path);if(l.fragment)try{l.fragment=encodeURI(decodeURIComponent(l.fragment))}catch{l.error=l.error||"URI malformed"}}if($&&$.parse)$.parse(l,w)}else l.error=l.error||"URI can not be parsed.";return{parsed:l,malformedAuthorityOrPort:t}}function uw(i,f){return w0(i,f).parsed}function sP(i,f){return l0(i,f).normalized}function l0(i,f){let{parsed:w,malformedAuthorityOrPort:l}=w0(i,f);return{normalized:l?i:hf(w,f),malformedAuthorityOrPort:l}}function e$(i,f){if(typeof i==="string"){let{normalized:w,malformedAuthorityOrPort:l}=l0(i,f);return l?void 0:w}if(typeof i==="object")return hf(i,f)}var gW={SCHEMES:aP,normalize:mP,resolve:qP,resolveComponent:f0,equal:gP,serialize:hf,parse:uw};Dt.exports=gW;Dt.exports.default=gW;Dt.exports.fastUri=gW});var A0=N((W0)=>{Object.defineProperty(W0,"__esModule",{value:!0});var n0=t0();n0.code='require("ajv/dist/runtime/uri").default';W0.default=n0});var L0=N(($f)=>{Object.defineProperty($f,"__esModule",{value:!0});$f.CodeGen=$f.Name=$f.nil=$f.stringify=$f.str=$f._=$f.KeywordCxt=void 0;var eP=il();Object.defineProperty($f,"KeywordCxt",{enumerable:!0,get:function(){return eP.KeywordCxt}});var Cw=Y();Object.defineProperty($f,"_",{enumerable:!0,get:function(){return Cw._}});Object.defineProperty($f,"str",{enumerable:!0,get:function(){return Cw.str}});Object.defineProperty($f,"stringify",{enumerable:!0,get:function(){return Cw.stringify}});Object.defineProperty($f,"nil",{enumerable:!0,get:function(){return Cw.nil}});Object.defineProperty($f,"Name",{enumerable:!0,get:function(){return Cw.Name}});Object.defineProperty($f,"CodeGen",{enumerable:!0,get:function(){return Cw.CodeGen}});var iE=Tt(),u0=fl(),fE=rW(),tl=Et(),wE=Y(),nl=sw(),bt=_w(),_W=X(),I0=v$(),lE=A0(),C0=(i,f)=>new RegExp(i,f);C0.code="new RegExp";var tE=["removeAdditional","useDefaults","coerceTypes"],nE=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),WE={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},AE={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k0=200;function IE(i){var f,w,l,t,n,W,A,$,I,k,R,C,L,z,y,T,u,S,c,P,E,fi,Ai,qf,Ki;let Ni=i.strict,Qi=(f=i.code)===null||f===void 0?void 0:f.optimize,UA=Qi===!0||Qi===void 0?1:Qi||0,YA=(l=(w=i.code)===null||w===void 0?void 0:w.regExp)!==null&&l!==void 0?l:C0,MC=(t=i.uriResolver)!==null&&t!==void 0?t:lE.default;return{strictSchema:(W=(n=i.strictSchema)!==null&&n!==void 0?n:Ni)!==null&&W!==void 0?W:!0,strictNumbers:($=(A=i.strictNumbers)!==null&&A!==void 0?A:Ni)!==null&&$!==void 0?$:!0,strictTypes:(k=(I=i.strictTypes)!==null&&I!==void 0?I:Ni)!==null&&k!==void 0?k:"log",strictTuples:(C=(R=i.strictTuples)!==null&&R!==void 0?R:Ni)!==null&&C!==void 0?C:"log",strictRequired:(z=(L=i.strictRequired)!==null&&L!==void 0?L:Ni)!==null&&z!==void 0?z:!1,code:i.code?{...i.code,optimize:UA,regExp:YA}:{optimize:UA,regExp:YA},loopRequired:(y=i.loopRequired)!==null&&y!==void 0?y:k0,loopEnum:(T=i.loopEnum)!==null&&T!==void 0?T:k0,meta:(u=i.meta)!==null&&u!==void 0?u:!0,messages:(S=i.messages)!==null&&S!==void 0?S:!0,inlineRefs:(c=i.inlineRefs)!==null&&c!==void 0?c:!0,schemaId:(P=i.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(E=i.addUsedSchema)!==null&&E!==void 0?E:!0,validateSchema:(fi=i.validateSchema)!==null&&fi!==void 0?fi:!0,validateFormats:(Ai=i.validateFormats)!==null&&Ai!==void 0?Ai:!0,unicodeRegExp:(qf=i.unicodeRegExp)!==null&&qf!==void 0?qf:!0,int32range:(Ki=i.int32range)!==null&&Ki!==void 0?Ki:!0,uriResolver:MC}}class rt{constructor(i={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,i=this.opts={...i,...IE(i)};let{es5:f,lines:w}=this.opts.code;this.scope=new wE.ValueScope({scope:{},prefixes:nE,es5:f,lines:w}),this.logger=SE(i.logger);let l=i.validateFormats;if(i.validateFormats=!1,this.RULES=(0,fE.getRules)(),$0.call(this,WE,i,"NOT SUPPORTED"),$0.call(this,AE,i,"DEPRECATED","warn"),this._metaOpts=uE.call(this),i.formats)$E.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),i.keywords)RE.call(this,i.keywords);if(typeof i.meta=="object")this.addMetaSchema(i.meta);kE.call(this),i.validateFormats=l}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:i,meta:f,schemaId:w}=this.opts,l=I0;if(w==="id")l={...I0},l.id=l.$id,delete l.$id;if(f&&i)this.addMetaSchema(l,l[w],!1)}defaultMeta(){let{meta:i,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof i=="object"?i[f]||i:void 0}validate(i,f){let w;if(typeof i=="string"){if(w=this.getSchema(i),!w)throw Error(`no schema with key or ref "${i}"`)}else w=this.compile(i);let l=w(f);if(!("$async"in w))this.errors=w.errors;return l}compile(i,f){let w=this._addSchema(i,f);return w.validate||this._compileSchemaEnv(w)}compileAsync(i,f){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:w}=this.opts;return l.call(this,i,f);async function l(I,k){await t.call(this,I.$schema);let R=this._addSchema(I,k);return R.validate||n.call(this,R)}async function t(I){if(I&&!this.getSchema(I))await l.call(this,{$ref:I},!0)}async function n(I){try{return this._compileSchemaEnv(I)}catch(k){if(!(k instanceof u0.default))throw k;return W.call(this,k),await A.call(this,k.missingSchema),n.call(this,I)}}function W({missingSchema:I,missingRef:k}){if(this.refs[I])throw Error(`AnySchema ${I} is loaded but ${k} cannot be resolved`)}async function A(I){let k=await $.call(this,I);if(!this.refs[I])await t.call(this,k.$schema);if(!this.refs[I])this.addSchema(k,I,f)}async function $(I){let k=this._loading[I];if(k)return k;try{return await(this._loading[I]=w(I))}finally{delete this._loading[I]}}}addSchema(i,f,w,l=this.opts.validateSchema){if(Array.isArray(i)){for(let n of i)this.addSchema(n,void 0,w,l);return this}let t;if(typeof i==="object"){let{schemaId:n}=this.opts;if(t=i[n],t!==void 0&&typeof t!="string")throw Error(`schema ${n} must be string`)}return f=(0,nl.normalizeId)(f||t),this._checkUnique(f),this.schemas[f]=this._addSchema(i,w,f,l,!0),this}addMetaSchema(i,f,w=this.opts.validateSchema){return this.addSchema(i,f,!0,w),this}validateSchema(i,f){if(typeof i=="boolean")return!0;let w;if(w=i.$schema,w!==void 0&&typeof w!="string")throw Error("$schema must be a string");if(w=w||this.opts.defaultMeta||this.defaultMeta(),!w)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let l=this.validate(w,i);if(!l&&f){let t="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(t);else throw Error(t)}return l}getSchema(i){let f;while(typeof(f=R0.call(this,i))=="string")i=f;if(f===void 0){let{schemaId:w}=this.opts,l=new tl.SchemaEnv({schema:{},schemaId:w});if(f=tl.resolveSchema.call(this,l,i),!f)return;this.refs[i]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(i){if(i instanceof RegExp)return this._removeAllSchemas(this.schemas,i),this._removeAllSchemas(this.refs,i),this;switch(typeof i){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=R0.call(this,i);if(typeof f=="object")this._cache.delete(f.schema);return delete this.schemas[i],delete this.refs[i],this}case"object":{let f=i;this._cache.delete(f);let w=i[this.opts.schemaId];if(w)w=(0,nl.normalizeId)(w),delete this.schemas[w],delete this.refs[w];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(i){for(let f of i)this.addKeyword(f);return this}addKeyword(i,f){let w;if(typeof i=="string"){if(w=i,typeof f=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=w}else if(typeof i=="object"&&f===void 0){if(f=i,w=f.keyword,Array.isArray(w)&&!w.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(zE.call(this,w,f),!f)return(0,_W.eachItem)(w,(t)=>dW.call(this,t)),this;cE.call(this,f);let l={...f,type:(0,bt.getJSONTypes)(f.type),schemaType:(0,bt.getJSONTypes)(f.schemaType)};return(0,_W.eachItem)(w,l.type.length===0?(t)=>dW.call(this,t,l):(t)=>l.type.forEach((n)=>dW.call(this,t,l,n))),this}getKeyword(i){let f=this.RULES.all[i];return typeof f=="object"?f.definition:!!f}removeKeyword(i){let{RULES:f}=this;delete f.keywords[i],delete f.all[i];for(let w of f.rules){let l=w.rules.findIndex((t)=>t.keyword===i);if(l>=0)w.rules.splice(l,1)}return this}addFormat(i,f){if(typeof f=="string")f=new RegExp(f);return this.formats[i]=f,this}errorsText(i=this.errors,{separator:f=", ",dataVar:w="data"}={}){if(!i||i.length===0)return"No errors";return i.map((l)=>`${w}${l.instancePath} ${l.message}`).reduce((l,t)=>l+f+t)}$dataMetaSchema(i,f){let w=this.RULES.all;i=JSON.parse(JSON.stringify(i));for(let l of f){let t=l.split("/").slice(1),n=i;for(let W of t)n=n[W];for(let W in w){let A=w[W];if(typeof A!="object")continue;let{$data:$}=A.definition,I=n[W];if($&&I)n[W]=S0(I)}}return i}_removeAllSchemas(i,f){for(let w in i){let l=i[w];if(!f||f.test(w)){if(typeof l=="string")delete i[w];else if(l&&!l.meta)this._cache.delete(l.schema),delete i[w]}}}_addSchema(i,f,w,l=this.opts.validateSchema,t=this.opts.addUsedSchema){let n,{schemaId:W}=this.opts;if(typeof i=="object")n=i[W];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof i!="boolean")throw Error("schema must be object or boolean");let A=this._cache.get(i);if(A!==void 0)return A;w=(0,nl.normalizeId)(n||w);let $=nl.getSchemaRefs.call(this,i,w);if(A=new tl.SchemaEnv({schema:i,schemaId:W,meta:f,baseId:w,localRefs:$}),this._cache.set(A.schema,A),t&&!w.startsWith("#")){if(w)this._checkUnique(w);this.refs[w]=A}if(l)this.validateSchema(i,!0);return A}_checkUnique(i){if(this.schemas[i]||this.refs[i])throw Error(`schema with key or id "${i}" already exists`)}_compileSchemaEnv(i){if(i.meta)this._compileMetaSchema(i);else tl.compileSchema.call(this,i);if(!i.validate)throw Error("ajv implementation error");return i.validate}_compileMetaSchema(i){let f=this.opts;this.opts=this._metaOpts;try{tl.compileSchema.call(this,i)}finally{this.opts=f}}}rt.ValidationError=iE.default;rt.MissingRefError=u0.default;$f.default=rt;function $0(i,f,w,l="error"){for(let t in i){let n=t;if(n in f)this.logger[l](`${w}: option ${t}. ${i[n]}`)}}function R0(i){return i=(0,nl.normalizeId)(i),this.schemas[i]||this.refs[i]}function kE(){let i=this.opts.schemas;if(!i)return;if(Array.isArray(i))this.addSchema(i);else for(let f in i)this.addSchema(i[f],f)}function $E(){for(let i in this.opts.formats){let f=this.opts.formats[i];if(f)this.addFormat(i,f)}}function RE(i){if(Array.isArray(i)){this.addVocabulary(i);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let f in i){let w=i[f];if(!w.keyword)w.keyword=f;this.addKeyword(w)}}function uE(){let i={...this.opts};for(let f of tE)delete i[f];return i}var CE={log(){},warn(){},error(){}};function SE(i){if(i===!1)return CE;if(i===void 0)return console;if(i.log&&i.warn&&i.error)return i;throw Error("logger must implement log, warn and error methods")}var LE=/^[a-z_$][a-z0-9_$:-]*$/i;function zE(i,f){let{RULES:w}=this;if((0,_W.eachItem)(i,(l)=>{if(w.keywords[l])throw Error(`Keyword ${l} is already defined`);if(!LE.test(l))throw Error(`Keyword ${l} has invalid name`)}),!f)return;if(f.$data&&!(("code"in f)||("validate"in f)))throw Error('$data keyword must have "code" or "validate" function')}function dW(i,f,w){var l;let t=f===null||f===void 0?void 0:f.post;if(w&&t)throw Error('keyword with "post" flag cannot have "type"');let{RULES:n}=this,W=t?n.post:n.rules.find(({type:$})=>$===w);if(!W)W={type:w,rules:[]},n.rules.push(W);if(n.keywords[i]=!0,!f)return;let A={keyword:i,definition:{...f,type:(0,bt.getJSONTypes)(f.type),schemaType:(0,bt.getJSONTypes)(f.schemaType)}};if(f.before)yE.call(this,W,A,f.before);else W.rules.push(A);n.all[i]=A,(l=f.implements)===null||l===void 0||l.forEach(($)=>this.addKeyword($))}function yE(i,f,w){let l=i.rules.findIndex((t)=>t.keyword===w);if(l>=0)i.rules.splice(l,0,f);else i.rules.push(f),this.logger.warn(`rule ${w} is not defined`)}function cE(i){let{metaSchema:f}=i;if(f===void 0)return;if(i.$data&&this.opts.$data)f=S0(f);i.validateSchema=this.compile(f,!0)}var TE={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function S0(i){return{anyOf:[i,TE]}}});var y0=N((z0)=>{Object.defineProperty(z0,"__esModule",{value:!0});var oE={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};z0.default=oE});var N0=N((E0)=>{Object.defineProperty(E0,"__esModule",{value:!0});E0.callRef=E0.getValidate=void 0;var DE=fl(),c0=Yi(),Ti=Y(),Sw=If(),T0=Et(),Mt=X(),bE={keyword:"$ref",schemaType:"string",code(i){let{gen:f,schema:w,it:l}=i,{baseId:t,schemaEnv:n,validateName:W,opts:A,self:$}=l,{root:I}=n;if((w==="#"||w==="#/")&&t===I.baseId)return R();let k=T0.resolveRef.call($,I,t,w);if(k===void 0)throw new DE.default(l.opts.uriResolver,t,w);if(k instanceof T0.SchemaEnv)return C(k);return L(k);function R(){if(n===I)return Jt(i,W,n,n.$async);let z=f.scopeValue("root",{ref:I});return Jt(i,Ti._`${z}.validate`,I,I.$async)}function C(z){let y=P0(i,z);Jt(i,y,z,z.$async)}function L(z){let y=f.scopeValue("schema",A.code.source===!0?{ref:z,code:(0,Ti.stringify)(z)}:{ref:z}),T=f.name("valid"),u=i.subschema({schema:z,dataTypes:[],schemaPath:Ti.nil,topSchemaRef:y,errSchemaPath:w},T);i.mergeEvaluated(u),i.ok(T)}}};function P0(i,f){let{gen:w}=i;return f.validate?w.scopeValue("validate",{ref:f.validate}):Ti._`${w.scopeValue("wrapper",{ref:f})}.validate`}E0.getValidate=P0;function Jt(i,f,w,l){let{gen:t,it:n}=i,{allErrors:W,schemaEnv:A,opts:$}=n,I=$.passContext?Sw.default.this:Ti.nil;if(l)k();else R();function k(){if(!A.$async)throw Error("async schema referenced by sync schema");let z=t.let("valid");t.try(()=>{if(t.code(Ti._`await ${(0,c0.callValidateCode)(i,f,I)}`),L(f),!W)t.assign(z,!0)},(y)=>{if(t.if(Ti._`!(${y} instanceof ${n.ValidationError})`,()=>t.throw(y)),C(y),!W)t.assign(z,!1)}),i.ok(z)}function R(){i.result((0,c0.callValidateCode)(i,f,I),()=>L(f),()=>C(f))}function C(z){let y=Ti._`${z}.errors`;t.assign(Sw.default.vErrors,Ti._`${Sw.default.vErrors} === null ? ${y} : ${Sw.default.vErrors}.concat(${y})`),t.assign(Sw.default.errors,Ti._`${Sw.default.vErrors}.length`)}function L(z){var y;if(!n.opts.unevaluated)return;let T=(y=w===null||w===void 0?void 0:w.validate)===null||y===void 0?void 0:y.evaluated;if(n.props!==!0)if(T&&!T.dynamicProps){if(T.props!==void 0)n.props=Mt.mergeEvaluated.props(t,T.props,n.props)}else{let u=t.var("props",Ti._`${z}.evaluated.props`);n.props=Mt.mergeEvaluated.props(t,u,n.props,Ti.Name)}if(n.items!==!0)if(T&&!T.dynamicItems){if(T.items!==void 0)n.items=Mt.mergeEvaluated.items(t,T.items,n.items)}else{let u=t.var("items",Ti._`${z}.evaluated.items`);n.items=Mt.mergeEvaluated.items(t,u,n.items,Ti.Name)}}}E0.callRef=Jt;E0.default=bE});var b0=N((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});var JE=y0(),UE=N0(),YE=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",JE.default,UE.default];D0.default=YE});var M0=N((r0)=>{Object.defineProperty(r0,"__esModule",{value:!0});var Ut=Y(),of=Ut.operators,Yt={maximum:{okStr:"<=",ok:of.LTE,fail:of.GT},minimum:{okStr:">=",ok:of.GTE,fail:of.LT},exclusiveMaximum:{okStr:"<",ok:of.LT,fail:of.GTE},exclusiveMinimum:{okStr:">",ok:of.GT,fail:of.LTE}},XE={message:({keyword:i,schemaCode:f})=>Ut.str`must be ${Yt[i].okStr} ${f}`,params:({keyword:i,schemaCode:f})=>Ut._`{comparison: ${Yt[i].okStr}, limit: ${f}}`},GE={keyword:Object.keys(Yt),type:"number",schemaType:"number",$data:!0,error:XE,code(i){let{keyword:f,data:w,schemaCode:l}=i;i.fail$data(Ut._`${w} ${Yt[f].fail} ${l} || isNaN(${w})`)}};r0.default=GE});var U0=N((J0)=>{Object.defineProperty(J0,"__esModule",{value:!0});var Wl=Y(),KE={message:({schemaCode:i})=>Wl.str`must be multiple of ${i}`,params:({schemaCode:i})=>Wl._`{multipleOf: ${i}}`},QE={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:KE,code(i){let{gen:f,data:w,schemaCode:l,it:t}=i,n=t.opts.multipleOfPrecision,W=f.let("res"),A=n?Wl._`Math.abs(Math.round(${W}) - ${W}) > 1e-${n}`:Wl._`${W} !== parseInt(${W})`;i.fail$data(Wl._`(${l} === 0 || (${W} = ${w}/${l}, ${A}))`)}};J0.default=QE});var X0=N((F0)=>{Object.defineProperty(F0,"__esModule",{value:!0});function Y0(i){let f=i.length,w=0,l=0,t;while(l<f)if(w++,t=i.charCodeAt(l++),t>=55296&&t<=56319&&l<f){if(t=i.charCodeAt(l),(t&64512)===56320)l++}return w}F0.default=Y0;Y0.code='require("ajv/dist/runtime/ucs2length").default'});var Z0=N((G0)=>{Object.defineProperty(G0,"__esModule",{value:!0});var xf=Y(),HE=X(),jE=X0(),vE={message({keyword:i,schemaCode:f}){let w=i==="maxLength"?"more":"fewer";return xf.str`must NOT have ${w} than ${f} characters`},params:({schemaCode:i})=>xf._`{limit: ${i}}`},hE={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:vE,code(i){let{keyword:f,data:w,schemaCode:l,it:t}=i,n=f==="maxLength"?xf.operators.GT:xf.operators.LT,W=t.opts.unicode===!1?xf._`${w}.length`:xf._`${(0,HE.useFunc)(i.gen,jE.default)}(${w})`;i.fail$data(xf._`${W} ${n} ${l}`)}};G0.default=hE});var Q0=N((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});var OE=Yi(),aE=X(),Lw=Y(),mE={message:({schemaCode:i})=>Lw.str`must match pattern "${i}"`,params:({schemaCode:i})=>Lw._`{pattern: ${i}}`},qE={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:mE,code(i){let{gen:f,data:w,$data:l,schema:t,schemaCode:n,it:W}=i,A=W.opts.unicodeRegExp?"u":"";if(l){let{regExp:$}=W.opts.code,I=$.code==="new RegExp"?Lw._`new RegExp`:(0,aE.useFunc)(f,$),k=f.let("valid");f.try(()=>f.assign(k,Lw._`${I}(${n}, ${A}).test(${w})`),()=>f.assign(k,!1)),i.fail$data(Lw._`!${k}`)}else{let $=(0,OE.usePattern)(i,t);i.fail$data(Lw._`!${$}.test(${w})`)}}};K0.default=qE});var V0=N((B0)=>{Object.defineProperty(B0,"__esModule",{value:!0});var Al=Y(),dE={message({keyword:i,schemaCode:f}){let w=i==="maxProperties"?"more":"fewer";return Al.str`must NOT have ${w} than ${f} properties`},params:({schemaCode:i})=>Al._`{limit: ${i}}`},_E={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:dE,code(i){let{keyword:f,data:w,schemaCode:l}=i,t=f==="maxProperties"?Al.operators.GT:Al.operators.LT;i.fail$data(Al._`Object.keys(${w}).length ${t} ${l}`)}};B0.default=_E});var j0=N((H0)=>{Object.defineProperty(H0,"__esModule",{value:!0});var Il=Yi(),kl=Y(),pE=X(),eE={message:({params:{missingProperty:i}})=>kl.str`must have required property '${i}'`,params:({params:{missingProperty:i}})=>kl._`{missingProperty: ${i}}`},i1={keyword:"required",type:"object",schemaType:"array",$data:!0,error:eE,code(i){let{gen:f,schema:w,schemaCode:l,data:t,$data:n,it:W}=i,{opts:A}=W;if(!n&&w.length===0)return;let $=w.length>=A.loopRequired;if(W.allErrors)I();else k();if(A.strictRequired){let L=i.parentSchema.properties,{definedProperties:z}=i.it;for(let y of w)if((L===null||L===void 0?void 0:L[y])===void 0&&!z.has(y)){let T=W.schemaEnv.baseId+W.errSchemaPath,u=`required property "${y}" is not defined at "${T}" (strictRequired)`;(0,pE.checkStrictMode)(W,u,W.opts.strictRequired)}}function I(){if($||n)i.block$data(kl.nil,R);else for(let L of w)(0,Il.checkReportMissingProp)(i,L)}function k(){let L=f.let("missing");if($||n){let z=f.let("valid",!0);i.block$data(z,()=>C(L,z)),i.ok(z)}else f.if((0,Il.checkMissingProp)(i,w,L)),(0,Il.reportMissingProp)(i,L),f.else()}function R(){f.forOf("prop",l,(L)=>{i.setParams({missingProperty:L}),f.if((0,Il.noPropertyInData)(f,t,L,A.ownProperties),()=>i.error())})}function C(L,z){i.setParams({missingProperty:L}),f.forOf(L,l,()=>{f.assign(z,(0,Il.propertyInData)(f,t,L,A.ownProperties)),f.if((0,kl.not)(z),()=>{i.error(),f.break()})},kl.nil)}}};H0.default=i1});var h0=N((v0)=>{Object.defineProperty(v0,"__esModule",{value:!0});var $l=Y(),w1={message({keyword:i,schemaCode:f}){let w=i==="maxItems"?"more":"fewer";return $l.str`must NOT have ${w} than ${f} items`},params:({schemaCode:i})=>$l._`{limit: ${i}}`},l1={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:w1,code(i){let{keyword:f,data:w,schemaCode:l}=i,t=f==="maxItems"?$l.operators.GT:$l.operators.LT;i.fail$data($l._`${w}.length ${t} ${l}`)}};v0.default=l1});var Ft=N((O0)=>{Object.defineProperty(O0,"__esModule",{value:!0});var x0=ZW();x0.code='require("ajv/dist/runtime/equal").default';O0.default=x0});var m0=N((a0)=>{Object.defineProperty(a0,"__esModule",{value:!0});var sW=_w(),ni=Y(),W1=X(),A1=Ft(),I1={message:({params:{i,j:f}})=>ni.str`must NOT have duplicate items (items ## ${f} and ${i} are identical)`,params:({params:{i,j:f}})=>ni._`{i: ${i}, j: ${f}}`},k1={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:I1,code(i){let{gen:f,data:w,$data:l,schema:t,parentSchema:n,schemaCode:W,it:A}=i;if(!l&&!t)return;let $=f.let("valid"),I=n.items?(0,sW.getSchemaTypes)(n.items):[];i.block$data($,k,ni._`${W} === false`),i.ok($);function k(){let z=f.let("i",ni._`${w}.length`),y=f.let("j");i.setParams({i:z,j:y}),f.assign($,!0),f.if(ni._`${z} > 1`,()=>(R()?C:L)(z,y))}function R(){return I.length>0&&!I.some((z)=>z==="object"||z==="array")}function C(z,y){let T=f.name("item"),u=(0,sW.checkDataTypes)(I,T,A.opts.strictNumbers,sW.DataType.Wrong),S=f.const("indices",ni._`{}`);f.for(ni._`;${z}--;`,()=>{if(f.let(T,ni._`${w}[${z}]`),f.if(u,ni._`continue`),I.length>1)f.if(ni._`typeof ${T} == "string"`,ni._`${T} += "_"`);f.if(ni._`typeof ${S}[${T}] == "number"`,()=>{f.assign(y,ni._`${S}[${T}]`),i.error(),f.assign($,!1).break()}).code(ni._`${S}[${T}] = ${z}`)})}function L(z,y){let T=(0,W1.useFunc)(f,A1.default),u=f.name("outer");f.label(u).for(ni._`;${z}--;`,()=>f.for(ni._`${y} = ${z}; ${y}--;`,()=>f.if(ni._`${T}(${w}[${z}], ${w}[${y}])`,()=>{i.error(),f.assign($,!1).break(u)})))}}};a0.default=k1});var g0=N((q0)=>{Object.defineProperty(q0,"__esModule",{value:!0});var pW=Y(),R1=X(),u1=Ft(),C1={message:"must be equal to constant",params:({schemaCode:i})=>pW._`{allowedValue: ${i}}`},S1={keyword:"const",$data:!0,error:C1,code(i){let{gen:f,data:w,$data:l,schemaCode:t,schema:n}=i;if(l||n&&typeof n=="object")i.fail$data(pW._`!${(0,R1.useFunc)(f,u1.default)}(${w}, ${t})`);else i.fail(pW._`${n} !== ${w}`)}};q0.default=S1});var _0=N((d0)=>{Object.defineProperty(d0,"__esModule",{value:!0});var Rl=Y(),z1=X(),y1=Ft(),c1={message:"must be equal to one of the allowed values",params:({schemaCode:i})=>Rl._`{allowedValues: ${i}}`},T1={keyword:"enum",schemaType:"array",$data:!0,error:c1,code(i){let{gen:f,data:w,$data:l,schema:t,schemaCode:n,it:W}=i;if(!l&&t.length===0)throw Error("enum must have non-empty array");let A=t.length>=W.opts.loopEnum,$,I=()=>$!==null&&$!==void 0?$:$=(0,z1.useFunc)(f,y1.default),k;if(A||l)k=f.let("valid"),i.block$data(k,R);else{if(!Array.isArray(t))throw Error("ajv implementation error");let L=f.const("vSchema",n);k=(0,Rl.or)(...t.map((z,y)=>C(L,y)))}i.pass(k);function R(){f.assign(k,!1),f.forOf("v",n,(L)=>f.if(Rl._`${I()}(${w}, ${L})`,()=>f.assign(k,!0).break()))}function C(L,z){let y=t[z];return typeof y==="object"&&y!==null?Rl._`${I()}(${w}, ${L}[${z}])`:Rl._`${w} === ${y}`}}};d0.default=T1});var p0=N((s0)=>{Object.defineProperty(s0,"__esModule",{value:!0});var E1=M0(),o1=U0(),N1=Z0(),D1=Q0(),b1=V0(),r1=j0(),M1=h0(),J1=m0(),U1=g0(),Y1=_0(),F1=[E1.default,o1.default,N1.default,D1.default,b1.default,r1.default,M1.default,J1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},U1.default,Y1.default];s0.default=F1});var iA=N((iR)=>{Object.defineProperty(iR,"__esModule",{value:!0});iR.validateAdditionalItems=void 0;var Of=Y(),eW=X(),G1={message:({params:{len:i}})=>Of.str`must NOT have more than ${i} items`,params:({params:{len:i}})=>Of._`{limit: ${i}}`},Z1={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:G1,code(i){let{parentSchema:f,it:w}=i,{items:l}=f;if(!Array.isArray(l)){(0,eW.checkStrictMode)(w,'"additionalItems" is ignored when "items" is not an array of schemas');return}e0(i,l)}};function e0(i,f){let{gen:w,schema:l,data:t,keyword:n,it:W}=i;W.items=!0;let A=w.const("len",Of._`${t}.length`);if(l===!1)i.setParams({len:f.length}),i.pass(Of._`${A} <= ${f.length}`);else if(typeof l=="object"&&!(0,eW.alwaysValidSchema)(W,l)){let I=w.var("valid",Of._`${A} <= ${f.length}`);w.if((0,Of.not)(I),()=>$(I)),i.ok(I)}function $(I){w.forRange("i",f.length,A,(k)=>{if(i.subschema({keyword:n,dataProp:k,dataPropType:eW.Type.Num},I),!W.allErrors)w.if((0,Of.not)(I),()=>w.break())})}}iR.validateAdditionalItems=e0;iR.default=Z1});var fA=N((tR)=>{Object.defineProperty(tR,"__esModule",{value:!0});tR.validateTuple=void 0;var wR=Y(),Xt=X(),Q1=Yi(),B1={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){let{schema:f,it:w}=i;if(Array.isArray(f))return lR(i,"additionalItems",f);if(w.items=!0,(0,Xt.alwaysValidSchema)(w,f))return;i.ok((0,Q1.validateArray)(i))}};function lR(i,f,w=i.schema){let{gen:l,parentSchema:t,data:n,keyword:W,it:A}=i;if(k(t),A.opts.unevaluated&&w.length&&A.items!==!0)A.items=Xt.mergeEvaluated.items(l,w.length,A.items);let $=l.name("valid"),I=l.const("len",wR._`${n}.length`);w.forEach((R,C)=>{if((0,Xt.alwaysValidSchema)(A,R))return;l.if(wR._`${I} > ${C}`,()=>i.subschema({keyword:W,schemaProp:C,dataProp:C},$)),i.ok($)});function k(R){let{opts:C,errSchemaPath:L}=A,z=w.length,y=z===R.minItems&&(z===R.maxItems||R[f]===!1);if(C.strictTuples&&!y){let T=`"${W}" is ${z}-tuple, but minItems or maxItems/${f} are not specified or different at path "${L}"`;(0,Xt.checkStrictMode)(A,T,C.strictTuples)}}}tR.validateTuple=lR;tR.default=B1});var AR=N((WR)=>{Object.defineProperty(WR,"__esModule",{value:!0});var H1=fA(),j1={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(i)=>(0,H1.validateTuple)(i,"items")};WR.default=j1});var $R=N((kR)=>{Object.defineProperty(kR,"__esModule",{value:!0});var IR=Y(),h1=X(),x1=Yi(),O1=iA(),a1={message:({params:{len:i}})=>IR.str`must NOT have more than ${i} items`,params:({params:{len:i}})=>IR._`{limit: ${i}}`},m1={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:a1,code(i){let{schema:f,parentSchema:w,it:l}=i,{prefixItems:t}=w;if(l.items=!0,(0,h1.alwaysValidSchema)(l,f))return;if(t)(0,O1.validateAdditionalItems)(i,t);else i.ok((0,x1.validateArray)(i))}};kR.default=m1});var uR=N((RR)=>{Object.defineProperty(RR,"__esModule",{value:!0});var Fi=Y(),Gt=X(),g1={message:({params:{min:i,max:f}})=>f===void 0?Fi.str`must contain at least ${i} valid item(s)`:Fi.str`must contain at least ${i} and no more than ${f} valid item(s)`,params:({params:{min:i,max:f}})=>f===void 0?Fi._`{minContains: ${i}}`:Fi._`{minContains: ${i}, maxContains: ${f}}`},d1={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:g1,code(i){let{gen:f,schema:w,parentSchema:l,data:t,it:n}=i,W,A,{minContains:$,maxContains:I}=l;if(n.opts.next)W=$===void 0?1:$,A=I;else W=1;let k=f.const("len",Fi._`${t}.length`);if(i.setParams({min:W,max:A}),A===void 0&&W===0){(0,Gt.checkStrictMode)(n,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(A!==void 0&&W>A){(0,Gt.checkStrictMode)(n,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,Gt.alwaysValidSchema)(n,w)){let y=Fi._`${k} >= ${W}`;if(A!==void 0)y=Fi._`${y} && ${k} <= ${A}`;i.pass(y);return}n.items=!0;let R=f.name("valid");if(A===void 0&&W===1)L(R,()=>f.if(R,()=>f.break()));else if(W===0){if(f.let(R,!0),A!==void 0)f.if(Fi._`${t}.length > 0`,C)}else f.let(R,!1),C();i.result(R,()=>i.reset());function C(){let y=f.name("_valid"),T=f.let("count",0);L(y,()=>f.if(y,()=>z(T)))}function L(y,T){f.forRange("i",0,k,(u)=>{i.subschema({keyword:"contains",dataProp:u,dataPropType:Gt.Type.Num,compositeRule:!0},y),T()})}function z(y){if(f.code(Fi._`${y}++`),A===void 0)f.if(Fi._`${y} >= ${W}`,()=>f.assign(R,!0).break());else if(f.if(Fi._`${y} > ${A}`,()=>f.assign(R,!1).break()),W===1)f.assign(R,!0);else f.if(Fi._`${y} >= ${W}`,()=>f.assign(R,!0))}}};RR.default=d1});var cR=N((LR)=>{Object.defineProperty(LR,"__esModule",{value:!0});LR.validateSchemaDeps=LR.validatePropertyDeps=LR.error=void 0;var wA=Y(),s1=X(),ul=Yi();LR.error={message:({params:{property:i,depsCount:f,deps:w}})=>{let l=f===1?"property":"properties";return wA.str`must have ${l} ${w} when property ${i} is present`},params:({params:{property:i,depsCount:f,deps:w,missingProperty:l}})=>wA._`{property: ${i},
32
- missingProperty: ${l},
33
- depsCount: ${f},
34
- deps: ${w}}`};var p1={keyword:"dependencies",type:"object",schemaType:"object",error:LR.error,code(i){let[f,w]=e1(i);CR(i,f),SR(i,w)}};function e1({schema:i}){let f={},w={};for(let l in i){if(l==="__proto__")continue;let t=Array.isArray(i[l])?f:w;t[l]=i[l]}return[f,w]}function CR(i,f=i.schema){let{gen:w,data:l,it:t}=i;if(Object.keys(f).length===0)return;let n=w.let("missing");for(let W in f){let A=f[W];if(A.length===0)continue;let $=(0,ul.propertyInData)(w,l,W,t.opts.ownProperties);if(i.setParams({property:W,depsCount:A.length,deps:A.join(", ")}),t.allErrors)w.if($,()=>{for(let I of A)(0,ul.checkReportMissingProp)(i,I)});else w.if(wA._`${$} && (${(0,ul.checkMissingProp)(i,A,n)})`),(0,ul.reportMissingProp)(i,n),w.else()}}LR.validatePropertyDeps=CR;function SR(i,f=i.schema){let{gen:w,data:l,keyword:t,it:n}=i,W=w.name("valid");for(let A in f){if((0,s1.alwaysValidSchema)(n,f[A]))continue;w.if((0,ul.propertyInData)(w,l,A,n.opts.ownProperties),()=>{let $=i.subschema({keyword:t,schemaProp:A},W);i.mergeValidEvaluated($,W)},()=>w.var(W,!0)),i.ok(W)}}LR.validateSchemaDeps=SR;LR.default=p1});var ER=N((PR)=>{Object.defineProperty(PR,"__esModule",{value:!0});var TR=Y(),wo=X(),lo={message:"property name must be valid",params:({params:i})=>TR._`{propertyName: ${i.propertyName}}`},to={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:lo,code(i){let{gen:f,schema:w,data:l,it:t}=i;if((0,wo.alwaysValidSchema)(t,w))return;let n=f.name("valid");f.forIn("key",l,(W)=>{i.setParams({propertyName:W}),i.subschema({keyword:"propertyNames",data:W,dataTypes:["string"],propertyName:W,compositeRule:!0},n),f.if((0,TR.not)(n),()=>{if(i.error(!0),!t.allErrors)f.break()})}),i.ok(n)}};PR.default=to});var lA=N((oR)=>{Object.defineProperty(oR,"__esModule",{value:!0});var Zt=Yi(),qi=Y(),Wo=If(),Kt=X(),Ao={message:"must NOT have additional properties",params:({params:i})=>qi._`{additionalProperty: ${i.additionalProperty}}`},Io={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Ao,code(i){let{gen:f,schema:w,parentSchema:l,data:t,errsCount:n,it:W}=i;if(!n)throw Error("ajv implementation error");let{allErrors:A,opts:$}=W;if(W.props=!0,$.removeAdditional!=="all"&&(0,Kt.alwaysValidSchema)(W,w))return;let I=(0,Zt.allSchemaProperties)(l.properties),k=(0,Zt.allSchemaProperties)(l.patternProperties);R(),i.ok(qi._`${n} === ${Wo.default.errors}`);function R(){f.forIn("key",t,(T)=>{if(!I.length&&!k.length)z(T);else f.if(C(T),()=>z(T))})}function C(T){let u;if(I.length>8){let S=(0,Kt.schemaRefOrVal)(W,l.properties,"properties");u=(0,Zt.isOwnProperty)(f,S,T)}else if(I.length)u=(0,qi.or)(...I.map((S)=>qi._`${T} === ${S}`));else u=qi.nil;if(k.length)u=(0,qi.or)(u,...k.map((S)=>qi._`${(0,Zt.usePattern)(i,S)}.test(${T})`));return(0,qi.not)(u)}function L(T){f.code(qi._`delete ${t}[${T}]`)}function z(T){if($.removeAdditional==="all"||$.removeAdditional&&w===!1){L(T);return}if(w===!1){if(i.setParams({additionalProperty:T}),i.error(),!A)f.break();return}if(typeof w=="object"&&!(0,Kt.alwaysValidSchema)(W,w)){let u=f.name("valid");if($.removeAdditional==="failing")y(T,u,!1),f.if((0,qi.not)(u),()=>{i.reset(),L(T)});else if(y(T,u),!A)f.if((0,qi.not)(u),()=>f.break())}}function y(T,u,S){let c={keyword:"additionalProperties",dataProp:T,dataPropType:Kt.Type.Str};if(S===!1)Object.assign(c,{compositeRule:!0,createErrors:!1,allErrors:!1});i.subschema(c,u)}}};oR.default=Io});var rR=N((bR)=>{Object.defineProperty(bR,"__esModule",{value:!0});var $o=il(),NR=Yi(),tA=X(),DR=lA(),Ro={keyword:"properties",type:"object",schemaType:"object",code(i){let{gen:f,schema:w,parentSchema:l,data:t,it:n}=i;if(n.opts.removeAdditional==="all"&&l.additionalProperties===void 0)DR.default.code(new $o.KeywordCxt(n,DR.default,"additionalProperties"));let W=(0,NR.allSchemaProperties)(w);for(let R of W)n.definedProperties.add(R);if(n.opts.unevaluated&&W.length&&n.props!==!0)n.props=tA.mergeEvaluated.props(f,(0,tA.toHash)(W),n.props);let A=W.filter((R)=>!(0,tA.alwaysValidSchema)(n,w[R]));if(A.length===0)return;let $=f.name("valid");for(let R of A){if(I(R))k(R);else{if(f.if((0,NR.propertyInData)(f,t,R,n.opts.ownProperties)),k(R),!n.allErrors)f.else().var($,!0);f.endIf()}i.it.definedProperties.add(R),i.ok($)}function I(R){return n.opts.useDefaults&&!n.compositeRule&&w[R].default!==void 0}function k(R){i.subschema({keyword:"properties",schemaProp:R,dataProp:R},$)}}};bR.default=Ro});var FR=N((YR)=>{Object.defineProperty(YR,"__esModule",{value:!0});var MR=Yi(),Qt=Y(),JR=X(),UR=X(),Co={keyword:"patternProperties",type:"object",schemaType:"object",code(i){let{gen:f,schema:w,data:l,parentSchema:t,it:n}=i,{opts:W}=n,A=(0,MR.allSchemaProperties)(w),$=A.filter((y)=>(0,JR.alwaysValidSchema)(n,w[y]));if(A.length===0||$.length===A.length&&(!n.opts.unevaluated||n.props===!0))return;let I=W.strictSchema&&!W.allowMatchingProperties&&t.properties,k=f.name("valid");if(n.props!==!0&&!(n.props instanceof Qt.Name))n.props=(0,UR.evaluatedPropsToName)(f,n.props);let{props:R}=n;C();function C(){for(let y of A){if(I)L(y);if(n.allErrors)z(y);else f.var(k,!0),z(y),f.if(k)}}function L(y){for(let T in I)if(new RegExp(y).test(T))(0,JR.checkStrictMode)(n,`property ${T} matches pattern ${y} (use allowMatchingProperties)`)}function z(y){f.forIn("key",l,(T)=>{f.if(Qt._`${(0,MR.usePattern)(i,y)}.test(${T})`,()=>{let u=$.includes(y);if(!u)i.subschema({keyword:"patternProperties",schemaProp:y,dataProp:T,dataPropType:UR.Type.Str},k);if(n.opts.unevaluated&&R!==!0)f.assign(Qt._`${R}[${T}]`,!0);else if(!u&&!n.allErrors)f.if((0,Qt.not)(k),()=>f.break())})})}}};YR.default=Co});var GR=N((XR)=>{Object.defineProperty(XR,"__esModule",{value:!0});var Lo=X(),zo={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(i){let{gen:f,schema:w,it:l}=i;if((0,Lo.alwaysValidSchema)(l,w)){i.fail();return}let t=f.name("valid");i.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},t),i.failResult(t,()=>i.reset(),()=>i.error())},error:{message:"must NOT be valid"}};XR.default=zo});var KR=N((ZR)=>{Object.defineProperty(ZR,"__esModule",{value:!0});var co=Yi(),To={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:co.validateUnion,error:{message:"must match a schema in anyOf"}};ZR.default=To});var BR=N((QR)=>{Object.defineProperty(QR,"__esModule",{value:!0});var Bt=Y(),Eo=X(),oo={message:"must match exactly one schema in oneOf",params:({params:i})=>Bt._`{passingSchemas: ${i.passing}}`},No={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:oo,code(i){let{gen:f,schema:w,parentSchema:l,it:t}=i;if(!Array.isArray(w))throw Error("ajv implementation error");if(t.opts.discriminator&&l.discriminator)return;let n=w,W=f.let("valid",!1),A=f.let("passing",null),$=f.name("_valid");i.setParams({passing:A}),f.block(I),i.result(W,()=>i.reset(),()=>i.error(!0));function I(){n.forEach((k,R)=>{let C;if((0,Eo.alwaysValidSchema)(t,k))f.var($,!0);else C=i.subschema({keyword:"oneOf",schemaProp:R,compositeRule:!0},$);if(R>0)f.if(Bt._`${$} && ${W}`).assign(W,!1).assign(A,Bt._`[${A}, ${R}]`).else();f.if($,()=>{if(f.assign(W,!0),f.assign(A,R),C)i.mergeEvaluated(C,Bt.Name)})})}}};QR.default=No});var HR=N((VR)=>{Object.defineProperty(VR,"__esModule",{value:!0});var bo=X(),ro={keyword:"allOf",schemaType:"array",code(i){let{gen:f,schema:w,it:l}=i;if(!Array.isArray(w))throw Error("ajv implementation error");let t=f.name("valid");w.forEach((n,W)=>{if((0,bo.alwaysValidSchema)(l,n))return;let A=i.subschema({keyword:"allOf",schemaProp:W},t);i.ok(t),i.mergeEvaluated(A)})}};VR.default=ro});var xR=N((hR)=>{Object.defineProperty(hR,"__esModule",{value:!0});var Vt=Y(),vR=X(),Jo={message:({params:i})=>Vt.str`must match "${i.ifClause}" schema`,params:({params:i})=>Vt._`{failingKeyword: ${i.ifClause}}`},Uo={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Jo,code(i){let{gen:f,parentSchema:w,it:l}=i;if(w.then===void 0&&w.else===void 0)(0,vR.checkStrictMode)(l,'"if" without "then" and "else" is ignored');let t=jR(l,"then"),n=jR(l,"else");if(!t&&!n)return;let W=f.let("valid",!0),A=f.name("_valid");if($(),i.reset(),t&&n){let k=f.let("ifClause");i.setParams({ifClause:k}),f.if(A,I("then",k),I("else",k))}else if(t)f.if(A,I("then"));else f.if((0,Vt.not)(A),I("else"));i.pass(W,()=>i.error(!0));function $(){let k=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},A);i.mergeEvaluated(k)}function I(k,R){return()=>{let C=i.subschema({keyword:k},A);if(f.assign(W,A),i.mergeValidEvaluated(C,W),R)f.assign(R,Vt._`${k}`);else i.setParams({ifClause:k})}}}};function jR(i,f){let w=i.schema[f];return w!==void 0&&!(0,vR.alwaysValidSchema)(i,w)}hR.default=Uo});var aR=N((OR)=>{Object.defineProperty(OR,"__esModule",{value:!0});var Fo=X(),Xo={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:i,parentSchema:f,it:w}){if(f.if===void 0)(0,Fo.checkStrictMode)(w,`"${i}" without "if" is ignored`)}};OR.default=Xo});var qR=N((mR)=>{Object.defineProperty(mR,"__esModule",{value:!0});var Zo=iA(),Ko=AR(),Qo=fA(),Bo=$R(),Vo=uR(),Ho=cR(),jo=ER(),vo=lA(),ho=rR(),xo=FR(),Oo=GR(),ao=KR(),mo=BR(),qo=HR(),go=xR(),_o=aR();function so(i=!1){let f=[Oo.default,ao.default,mo.default,qo.default,go.default,_o.default,jo.default,vo.default,Ho.default,ho.default,xo.default];if(i)f.push(Ko.default,Bo.default);else f.push(Zo.default,Qo.default);return f.push(Vo.default),f}mR.default=so});var dR=N((gR)=>{Object.defineProperty(gR,"__esModule",{value:!0});var p=Y(),eo={message:({schemaCode:i})=>p.str`must match format "${i}"`,params:({schemaCode:i})=>p._`{format: ${i}}`},iN={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:eo,code(i,f){let{gen:w,data:l,$data:t,schema:n,schemaCode:W,it:A}=i,{opts:$,errSchemaPath:I,schemaEnv:k,self:R}=A;if(!$.validateFormats)return;if(t)C();else L();function C(){let z=w.scopeValue("formats",{ref:R.formats,code:$.code.formats}),y=w.const("fDef",p._`${z}[${W}]`),T=w.let("fType"),u=w.let("format");w.if(p._`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>w.assign(T,p._`${y}.type || "string"`).assign(u,p._`${y}.validate`),()=>w.assign(T,p._`"string"`).assign(u,y)),i.fail$data((0,p.or)(S(),c()));function S(){if($.strictSchema===!1)return p.nil;return p._`${W} && !${u}`}function c(){let P=k.$async?p._`(${y}.async ? await ${u}(${l}) : ${u}(${l}))`:p._`${u}(${l})`,E=p._`(typeof ${u} == "function" ? ${P} : ${u}.test(${l}))`;return p._`${u} && ${u} !== true && ${T} === ${f} && !${E}`}}function L(){let z=R.formats[n];if(!z){S();return}if(z===!0)return;let[y,T,u]=c(z);if(y===f)i.pass(P());function S(){if($.strictSchema===!1){R.logger.warn(E());return}throw Error(E());function E(){return`unknown format "${n}" ignored in schema at path "${I}"`}}function c(E){let fi=E instanceof RegExp?(0,p.regexpCode)(E):$.code.formats?p._`${$.code.formats}${(0,p.getProperty)(n)}`:void 0,Ai=w.scopeValue("formats",{key:n,ref:E,code:fi});if(typeof E=="object"&&!(E instanceof RegExp))return[E.type||"string",E.validate,p._`${Ai}.validate`];return["string",E,Ai]}function P(){if(typeof z=="object"&&!(z instanceof RegExp)&&z.async){if(!k.$async)throw Error("async format in sync schema");return p._`await ${u}(${l})`}return typeof T=="function"?p._`${u}(${l})`:p._`${u}.test(${l})`}}}};gR.default=iN});var sR=N((_R)=>{Object.defineProperty(_R,"__esModule",{value:!0});var wN=dR(),lN=[wN.default];_R.default=lN});var iu=N((pR)=>{Object.defineProperty(pR,"__esModule",{value:!0});pR.contentVocabulary=pR.metadataVocabulary=void 0;pR.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];pR.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var lu=N((wu)=>{Object.defineProperty(wu,"__esModule",{value:!0});var WN=b0(),AN=p0(),IN=qR(),kN=sR(),fu=iu(),$N=[WN.default,AN.default,(0,IN.default)(),kN.default,fu.metadataVocabulary,fu.contentVocabulary];wu.default=$N});var Au=N((nu)=>{Object.defineProperty(nu,"__esModule",{value:!0});nu.DiscrError=void 0;var tu;(function(i){i.Tag="tag",i.Mapping="mapping"})(tu||(nu.DiscrError=tu={}))});var $u=N((ku)=>{Object.defineProperty(ku,"__esModule",{value:!0});var zw=Y(),nA=Au(),Iu=Et(),uN=fl(),CN=X(),SN={message:({params:{discrError:i,tagName:f}})=>i===nA.DiscrError.Tag?`tag "${f}" must be string`:`value of tag "${f}" must be in oneOf`,params:({params:{discrError:i,tag:f,tagName:w}})=>zw._`{error: ${i}, tag: ${w}, tagValue: ${f}}`},LN={keyword:"discriminator",type:"object",schemaType:"object",error:SN,code(i){let{gen:f,data:w,schema:l,parentSchema:t,it:n}=i,{oneOf:W}=t;if(!n.opts.discriminator)throw Error("discriminator: requires discriminator option");let A=l.propertyName;if(typeof A!="string")throw Error("discriminator: requires propertyName");if(l.mapping)throw Error("discriminator: mapping is not supported");if(!W)throw Error("discriminator: requires oneOf keyword");let $=f.let("valid",!1),I=f.const("tag",zw._`${w}${(0,zw.getProperty)(A)}`);f.if(zw._`typeof ${I} == "string"`,()=>k(),()=>i.error(!1,{discrError:nA.DiscrError.Tag,tag:I,tagName:A})),i.ok($);function k(){let L=C();f.if(!1);for(let z in L)f.elseIf(zw._`${I} === ${z}`),f.assign($,R(L[z]));f.else(),i.error(!1,{discrError:nA.DiscrError.Mapping,tag:I,tagName:A}),f.endIf()}function R(L){let z=f.name("valid"),y=i.subschema({keyword:"oneOf",schemaProp:L},z);return i.mergeEvaluated(y,zw.Name),z}function C(){var L;let z={},y=u(t),T=!0;for(let P=0;P<W.length;P++){let E=W[P];if((E===null||E===void 0?void 0:E.$ref)&&!(0,CN.schemaHasRulesButRef)(E,n.self.RULES)){let Ai=E.$ref;if(E=Iu.resolveRef.call(n.self,n.schemaEnv.root,n.baseId,Ai),E instanceof Iu.SchemaEnv)E=E.schema;if(E===void 0)throw new uN.default(n.opts.uriResolver,n.baseId,Ai)}let fi=(L=E===null||E===void 0?void 0:E.properties)===null||L===void 0?void 0:L[A];if(typeof fi!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${A}"`);T=T&&(y||u(E)),S(fi,P)}if(!T)throw Error(`discriminator: "${A}" must be required`);return z;function u({required:P}){return Array.isArray(P)&&P.includes(A)}function S(P,E){if(P.const)c(P.const,E);else if(P.enum)for(let fi of P.enum)c(fi,E);else throw Error(`discriminator: "properties/${A}" must have "const" or "enum"`)}function c(P,E){if(typeof P!="string"||P in z)throw Error(`discriminator: "${A}" values must be unique strings`);z[P]=E}}}};ku.default=LN});var Ru=N((VY,yN)=>{yN.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Cu=N((Pi,WA)=>{Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MissingRefError=Pi.ValidationError=Pi.CodeGen=Pi.Name=Pi.nil=Pi.stringify=Pi.str=Pi._=Pi.KeywordCxt=Pi.Ajv=void 0;var cN=L0(),TN=lu(),PN=$u(),uu=Ru(),EN=["/properties"],Ht="http://json-schema.org/draft-07/schema";class Cl extends cN.default{_addVocabularies(){if(super._addVocabularies(),TN.default.forEach((i)=>this.addVocabulary(i)),this.opts.discriminator)this.addKeyword(PN.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let i=this.opts.$data?this.$dataMetaSchema(uu,EN):uu;this.addMetaSchema(i,Ht,!1),this.refs["http://json-schema.org/schema"]=Ht}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ht)?Ht:void 0)}}Pi.Ajv=Cl;WA.exports=Pi=Cl;WA.exports.Ajv=Cl;Object.defineProperty(Pi,"__esModule",{value:!0});Pi.default=Cl;var oN=il();Object.defineProperty(Pi,"KeywordCxt",{enumerable:!0,get:function(){return oN.KeywordCxt}});var yw=Y();Object.defineProperty(Pi,"_",{enumerable:!0,get:function(){return yw._}});Object.defineProperty(Pi,"str",{enumerable:!0,get:function(){return yw.str}});Object.defineProperty(Pi,"stringify",{enumerable:!0,get:function(){return yw.stringify}});Object.defineProperty(Pi,"nil",{enumerable:!0,get:function(){return yw.nil}});Object.defineProperty(Pi,"Name",{enumerable:!0,get:function(){return yw.Name}});Object.defineProperty(Pi,"CodeGen",{enumerable:!0,get:function(){return yw.CodeGen}});var NN=Tt();Object.defineProperty(Pi,"ValidationError",{enumerable:!0,get:function(){return NN.default}});var DN=fl();Object.defineProperty(Pi,"MissingRefError",{enumerable:!0,get:function(){return DN.default}})});import{realpathSync as rC}from"node:fs";import{fileURLToPath as BD}from"node:url";var dA=FA(gA(),1),{program:dD,createCommand:_D,createArgument:sD,createOption:pD,CommanderError:_A,InvalidArgumentError:eD,InvalidOptionArgumentError:ib,Command:sA,Argument:fb,Option:wb,Help:lb}=dA.default;function pA(i){return i.status===408||i.status===429||i.status>=500}async function Mw(i){let f=i.now??Date.now,w=i.deadline===void 0?1/0:i.deadline-f();if(w<=0)throw Error("The auth provider request deadline expired.");let l=new AbortController,t=setTimeout(()=>l.abort(),Math.min(i.timeoutMs??1e4,w));try{return await i.fetch(i.url,{...i.init,signal:l.signal})}finally{clearTimeout(t)}}import{createHash as BS}from"node:crypto";import{chmod as VS,lstat as HS,mkdir as jS}from"node:fs/promises";import{join as vS}from"node:path";import{spawn as JS}from"node:child_process";import{constants as Cn}from"node:fs";import{lstat as eA,open as US}from"node:fs/promises";var YS=1,iI="printf '\\001'; exec /bin/cat >/dev/null",FS=String.raw`
24
+ `),this.outputHelp({error:!0});let i=r||{},n=i.exitCode||1,t=i.code||"commander.error";this._exit(n,t,e)}_parseOptionsEnv(){this.options.forEach((e)=>{if(e.envVar&&e.envVar in O.env){let r=e.attributeName();if(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))if(e.required||e.optional)this.emit(`optionEnv:${e.name()}`,O.env[e.envVar]);else this.emit(`optionEnv:${e.name()}`)}})}_parseOptionsImplied(){let e=new zp(this.options),r=(i)=>{return this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i))};this.options.filter((i)=>i.implied!==void 0&&r(i.attributeName())&&e.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach((i)=>{Object.keys(i.implied).filter((n)=>!r(n)).forEach((n)=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let i=(a)=>{let o=a.attributeName(),s=this.getOptionValue(o),u=this.options.find((d)=>d.negate&&o===d.attributeName()),l=this.options.find((d)=>!d.negate&&o===d.attributeName());if(u&&(u.presetArg===void 0&&s===!1||u.presetArg!==void 0&&s===u.presetArg))return u;return l||a},n=(a)=>{let o=i(a),s=o.attributeName();if(this.getOptionValueSource(s)==="env")return`environment variable '${o.envVar}'`;return`option '${o.flags}'`},t=`error: ${n(e)} cannot be used with ${n(r)}`;this.error(t,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],t=this;do{let a=t.createHelp().visibleOptions(t).filter((o)=>o.long).map((o)=>o.long);n=n.concat(a),t=t.parent}while(t&&!t._enablePositionalOptions);r=Qo(e,n)}let i=`error: unknown option '${e}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",t=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${e.length}.`;this.error(t,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach((t)=>{if(n.push(t.name()),t.alias())n.push(t.alias())}),r=Qo(e,n)}let i=`error: unknown command '${e}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(e,r,i){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${e}
25
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){if(e===void 0&&r===void 0)return this._description;if(this._description=e,r)this._argsDescription=r;return this}summary(e){if(e===void 0)return this._summary;return this._summary=e,this}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)r=this.commands[this.commands.length-1];if(e===r._name)throw Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(e),this}aliases(e){if(e===void 0)return this._aliases;return e.forEach((r)=>this.alias(r)),this}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map((i)=>{return Lp(i)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){if(e===void 0)return this._name;return this._name=e,this}helpGroup(e){if(e===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=e,this}commandsGroup(e){if(e===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=e,this}optionsGroup(e){if(e===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=e,this}_initOptionGroup(e){if(this._defaultOptionGroup&&!e.helpGroupHeading)e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){if(this._defaultCommandGroup&&!e.helpGroup())e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=Oe.basename(e,Oe.extname(e)),this}executableDir(e){if(e===void 0)return this._executableDir;return this._executableDir=e,this}helpInformation(e){let r=this.createHelp(),i=this._getOutputContext(e);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let n=r.formatHelp(this,r);if(i.hasColors)return n;return this._outputConfiguration.stripColor(n)}_getOutputContext(e){e=e||{};let r=!!e.error,i,n,t;if(r)i=(o)=>this._outputConfiguration.writeErr(o),n=this._outputConfiguration.getErrHasColors(),t=this._outputConfiguration.getErrHelpWidth();else i=(o)=>this._outputConfiguration.writeOut(o),n=this._outputConfiguration.getOutHasColors(),t=this._outputConfiguration.getOutHelpWidth();return{error:r,write:(o)=>{if(!n)o=this._outputConfiguration.stripColor(o);return i(o)},hasColors:n,helpWidth:t}}outputHelp(e){let r;if(typeof e==="function")r=e,e=void 0;let i=this._getOutputContext(e),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach((a)=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let t=this.helpInformation({error:i.error});if(r){if(t=r(t),typeof t!=="string"&&!Buffer.isBuffer(t))throw Error("outputHelp callback must return a string or a Buffer")}if(i.write(t),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",n),this._getCommandAndAncestors().forEach((a)=>a.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e==="boolean"){if(e){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(e??"-h, --help",r??"display help for command"),e||r)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let r=Number(O.exitCode??0);if(r===0&&e&&typeof e!=="function"&&e.error)r=1;this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw Error(`Unexpected value for position to addHelpText.
26
+ Expecting one of '${i.join("', '")}'`);let n=`${e}Help`;return this.on(n,(t)=>{let a;if(typeof r==="function")a=r({error:t.error,command:t.command});else a=r;if(a)t.write(`${a}
27
+ `)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();if(r&&e.find((n)=>r.is(n)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function xo(e){return e.map((r)=>{if(!r.startsWith("--inspect"))return r;let i,n="127.0.0.1",t="9229",a;if((a=r.match(/^(--inspect(-brk)?)$/))!==null)i=a[1];else if((a=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(i=a[1],/^\d+$/.test(a[3]))t=a[3];else n=a[3];else if((a=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)i=a[1],n=a[3],t=a[4];if(i&&t!=="0")return`${i}=${n}:${parseInt(t)+1}`;return r})}function Lt(){if(O.env.NO_COLOR||O.env.FORCE_COLOR==="0"||O.env.FORCE_COLOR==="false")return!1;if(O.env.FORCE_COLOR||O.env.CLICOLOR_FORCE!==void 0)return!0;return}vp.Command=Wt;vp.useColor=Lt});var ns=y((Tp)=>{var{Argument:es}=xi(),{Command:St}=_o(),{CommanderError:$p,InvalidArgumentError:rs}=Hr(),{Help:Vp}=kt(),{Option:is}=bt();Tp.program=new St;Tp.createCommand=(e)=>new St(e);Tp.createOption=(e,r)=>new is(e,r);Tp.createArgument=(e,r)=>new es(e,r);Tp.Command=St;Tp.Option=is;Tp.Argument=es;Tp.Help=Vp;Tp.CommanderError=$p;Tp.InvalidArgumentError=rs;Tp.InvalidOptionArgumentError=rs});var fi=y((su)=>{Object.defineProperty(su,"__esModule",{value:!0});su.regexpCode=su.getEsmExportName=su.getProperty=su.safeStringify=su.stringify=su.strConcat=su.addCodeArg=su.str=su._=su.nil=su._Code=su.Name=su.IDENTIFIER=su._CodeOrName=void 0;class wn{}su._CodeOrName=wn;su.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Sr extends wn{constructor(e){super();if(!su.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}su.Name=Sr;class Ce extends wn{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,i)=>`${r}${i}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,i)=>{if(i instanceof Sr)r[i.str]=(r[i.str]||0)+1;return r},{})}}su._Code=Ce;su.nil=new Ce("");function au(e,...r){let i=[e[0]],n=0;while(n<r.length)ha(i,r[n]),i.push(e[++n]);return new Ce(i)}su._=au;var qa=new Ce("+");function ou(e,...r){let i=[ci(e[0])],n=0;while(n<r.length)i.push(qa),ha(i,r[n]),i.push(qa,ci(e[++n]));return Nq(i),new Ce(i)}su.str=ou;function ha(e,r){if(r instanceof Ce)e.push(...r._items);else if(r instanceof Sr)e.push(r);else e.push(Gq(r))}su.addCodeArg=ha;function Nq(e){let r=1;while(r<e.length-1){if(e[r]===qa){let i=Dq(e[r-1],e[r+1]);if(i!==void 0){e.splice(r-1,3,i);continue}e[r++]="+"}r++}}function Dq(e,r){if(r==='""')return e;if(e==='""')return r;if(typeof e=="string"){if(r instanceof Sr||e[e.length-1]!=='"')return;if(typeof r!="string")return`${e.slice(0,-1)}${r}"`;if(r[0]==='"')return e.slice(0,-1)+r.slice(1);return}if(typeof r=="string"&&r[0]==='"'&&!(e instanceof Sr))return`"${e}${r.slice(1)}`;return}function jq(e,r){return r.emptyStr()?e:e.emptyStr()?r:ou`${e}${r}`}su.strConcat=jq;function Gq(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ci(Array.isArray(e)?e.join(","):e)}function Uq(e){return new Ce(ci(e))}su.stringify=Uq;function ci(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}su.safeStringify=ci;function Jq(e){return typeof e=="string"&&su.IDENTIFIER.test(e)?new Ce(`.${e}`):au`[${e}]`}su.getProperty=Jq;function Mq(e){if(typeof e=="string"&&su.IDENTIFIER.test(e))return new Ce(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}su.getEsmExportName=Mq;function Yq(e){return new Ce(e.toString())}su.regexpCode=Yq});var ga=y((cu)=>{Object.defineProperty(cu,"__esModule",{value:!0});cu.ValueScope=cu.ValueScopeName=cu.Scope=cu.varKinds=cu.UsedValueState=void 0;var re=fi();class lu extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var An;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(An||(cu.UsedValueState=An={}));cu.varKinds={const:new re.Name("const"),let:new re.Name("let"),var:new re.Name("var")};class ya{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof re.Name?e:this.name(e)}name(e){return new re.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,i;if(((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0?void 0:i.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}cu.Scope=ya;class Aa extends re.Name{constructor(e,r){super(r);this.prefix=e}setValue(e,{property:r,itemIndex:i}){this.value=e,this.scopePath=re._`.${new re.Name(r)}[${i}]`}}cu.ValueScopeName=Aa;var th=re._`\n`;class du extends ya{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?th:re.nil}}get(){return this._scope}name(e){return new Aa(e,this._newName(e))}value(e,r){var i;if(r.ref===void 0)throw Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:t}=n,a=(i=r.key)!==null&&i!==void 0?i:r.ref,o=this._values[t];if(o){let l=o.get(a);if(l)return l}else o=this._values[t]=new Map;o.set(a,n);let s=this._scope[t]||(this._scope[t]=[]),u=s.length;return s[u]=r.ref,n.setValue(r,{property:t,itemIndex:u}),n}getValue(e,r){let i=this._values[e];if(!i)return;return i.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,(i)=>{if(i.scopePath===void 0)throw Error(`CodeGen: name "${i}" has no value`);return re._`${e}${i.scopePath}`})}scopeCode(e=this._values,r,i){return this._reduceValues(e,(n)=>{if(n.value===void 0)throw Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,i)}_reduceValues(e,r,i={},n){let t=re.nil;for(let a in e){let o=e[a];if(!o)continue;let s=i[a]=i[a]||new Map;o.forEach((u)=>{if(s.has(u))return;s.set(u,An.Started);let l=r(u);if(l){let d=this.opts.es5?cu.varKinds.var:cu.varKinds.const;t=re._`${t}${d} ${u} = ${l};${this.opts._n}`}else if(l=n===null||n===void 0?void 0:n(u))t=re._`${t}${l}${this.opts._n}`;else throw new lu(u);s.set(u,An.Completed)})}return t}}cu.ValueScope=du});var S=y((ie)=>{Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var z=fi(),ke=ga(),Fe=fi();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return Fe._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return Fe.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return Fe.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return Fe.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return Fe.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return Fe.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return Fe.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return Fe.Name}});var Xn=ga();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Xn.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Xn.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Xn.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Xn.varKinds}});ie.operators={GT:new z._Code(">"),GTE:new z._Code(">="),LT:new z._Code("<"),LTE:new z._Code("<="),EQ:new z._Code("==="),NEQ:new z._Code("!=="),NOT:new z._Code("!"),OR:new z._Code("||"),AND:new z._Code("&&"),ADD:new z._Code("+")};class Ke{optimizeNodes(){return this}optimizeNames(e,r){return this}}class mu extends Ke{constructor(e,r,i){super();this.varKind=e,this.name=r,this.rhs=i}render({es5:e,_n:r}){let i=e?ke.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+r}optimizeNames(e,r){if(!e[this.name.str])return;if(this.rhs)this.rhs=vr(this.rhs,e,r);return this}get names(){return this.rhs instanceof z._CodeOrName?this.rhs.names:{}}}class ba extends Ke{constructor(e,r,i){super();this.lhs=e,this.rhs=r,this.sideEffects=i}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(this.lhs instanceof z.Name&&!e[this.lhs.str]&&!this.sideEffects)return;return this.rhs=vr(this.rhs,e,r),this}get names(){let e=this.lhs instanceof z.Name?{}:{...this.lhs.names};return Rn(e,this.rhs)}}class pu extends ba{constructor(e,r,i,n){super(e,i,n);this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class Iu extends Ke{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class qu extends Ke{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class hu extends Ke{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class wu extends Ke{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=vr(this.code,e,r),this}get names(){return this.code instanceof z._CodeOrName?this.code.names:{}}}class Ln extends Ke{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((r,i)=>r+i.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;while(r--){let i=e[r].optimizeNodes();if(Array.isArray(i))e.splice(r,1,...i);else if(i)e[r]=i;else e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:i}=this,n=i.length;while(n--){let t=i[n];if(t.optimizeNames(e,r))continue;uh(e,t.names),i.splice(n,1)}return i.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>cr(e,r.names),{})}}class He extends Ln{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class yu extends Ln{}class mi extends He{}mi.kind="else";class Ee extends He{constructor(e,r){super(r);this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);if(this.else)r+="else "+this.else.render(e);return r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new mi(i):i}if(r){if(e===!1)return r instanceof Ee?r:r.nodes;if(this.nodes.length)return this;return new Ee(bu(e),r instanceof Ee?[r]:r.nodes)}if(e===!1||!this.nodes.length)return;return this}optimizeNames(e,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(e,r),!(super.optimizeNames(e,r)||this.else))return;return this.condition=vr(this.condition,e,r),this}get names(){let e=super.names;if(Rn(e,this.condition),this.else)cr(e,this.else.names);return e}}Ee.kind="if";class zr extends He{}zr.kind="for";class Au extends zr{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;return this.iteration=vr(this.iteration,e,r),this}get names(){return cr(super.names,this.iteration.names)}}class gu extends zr{constructor(e,r,i,n){super();this.varKind=e,this.name=r,this.from=i,this.to=n}render(e){let r=e.es5?ke.varKinds.var:this.varKind,{name:i,from:n,to:t}=this;return`for(${r} ${i}=${n}; ${i}<${t}; ${i}++)`+super.render(e)}get names(){let e=Rn(super.names,this.from);return Rn(e,this.to)}}class Ca extends zr{constructor(e,r,i,n){super();this.loop=e,this.varKind=r,this.name=i,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;return this.iterable=vr(this.iterable,e,r),this}get names(){return cr(super.names,this.iterable.names)}}class gn extends He{constructor(e,r,i){super();this.name=e,this.args=r,this.async=i}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}gn.kind="func";class Cn extends Ln{render(e){return"return "+super.render(e)}}Cn.kind="return";class Cu extends He{render(e){let r="try"+super.render(e);if(this.catch)r+=this.catch.render(e);if(this.finally)r+=this.finally.render(e);return r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var i,n;return super.optimizeNames(e,r),(i=this.catch)===null||i===void 0||i.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;if(this.catch)cr(e,this.catch.names);if(this.finally)cr(e,this.finally.names);return e}}class kn extends He{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}kn.kind="catch";class bn extends He{render(e){return"finally"+super.render(e)}}bn.kind="finally";class ku{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
28
+ `:""},this._extScope=e,this._scope=new ke.Scope({parent:e}),this._nodes=[new yu]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let i=this._extScope.value(e,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,i,n){let t=this._scope.toName(r);if(i!==void 0&&n)this._constants[t.str]=i;return this._leafNode(new mu(e,t,i)),t}const(e,r,i){return this._def(ke.varKinds.const,e,r,i)}let(e,r,i){return this._def(ke.varKinds.let,e,r,i)}var(e,r,i){return this._def(ke.varKinds.var,e,r,i)}assign(e,r,i){return this._leafNode(new ba(e,r,i))}add(e,r){return this._leafNode(new pu(e,ie.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==z.nil)this._leafNode(new wu(e));return this}object(...e){let r=["{"];for(let[i,n]of e){if(r.length>1)r.push(",");if(r.push(i),i!==n||this.opts.es5)r.push(":"),(0,z.addCodeArg)(r,n)}return r.push("}"),new z._Code(r)}if(e,r,i){if(this._blockNode(new Ee(e)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ee(e))}else(){return this._elseNode(new mi)}endIf(){return this._endBlockNode(Ee,mi)}_for(e,r){if(this._blockNode(e),r)this.code(r).endFor();return this}for(e,r){return this._for(new Au(e),r)}forRange(e,r,i,n,t=this.opts.es5?ke.varKinds.var:ke.varKinds.let){let a=this._scope.toName(e);return this._for(new gu(t,a,r,i),()=>n(a))}forOf(e,r,i,n=ke.varKinds.const){let t=this._scope.toName(e);if(this.opts.es5){let a=r instanceof z.Name?r:this.var("_arr",r);return this.forRange("_i",0,z._`${a}.length`,(o)=>{this.var(t,z._`${a}[${o}]`),i(t)})}return this._for(new Ca("of",n,t,r),()=>i(t))}forIn(e,r,i,n=this.opts.es5?ke.varKinds.var:ke.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,z._`Object.keys(${r})`,i);let t=this._scope.toName(e);return this._for(new Ca("in",n,t,r),()=>i(t))}endFor(){return this._endBlockNode(zr)}label(e){return this._leafNode(new Iu(e))}break(e){return this._leafNode(new qu(e))}return(e){let r=new Cn;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(Cn)}try(e,r,i){if(!r&&!i)throw Error('CodeGen: "try" without "catch" and "finally"');let n=new Cu;if(this._blockNode(n),this.code(e),r){let t=this.name("e");this._currNode=n.catch=new kn(t),r(t)}if(i)this._currNode=n.finally=new bn,this.code(i);return this._endBlockNode(kn,bn)}throw(e){return this._leafNode(new hu(e))}block(e,r){if(this._blockStarts.push(this._nodes.length),e)this.code(e).endBlock(r);return this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||e!==void 0&&i!==e)throw Error(`CodeGen: wrong number of nodes: ${i} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=z.nil,i,n){if(this._blockNode(new gn(e,r,i)),n)this.code(n).endFunc();return this}endFunc(){return this._endBlockNode(gn)}optimize(e=1){while(e-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let i=this._currNode;if(i instanceof e||r&&i instanceof r)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ee))throw Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}}ie.CodeGen=ku;function cr(e,r){for(let i in r)e[i]=(e[i]||0)+(r[i]||0);return e}function Rn(e,r){return r instanceof z._CodeOrName?cr(e,r.names):e}function vr(e,r,i){if(e instanceof z.Name)return n(e);if(!t(e))return e;return new z._Code(e._items.reduce((a,o)=>{if(o instanceof z.Name)o=n(o);if(o instanceof z._Code)a.push(...o._items);else a.push(o);return a},[]));function n(a){let o=i[a.str];if(o===void 0||r[a.str]!==1)return a;return delete r[a.str],o}function t(a){return a instanceof z._Code&&a._items.some((o)=>o instanceof z.Name&&r[o.str]===1&&i[o.str]!==void 0)}}function uh(e,r){for(let i in r)e[i]=(e[i]||0)-(r[i]||0)}function bu(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:z._`!${ka(e)}`}ie.not=bu;var lh=Ru(ie.operators.AND);function dh(...e){return e.reduce(lh)}ie.and=dh;var ch=Ru(ie.operators.OR);function fh(...e){return e.reduce(ch)}ie.or=fh;function Ru(e){return(r,i)=>r===z.nil?i:i===z.nil?r:z._`${ka(r)} ${e} ${ka(i)}`}function ka(e){return e instanceof z.Name?e:z._`(${e})`}});var v=y(($u)=>{Object.defineProperty($u,"__esModule",{value:!0});$u.checkStrictMode=$u.getErrorPath=$u.Type=$u.useFunc=$u.setEvaluated=$u.evaluatedPropsToName=$u.mergeEvaluated=$u.eachItem=$u.unescapeJsonPointer=$u.escapeJsonPointer=$u.escapeFragment=$u.unescapeFragment=$u.schemaRefOrVal=$u.schemaHasRulesButRef=$u.schemaHasRules=$u.checkUnknownRules=$u.alwaysValidSchema=$u.toHash=void 0;var T=S(),qh=fi();function hh(e){let r={};for(let i of e)r[i]=!0;return r}$u.toHash=hh;function wh(e,r){if(typeof r=="boolean")return r;if(Object.keys(r).length===0)return!0;return Su(e,r),!zu(r,e.self.RULES.all)}$u.alwaysValidSchema=wh;function Su(e,r=e.schema){let{opts:i,self:n}=e;if(!i.strictSchema)return;if(typeof r==="boolean")return;let t=n.RULES.keywords;for(let a in r)if(!t[a])Ou(e,`unknown keyword: "${a}"`)}$u.checkUnknownRules=Su;function zu(e,r){if(typeof e=="boolean")return!e;for(let i in e)if(r[i])return!0;return!1}$u.schemaHasRules=zu;function yh(e,r){if(typeof e=="boolean")return!e;for(let i in e)if(i!=="$ref"&&r.all[i])return!0;return!1}$u.schemaHasRulesButRef=yh;function Ah({topSchemaRef:e,schemaPath:r},i,n,t){if(!t){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return T._`${i}`}return T._`${e}${r}${(0,T.getProperty)(n)}`}$u.schemaRefOrVal=Ah;function gh(e){return vu(decodeURIComponent(e))}$u.unescapeFragment=gh;function Ch(e){return encodeURIComponent(Xa(e))}$u.escapeFragment=Ch;function Xa(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}$u.escapeJsonPointer=Xa;function vu(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}$u.unescapeJsonPointer=vu;function kh(e,r){if(Array.isArray(e))for(let i of e)r(i);else r(e)}$u.eachItem=kh;function Lu({mergeNames:e,mergeToName:r,mergeValues:i,resultToName:n}){return(t,a,o,s)=>{let u=o===void 0?a:o instanceof T.Name?(a instanceof T.Name?e(t,a,o):r(t,a,o),o):a instanceof T.Name?(r(t,o,a),a):i(a,o);return s===T.Name&&!(u instanceof T.Name)?n(t,u):u}}$u.mergeEvaluated={props:Lu({mergeNames:(e,r,i)=>e.if(T._`${i} !== true && ${r} !== undefined`,()=>{e.if(T._`${r} === true`,()=>e.assign(i,!0),()=>e.assign(i,T._`${i} || {}`).code(T._`Object.assign(${i}, ${r})`))}),mergeToName:(e,r,i)=>e.if(T._`${i} !== true`,()=>{if(r===!0)e.assign(i,!0);else e.assign(i,T._`${i} || {}`),La(e,i,r)}),mergeValues:(e,r)=>e===!0?!0:{...e,...r},resultToName:Pu}),items:Lu({mergeNames:(e,r,i)=>e.if(T._`${i} !== true && ${r} !== undefined`,()=>e.assign(i,T._`${r} === true ? true : ${i} > ${r} ? ${i} : ${r}`)),mergeToName:(e,r,i)=>e.if(T._`${i} !== true`,()=>e.assign(i,r===!0?!0:T._`${i} > ${r} ? ${i} : ${r}`)),mergeValues:(e,r)=>e===!0?!0:Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})};function Pu(e,r){if(r===!0)return e.var("props",!0);let i=e.var("props",T._`{}`);if(r!==void 0)La(e,i,r);return i}$u.evaluatedPropsToName=Pu;function La(e,r,i){Object.keys(i).forEach((n)=>e.assign(T._`${r}${(0,T.getProperty)(n)}`,!0))}$u.setEvaluated=La;var Wu={};function bh(e,r){return e.scopeValue("func",{ref:r,code:Wu[r.code]||(Wu[r.code]=new qh._Code(r.code))})}$u.useFunc=bh;var Ra;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ra||($u.Type=Ra={}));function Rh(e,r,i){if(e instanceof T.Name){let n=r===Ra.Num;return i?n?T._`"[" + ${e} + "]"`:T._`"['" + ${e} + "']"`:n?T._`"/" + ${e}`:T._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,T.getProperty)(e).toString():"/"+Xa(e)}$u.getErrorPath=Rh;function Ou(e,r,i=e.opts.strictSchema){if(!i)return;if(r=`strict mode: ${r}`,i===!0)throw Error(r);e.self.logger.warn(r)}$u.checkStrictMode=Ou});var Ne=y((Tu)=>{Object.defineProperty(Tu,"__esModule",{value:!0});var Y=S(),Jh={data:new Y.Name("data"),valCxt:new Y.Name("valCxt"),instancePath:new Y.Name("instancePath"),parentData:new Y.Name("parentData"),parentDataProperty:new Y.Name("parentDataProperty"),rootData:new Y.Name("rootData"),dynamicAnchors:new Y.Name("dynamicAnchors"),vErrors:new Y.Name("vErrors"),errors:new Y.Name("errors"),this:new Y.Name("this"),self:new Y.Name("self"),scope:new Y.Name("scope"),json:new Y.Name("json"),jsonPos:new Y.Name("jsonPos"),jsonLen:new Y.Name("jsonLen"),jsonPart:new Y.Name("jsonPart")};Tu.default=Jh});var pi=y((ju)=>{Object.defineProperty(ju,"__esModule",{value:!0});ju.extendErrors=ju.resetErrorsCount=ju.reportExtraError=ju.reportError=ju.keyword$DataError=ju.keywordError=void 0;var P=S(),Sn=v(),Q=Ne();ju.keywordError={message:({keyword:e})=>P.str`must pass "${e}" keyword validation`};ju.keyword$DataError={message:({keyword:e,schemaType:r})=>r?P.str`"${e}" keyword must be ${r} ($data)`:P.str`"${e}" keyword is invalid ($data)`};function Yh(e,r=ju.keywordError,i,n){let{it:t}=e,{gen:a,compositeRule:o,allErrors:s}=t,u=Du(e,r,i);if(n!==null&&n!==void 0?n:o||s)Eu(a,u);else Nu(t,P._`[${u}]`)}ju.reportError=Yh;function Bh(e,r=ju.keywordError,i){let{it:n}=e,{gen:t,compositeRule:a,allErrors:o}=n,s=Du(e,r,i);if(Eu(t,s),!(a||o))Nu(n,Q.default.vErrors)}ju.reportExtraError=Bh;function Fh(e,r){e.assign(Q.default.errors,r),e.if(P._`${Q.default.vErrors} !== null`,()=>e.if(r,()=>e.assign(P._`${Q.default.vErrors}.length`,r),()=>e.assign(Q.default.vErrors,null)))}ju.resetErrorsCount=Fh;function Kh({gen:e,keyword:r,schemaValue:i,data:n,errsCount:t,it:a}){if(t===void 0)throw Error("ajv implementation error");let o=e.name("err");e.forRange("i",t,Q.default.errors,(s)=>{if(e.const(o,P._`${Q.default.vErrors}[${s}]`),e.if(P._`${o}.instancePath === undefined`,()=>e.assign(P._`${o}.instancePath`,(0,P.strConcat)(Q.default.instancePath,a.errorPath))),e.assign(P._`${o}.schemaPath`,P.str`${a.errSchemaPath}/${r}`),a.opts.verbose)e.assign(P._`${o}.schema`,i),e.assign(P._`${o}.data`,n)})}ju.extendErrors=Kh;function Eu(e,r){let i=e.const("err",r);e.if(P._`${Q.default.vErrors} === null`,()=>e.assign(Q.default.vErrors,P._`[${i}]`),P._`${Q.default.vErrors}.push(${i})`),e.code(P._`${Q.default.errors}++`)}function Nu(e,r){let{gen:i,validateName:n,schemaEnv:t}=e;if(t.$async)i.throw(P._`new ${e.ValidationError}(${r})`);else i.assign(P._`${n}.errors`,r),i.return(!1)}var fr={keyword:new P.Name("keyword"),schemaPath:new P.Name("schemaPath"),params:new P.Name("params"),propertyName:new P.Name("propertyName"),message:new P.Name("message"),schema:new P.Name("schema"),parentSchema:new P.Name("parentSchema")};function Du(e,r,i){let{createErrors:n}=e.it;if(n===!1)return P._`{}`;return Hh(e,r,i)}function Hh(e,r,i={}){let{gen:n,it:t}=e,a=[Zh(t,i),Qh(e,i)];return xh(e,r,a),n.object(...a)}function Zh({errorPath:e},{instancePath:r}){let i=r?P.str`${e}${(0,Sn.getErrorPath)(r,Sn.Type.Str)}`:e;return[Q.default.instancePath,(0,P.strConcat)(Q.default.instancePath,i)]}function Qh({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:n}){let t=n?r:P.str`${r}/${e}`;if(i)t=P.str`${t}${(0,Sn.getErrorPath)(i,Sn.Type.Str)}`;return[fr.schemaPath,t]}function xh(e,{params:r,message:i},n){let{keyword:t,data:a,schemaValue:o,it:s}=e,{opts:u,propertyName:l,topSchemaRef:d,schemaPath:c}=s;if(n.push([fr.keyword,t],[fr.params,typeof r=="function"?r(e):r||P._`{}`]),u.messages)n.push([fr.message,typeof i=="function"?i(e):i]);if(u.verbose)n.push([fr.schema,o],[fr.parentSchema,P._`${d}${c}`],[Q.default.data,a]);if(l)n.push([fr.propertyName,l])}});var Yu=y((Ju)=>{Object.defineProperty(Ju,"__esModule",{value:!0});Ju.boolOrEmptySchema=Ju.topBoolOrEmptySchema=void 0;var nw=pi(),tw=S(),aw=Ne(),ow={message:"boolean schema is false"};function sw(e){let{gen:r,schema:i,validateName:n}=e;if(i===!1)Uu(e,!1);else if(typeof i=="object"&&i.$async===!0)r.return(aw.default.data);else r.assign(tw._`${n}.errors`,null),r.return(!0)}Ju.topBoolOrEmptySchema=sw;function uw(e,r){let{gen:i,schema:n}=e;if(n===!1)i.var(r,!1),Uu(e);else i.var(r,!0)}Ju.boolOrEmptySchema=uw;function Uu(e,r){let{gen:i,data:n}=e,t={gen:i,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,nw.reportError)(t,ow,void 0,r)}});var Sa=y((Bu)=>{Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getRules=Bu.isJSONType=void 0;var dw=["string","number","integer","boolean","null","object","array"],cw=new Set(dw);function fw(e){return typeof e=="string"&&cw.has(e)}Bu.isJSONType=fw;function mw(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Bu.getRules=mw});var za=y((Zu)=>{Object.defineProperty(Zu,"__esModule",{value:!0});Zu.shouldUseRule=Zu.shouldUseGroup=Zu.schemaHasRulesForType=void 0;function Iw({schema:e,self:r},i){let n=r.RULES.types[i];return n&&n!==!0&&Ku(e,n)}Zu.schemaHasRulesForType=Iw;function Ku(e,r){return r.rules.some((i)=>Hu(e,i))}Zu.shouldUseGroup=Ku;function Hu(e,r){var i;return e[r.keyword]!==void 0||((i=r.definition.implements)===null||i===void 0?void 0:i.some((n)=>e[n]!==void 0))}Zu.shouldUseRule=Hu});var Ii=y((rl)=>{Object.defineProperty(rl,"__esModule",{value:!0});rl.reportTypeError=rl.checkDataTypes=rl.checkDataType=rl.coerceAndCheckDataType=rl.getJSONTypes=rl.getSchemaTypes=rl.DataType=void 0;var ww=Sa(),yw=za(),Aw=pi(),L=S(),xu=v(),Pr;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Pr||(rl.DataType=Pr={}));function gw(e){let r=_u(e.type);if(r.includes("null")){if(e.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!r.length&&e.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(e.nullable===!0)r.push("null")}return r}rl.getSchemaTypes=gw;function _u(e){let r=Array.isArray(e)?e:e?[e]:[];if(r.every(ww.isJSONType))return r;throw Error("type must be JSONType or JSONType[]: "+r.join(","))}rl.getJSONTypes=_u;function Cw(e,r){let{gen:i,data:n,opts:t}=e,a=kw(r,t.coerceTypes),o=r.length>0&&!(a.length===0&&r.length===1&&(0,yw.schemaHasRulesForType)(e,r[0]));if(o){let s=Pa(r,n,t.strictNumbers,Pr.Wrong);i.if(s,()=>{if(a.length)bw(e,r,a);else Oa(e)})}return o}rl.coerceAndCheckDataType=Cw;var el=new Set(["string","number","integer","boolean","null"]);function kw(e,r){return r?e.filter((i)=>el.has(i)||r==="array"&&i==="array"):[]}function bw(e,r,i){let{gen:n,data:t,opts:a}=e,o=n.let("dataType",L._`typeof ${t}`),s=n.let("coerced",L._`undefined`);if(a.coerceTypes==="array")n.if(L._`${o} == 'object' && Array.isArray(${t}) && ${t}.length == 1`,()=>n.assign(t,L._`${t}[0]`).assign(o,L._`typeof ${t}`).if(Pa(r,t,a.strictNumbers),()=>n.assign(s,t)));n.if(L._`${s} !== undefined`);for(let l of i)if(el.has(l)||l==="array"&&a.coerceTypes==="array")u(l);n.else(),Oa(e),n.endIf(),n.if(L._`${s} !== undefined`,()=>{n.assign(t,s),Rw(e,s)});function u(l){switch(l){case"string":n.elseIf(L._`${o} == "number" || ${o} == "boolean"`).assign(s,L._`"" + ${t}`).elseIf(L._`${t} === null`).assign(s,L._`""`);return;case"number":n.elseIf(L._`${o} == "boolean" || ${t} === null
29
+ || (${o} == "string" && ${t} && ${t} == +${t})`).assign(s,L._`+${t}`);return;case"integer":n.elseIf(L._`${o} === "boolean" || ${t} === null
30
+ || (${o} === "string" && ${t} && ${t} == +${t} && !(${t} % 1))`).assign(s,L._`+${t}`);return;case"boolean":n.elseIf(L._`${t} === "false" || ${t} === 0 || ${t} === null`).assign(s,!1).elseIf(L._`${t} === "true" || ${t} === 1`).assign(s,!0);return;case"null":n.elseIf(L._`${t} === "" || ${t} === 0 || ${t} === false`),n.assign(s,null);return;case"array":n.elseIf(L._`${o} === "string" || ${o} === "number"
31
+ || ${o} === "boolean" || ${t} === null`).assign(s,L._`[${t}]`)}}}function Rw({gen:e,parentData:r,parentDataProperty:i},n){e.if(L._`${r} !== undefined`,()=>e.assign(L._`${r}[${i}]`,n))}function va(e,r,i,n=Pr.Correct){let t=n===Pr.Correct?L.operators.EQ:L.operators.NEQ,a;switch(e){case"null":return L._`${r} ${t} null`;case"array":a=L._`Array.isArray(${r})`;break;case"object":a=L._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":a=o(L._`!(${r} % 1) && !isNaN(${r})`);break;case"number":a=o();break;default:return L._`typeof ${r} ${t} ${e}`}return n===Pr.Correct?a:(0,L.not)(a);function o(s=L.nil){return(0,L.and)(L._`typeof ${r} == "number"`,s,i?L._`isFinite(${r})`:L.nil)}}rl.checkDataType=va;function Pa(e,r,i,n){if(e.length===1)return va(e[0],r,i,n);let t,a=(0,xu.toHash)(e);if(a.array&&a.object){let o=L._`typeof ${r} != "object"`;t=a.null?o:L._`!${r} || ${o}`,delete a.null,delete a.array,delete a.object}else t=L.nil;if(a.number)delete a.integer;for(let o in a)t=(0,L.and)(t,va(o,r,i,n));return t}rl.checkDataTypes=Pa;var Xw={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>typeof e=="string"?L._`{type: ${e}}`:L._`{type: ${r}}`};function Oa(e){let r=Lw(e);(0,Aw.reportError)(r,Xw)}rl.reportTypeError=Oa;function Lw(e){let{gen:r,data:i,schema:n}=e,t=(0,xu.schemaRefOrVal)(e,n,"type");return{gen:r,keyword:"type",data:i,schema:n.type,schemaCode:t,schemaValue:t,parentSchema:n,params:{},it:e}}});var ol=y((tl)=>{Object.defineProperty(tl,"__esModule",{value:!0});tl.assignDefaults=void 0;var Or=S(),$w=v();function Vw(e,r){let{properties:i,items:n}=e.schema;if(r==="object"&&i)for(let t in i)nl(e,t,i[t].default);else if(r==="array"&&Array.isArray(n))n.forEach((t,a)=>nl(e,a,t.default))}tl.assignDefaults=Vw;function nl(e,r,i){let{gen:n,compositeRule:t,data:a,opts:o}=e;if(i===void 0)return;let s=Or._`${a}${(0,Or.getProperty)(r)}`;if(t){(0,$w.checkStrictMode)(e,`default is ignored for: ${s}`);return}let u=Or._`${s} === undefined`;if(o.useDefaults==="empty")u=Or._`${u} || ${s} === null || ${s} === ""`;n.if(u,Or._`${s} = ${(0,Or.stringify)(i)}`)}});var me=y((ll)=>{Object.defineProperty(ll,"__esModule",{value:!0});ll.validateUnion=ll.validateArray=ll.usePattern=ll.callValidateCode=ll.schemaProperties=ll.allSchemaProperties=ll.noPropertyInData=ll.propertyInData=ll.isOwnProperty=ll.hasPropFunc=ll.reportMissingProp=ll.checkMissingProp=ll.checkReportMissingProp=void 0;var E=S(),$a=v(),Ze=Ne(),Tw=v();function Ew(e,r){let{gen:i,data:n,it:t}=e;i.if(Ta(i,n,r,t.opts.ownProperties),()=>{e.setParams({missingProperty:E._`${r}`},!0),e.error()})}ll.checkReportMissingProp=Ew;function Nw({gen:e,data:r,it:{opts:i}},n,t){return(0,E.or)(...n.map((a)=>(0,E.and)(Ta(e,r,a,i.ownProperties),E._`${t} = ${a}`)))}ll.checkMissingProp=Nw;function Dw(e,r){e.setParams({missingProperty:r},!0),e.error()}ll.reportMissingProp=Dw;function sl(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:E._`Object.prototype.hasOwnProperty`})}ll.hasPropFunc=sl;function Va(e,r,i){return E._`${sl(e)}.call(${r}, ${i})`}ll.isOwnProperty=Va;function jw(e,r,i,n){let t=E._`${r}${(0,E.getProperty)(i)} !== undefined`;return n?E._`${t} && ${Va(e,r,i)}`:t}ll.propertyInData=jw;function Ta(e,r,i,n){let t=E._`${r}${(0,E.getProperty)(i)} === undefined`;return n?(0,E.or)(t,(0,E.not)(Va(e,r,i))):t}ll.noPropertyInData=Ta;function ul(e){return e?Object.keys(e).filter((r)=>r!=="__proto__"):[]}ll.allSchemaProperties=ul;function Gw(e,r){return ul(r).filter((i)=>!(0,$a.alwaysValidSchema)(e,r[i]))}ll.schemaProperties=Gw;function Uw({schemaCode:e,data:r,it:{gen:i,topSchemaRef:n,schemaPath:t,errorPath:a},it:o},s,u,l){let d=l?E._`${e}, ${r}, ${n}${t}`:r,c=[[Ze.default.instancePath,(0,E.strConcat)(Ze.default.instancePath,a)],[Ze.default.parentData,o.parentData],[Ze.default.parentDataProperty,o.parentDataProperty],[Ze.default.rootData,Ze.default.rootData]];if(o.opts.dynamicRef)c.push([Ze.default.dynamicAnchors,Ze.default.dynamicAnchors]);let p=E._`${d}, ${i.object(...c)}`;return u!==E.nil?E._`${s}.call(${u}, ${p})`:E._`${s}(${p})`}ll.callValidateCode=Uw;var Jw=E._`new RegExp`;function Mw({gen:e,it:{opts:r}},i){let n=r.unicodeRegExp?"u":"",{regExp:t}=r.code,a=t(i,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:E._`${t.code==="new RegExp"?Jw:(0,Tw.useFunc)(e,t)}(${i}, ${n})`})}ll.usePattern=Mw;function Yw(e){let{gen:r,data:i,keyword:n,it:t}=e,a=r.name("valid");if(t.allErrors){let s=r.let("valid",!0);return o(()=>r.assign(s,!1)),s}return r.var(a,!0),o(()=>r.break()),a;function o(s){let u=r.const("len",E._`${i}.length`);r.forRange("i",0,u,(l)=>{e.subschema({keyword:n,dataProp:l,dataPropType:$a.Type.Num},a),r.if((0,E.not)(a),s)})}}ll.validateArray=Yw;function Bw(e){let{gen:r,schema:i,keyword:n,it:t}=e;if(!Array.isArray(i))throw Error("ajv implementation error");if(i.some((u)=>(0,$a.alwaysValidSchema)(t,u))&&!t.opts.unevaluated)return;let o=r.let("valid",!1),s=r.name("_valid");r.block(()=>i.forEach((u,l)=>{let d=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},s);if(r.assign(o,E._`${o} || ${s}`),!e.mergeValidEvaluated(d,s))r.if((0,E.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}ll.validateUnion=Bw});var Il=y((ml)=>{Object.defineProperty(ml,"__esModule",{value:!0});ml.validateKeywordUsage=ml.validSchemaType=ml.funcKeywordCode=ml.macroKeywordCode=void 0;var x=S(),mr=Ne(),ay=me(),oy=pi();function sy(e,r){let{gen:i,keyword:n,schema:t,parentSchema:a,it:o}=e,s=r.macro.call(o.self,t,a,o),u=fl(i,n,s);if(o.opts.validateSchema!==!1)o.self.validateSchema(s,!0);let l=i.name("valid");e.subschema({schema:s,schemaPath:x.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}ml.macroKeywordCode=sy;function uy(e,r){var i;let{gen:n,keyword:t,schema:a,parentSchema:o,$data:s,it:u}=e;dy(u,r);let l=!s&&r.compile?r.compile.call(u.self,a,o,u):r.validate,d=fl(n,t,l),c=n.let("valid");e.block$data(c,p),e.ok((i=r.valid)!==null&&i!==void 0?i:c);function p(){if(r.errors===!1){if(m(),r.modifying)cl(e);h(()=>e.error())}else{let q=r.async?I():f();if(r.modifying)cl(e);h(()=>ly(e,q))}}function I(){let q=n.let("ruleErrs",null);return n.try(()=>m(x._`await `),(w)=>n.assign(c,!1).if(x._`${w} instanceof ${u.ValidationError}`,()=>n.assign(q,x._`${w}.errors`),()=>n.throw(w))),q}function f(){let q=x._`${d}.errors`;return n.assign(q,null),m(x.nil),q}function m(q=r.async?x._`await `:x.nil){let w=u.opts.passContext?mr.default.this:mr.default.self,A=!(("compile"in r)&&!s||r.schema===!1);n.assign(c,x._`${q}${(0,ay.callValidateCode)(e,d,w,A)}`,r.modifying)}function h(q){var w;n.if((0,x.not)((w=r.valid)!==null&&w!==void 0?w:c),q)}}ml.funcKeywordCode=uy;function cl(e){let{gen:r,data:i,it:n}=e;r.if(n.parentData,()=>r.assign(i,x._`${n.parentData}[${n.parentDataProperty}]`))}function ly(e,r){let{gen:i}=e;i.if(x._`Array.isArray(${r})`,()=>{i.assign(mr.default.vErrors,x._`${mr.default.vErrors} === null ? ${r} : ${mr.default.vErrors}.concat(${r})`).assign(mr.default.errors,x._`${mr.default.vErrors}.length`),(0,oy.extendErrors)(e)},()=>e.error())}function dy({schemaEnv:e},r){if(r.async&&!e.$async)throw Error("async keyword in sync schema")}function fl(e,r,i){if(i===void 0)throw Error(`keyword "${r}" failed to compile`);return e.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,x.stringify)(i)})}function cy(e,r,i=!1){return!r.length||r.some((n)=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||i&&typeof e>"u")}ml.validSchemaType=cy;function fy({schema:e,opts:r,self:i,errSchemaPath:n},t,a){if(Array.isArray(t.keyword)?!t.keyword.includes(a):t.keyword!==a)throw Error("ajv implementation error");let o=t.dependencies;if(o===null||o===void 0?void 0:o.some((s)=>!Object.prototype.hasOwnProperty.call(e,s)))throw Error(`parent schema must have dependencies of ${a}: ${o.join(",")}`);if(t.validateSchema){if(!t.validateSchema(e[a])){let u=`keyword "${a}" value is invalid at path "${n}": `+i.errorsText(t.validateSchema.errors);if(r.validateSchema==="log")i.logger.error(u);else throw Error(u)}}}ml.validateKeywordUsage=fy});var yl=y((hl)=>{Object.defineProperty(hl,"__esModule",{value:!0});hl.extendSubschemaMode=hl.extendSubschemaData=hl.getSubschema=void 0;var Se=S(),ql=v();function qy(e,{keyword:r,schemaProp:i,schema:n,schemaPath:t,errSchemaPath:a,topSchemaRef:o}){if(r!==void 0&&n!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let s=e.schema[r];return i===void 0?{schema:s,schemaPath:Se._`${e.schemaPath}${(0,Se.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:s[i],schemaPath:Se._`${e.schemaPath}${(0,Se.getProperty)(r)}${(0,Se.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,ql.escapeFragment)(i)}`}}if(n!==void 0){if(t===void 0||a===void 0||o===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:t,topSchemaRef:o,errSchemaPath:a}}throw Error('either "keyword" or "schema" must be passed')}hl.getSubschema=qy;function hy(e,r,{dataProp:i,dataPropType:n,data:t,dataTypes:a,propertyName:o}){if(t!==void 0&&i!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:s}=r;if(i!==void 0){let{errorPath:l,dataPathArr:d,opts:c}=r,p=s.let("data",Se._`${r.data}${(0,Se.getProperty)(i)}`,!0);u(p),e.errorPath=Se.str`${l}${(0,ql.getErrorPath)(i,n,c.jsPropertySyntax)}`,e.parentDataProperty=Se._`${i}`,e.dataPathArr=[...d,e.parentDataProperty]}if(t!==void 0){let l=t instanceof Se.Name?t:s.let("data",t,!0);if(u(l),o!==void 0)e.propertyName=o}if(a)e.dataTypes=a;function u(l){e.data=l,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,l]}}hl.extendSubschemaData=hy;function wy(e,{jtdDiscriminator:r,jtdMetadata:i,compositeRule:n,createErrors:t,allErrors:a}){if(n!==void 0)e.compositeRule=n;if(t!==void 0)e.createErrors=t;if(a!==void 0)e.allErrors=a;e.jtdDiscriminator=r,e.jtdMetadata=i}hl.extendSubschemaMode=wy});var Ea=y((uz,Al)=>{Al.exports=function e(r,i){if(r===i)return!0;if(r&&i&&typeof r=="object"&&typeof i=="object"){if(r.constructor!==i.constructor)return!1;var n,t,a;if(Array.isArray(r)){if(n=r.length,n!=i.length)return!1;for(t=n;t--!==0;)if(!e(r[t],i[t]))return!1;return!0}if(r.constructor===RegExp)return r.source===i.source&&r.flags===i.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===i.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===i.toString();if(a=Object.keys(r),n=a.length,n!==Object.keys(i).length)return!1;for(t=n;t--!==0;)if(!Object.prototype.hasOwnProperty.call(i,a[t]))return!1;for(t=n;t--!==0;){var o=a[t];if(!e(r[o],i[o]))return!1}return!0}return r!==r&&i!==i}});var Cl=y((lz,gl)=>{var Qe=gl.exports=function(e,r,i){if(typeof r=="function")i=r,r={};i=r.cb||i;var n=typeof i=="function"?i:i.pre||function(){},t=i.post||function(){};zn(r,n,t,e,"",e)};Qe.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Qe.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Qe.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Qe.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function zn(e,r,i,n,t,a,o,s,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,t,a,o,s,u,l);for(var d in n){var c=n[d];if(Array.isArray(c)){if(d in Qe.arrayKeywords)for(var p=0;p<c.length;p++)zn(e,r,i,c[p],t+"/"+d+"/"+p,a,t,d,n,p)}else if(d in Qe.propsKeywords){if(c&&typeof c=="object")for(var I in c)zn(e,r,i,c[I],t+"/"+d+"/"+gy(I),a,t,d,n,I)}else if(d in Qe.keywords||e.allKeys&&!(d in Qe.skipKeywords))zn(e,r,i,c,t+"/"+d,a,t,d,n)}i(n,t,a,o,s,u,l)}}function gy(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var qi=y((Xl)=>{Object.defineProperty(Xl,"__esModule",{value:!0});Xl.getSchemaRefs=Xl.resolveUrl=Xl.normalizeId=Xl._getFullPath=Xl.getFullPath=Xl.inlineRef=void 0;var Cy=v(),ky=Ea(),by=Cl(),Ry=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Xy(e,r=!0){if(typeof e=="boolean")return!0;if(r===!0)return!Na(e);if(!r)return!1;return kl(e)<=r}Xl.inlineRef=Xy;var Ly=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Na(e){for(let r in e){if(Ly.has(r))return!0;let i=e[r];if(Array.isArray(i)&&i.some(Na))return!0;if(typeof i=="object"&&Na(i))return!0}return!1}function kl(e){let r=0;for(let i in e){if(i==="$ref")return 1/0;if(r++,Ry.has(i))continue;if(typeof e[i]=="object")(0,Cy.eachItem)(e[i],(n)=>r+=kl(n));if(r===1/0)return 1/0}return r}function bl(e,r="",i){if(i!==!1)r=$r(r);let n=e.parse(r);return Rl(e,n)}Xl.getFullPath=bl;function Rl(e,r){return e.serialize(r).split("#")[0]+"#"}Xl._getFullPath=Rl;var Wy=/#\/?$/;function $r(e){return e?e.replace(Wy,""):""}Xl.normalizeId=$r;function Sy(e,r,i){return i=$r(i),e.resolve(r,i)}Xl.resolveUrl=Sy;var zy=/^[a-z_][-a-z0-9._]*$/i;function vy(e,r){if(typeof e=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,t=$r(e[i]||r),a={"":t},o=bl(n,t,!1),s={},u=new Set;return by(e,{allKeys:!0},(c,p,I,f)=>{if(f===void 0)return;let m=o+p,h=a[f];if(typeof c[i]=="string")h=q.call(this,c[i]);w.call(this,c.$anchor),w.call(this,c.$dynamicAnchor),a[p]=h;function q(A){let b=this.opts.uriResolver.resolve;if(A=$r(h?b(h,A):A),u.has(A))throw d(A);u.add(A);let g=this.refs[A];if(typeof g=="string")g=this.refs[g];if(typeof g=="object")l(c,g.schema,A);else if(A!==$r(m))if(A[0]==="#")l(c,s[A],A),s[A]=c;else this.refs[A]=m;return A}function w(A){if(typeof A=="string"){if(!zy.test(A))throw Error(`invalid anchor "${A}"`);q.call(this,`#${A}`)}}}),s;function l(c,p,I){if(p!==void 0&&!ky(c,p))throw d(I)}function d(c){return Error(`reference "${c}" resolves to more than one schema`)}}Xl.getSchemaRefs=vy});var yi=y((Ul)=>{Object.defineProperty(Ul,"__esModule",{value:!0});Ul.getData=Ul.KeywordCxt=Ul.validateFunctionCode=void 0;var Pl=Yu(),Wl=Ii(),ja=za(),vn=Ii(),Ey=ol(),wi=Il(),Da=yl(),C=S(),R=Ne(),Ny=qi(),De=v(),hi=pi();function Dy(e){if(Vl(e)){if(Tl(e),$l(e)){Uy(e);return}}Ol(e,()=>(0,Pl.topBoolOrEmptySchema)(e))}Ul.validateFunctionCode=Dy;function Ol({gen:e,validateName:r,schema:i,schemaEnv:n,opts:t},a){if(t.code.es5)e.func(r,C._`${R.default.data}, ${R.default.valCxt}`,n.$async,()=>{e.code(C._`"use strict"; ${Sl(i,t)}`),Gy(e,t),e.code(a)});else e.func(r,C._`${R.default.data}, ${jy(t)}`,n.$async,()=>e.code(Sl(i,t)).code(a))}function jy(e){return C._`{${R.default.instancePath}="", ${R.default.parentData}, ${R.default.parentDataProperty}, ${R.default.rootData}=${R.default.data}${e.dynamicRef?C._`, ${R.default.dynamicAnchors}={}`:C.nil}}={}`}function Gy(e,r){e.if(R.default.valCxt,()=>{if(e.var(R.default.instancePath,C._`${R.default.valCxt}.${R.default.instancePath}`),e.var(R.default.parentData,C._`${R.default.valCxt}.${R.default.parentData}`),e.var(R.default.parentDataProperty,C._`${R.default.valCxt}.${R.default.parentDataProperty}`),e.var(R.default.rootData,C._`${R.default.valCxt}.${R.default.rootData}`),r.dynamicRef)e.var(R.default.dynamicAnchors,C._`${R.default.valCxt}.${R.default.dynamicAnchors}`)},()=>{if(e.var(R.default.instancePath,C._`""`),e.var(R.default.parentData,C._`undefined`),e.var(R.default.parentDataProperty,C._`undefined`),e.var(R.default.rootData,R.default.data),r.dynamicRef)e.var(R.default.dynamicAnchors,C._`{}`)})}function Uy(e){let{schema:r,opts:i,gen:n}=e;Ol(e,()=>{if(i.$comment&&r.$comment)Nl(e);if(Fy(e),n.let(R.default.vErrors,null),n.let(R.default.errors,0),i.unevaluated)Jy(e);El(e),Zy(e)});return}function Jy(e){let{gen:r,validateName:i}=e;e.evaluated=r.const("evaluated",C._`${i}.evaluated`),r.if(C._`${e.evaluated}.dynamicProps`,()=>r.assign(C._`${e.evaluated}.props`,C._`undefined`)),r.if(C._`${e.evaluated}.dynamicItems`,()=>r.assign(C._`${e.evaluated}.items`,C._`undefined`))}function Sl(e,r){let i=typeof e=="object"&&e[r.schemaId];return i&&(r.code.source||r.code.process)?C._`/*# sourceURL=${i} */`:C.nil}function My(e,r){if(Vl(e)){if(Tl(e),$l(e)){Yy(e,r);return}}(0,Pl.boolOrEmptySchema)(e,r)}function $l({schema:e,self:r}){if(typeof e=="boolean")return!e;for(let i in e)if(r.RULES.all[i])return!0;return!1}function Vl(e){return typeof e.schema!="boolean"}function Yy(e,r){let{schema:i,gen:n,opts:t}=e;if(t.$comment&&i.$comment)Nl(e);Ky(e),Hy(e);let a=n.const("_errs",R.default.errors);El(e,a),n.var(r,C._`${a} === ${R.default.errors}`)}function Tl(e){(0,De.checkUnknownRules)(e),By(e)}function El(e,r){if(e.opts.jtd)return zl(e,[],!1,r);let i=(0,Wl.getSchemaTypes)(e.schema),n=(0,Wl.coerceAndCheckDataType)(e,i);zl(e,i,!n,r)}function By(e){let{schema:r,errSchemaPath:i,opts:n,self:t}=e;if(r.$ref&&n.ignoreKeywordsWithRef&&(0,De.schemaHasRulesButRef)(r,t.RULES))t.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function Fy(e){let{schema:r,opts:i}=e;if(r.default!==void 0&&i.useDefaults&&i.strictSchema)(0,De.checkStrictMode)(e,"default is ignored in the schema root")}function Ky(e){let r=e.schema[e.opts.schemaId];if(r)e.baseId=(0,Ny.resolveUrl)(e.opts.uriResolver,e.baseId,r)}function Hy(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}function Nl({gen:e,schemaEnv:r,schema:i,errSchemaPath:n,opts:t}){let a=i.$comment;if(t.$comment===!0)e.code(C._`${R.default.self}.logger.log(${a})`);else if(typeof t.$comment=="function"){let o=C.str`${n}/$comment`,s=e.scopeValue("root",{ref:r.root});e.code(C._`${R.default.self}.opts.$comment(${a}, ${o}, ${s}.schema)`)}}function Zy(e){let{gen:r,schemaEnv:i,validateName:n,ValidationError:t,opts:a}=e;if(i.$async)r.if(C._`${R.default.errors} === 0`,()=>r.return(R.default.data),()=>r.throw(C._`new ${t}(${R.default.vErrors})`));else{if(r.assign(C._`${n}.errors`,R.default.vErrors),a.unevaluated)Qy(e);r.return(C._`${R.default.errors} === 0`)}}function Qy({gen:e,evaluated:r,props:i,items:n}){if(i instanceof C.Name)e.assign(C._`${r}.props`,i);if(n instanceof C.Name)e.assign(C._`${r}.items`,n)}function zl(e,r,i,n){let{gen:t,schema:a,data:o,allErrors:s,opts:u,self:l}=e,{RULES:d}=l;if(a.$ref&&(u.ignoreKeywordsWithRef||!(0,De.schemaHasRulesButRef)(a,d))){t.block(()=>jl(e,"$ref",d.all.$ref.definition));return}if(!u.jtd)xy(e,r);t.block(()=>{for(let p of d.rules)c(p);c(d.post)});function c(p){if(!(0,ja.shouldUseGroup)(a,p))return;if(p.type){if(t.if((0,vn.checkDataType)(p.type,o,u.strictNumbers)),vl(e,p),r.length===1&&r[0]===p.type&&i)t.else(),(0,vn.reportTypeError)(e);t.endIf()}else vl(e,p);if(!s)t.if(C._`${R.default.errors} === ${n||0}`)}}function vl(e,r){let{gen:i,schema:n,opts:{useDefaults:t}}=e;if(t)(0,Ey.assignDefaults)(e,r.type);i.block(()=>{for(let a of r.rules)if((0,ja.shouldUseRule)(n,a))jl(e,a.keyword,a.definition,r.type)})}function xy(e,r){if(e.schemaEnv.meta||!e.opts.strictTypes)return;if(_y(e,r),!e.opts.allowUnionTypes)eA(e,r);rA(e,e.dataTypes)}function _y(e,r){if(!r.length)return;if(!e.dataTypes.length){e.dataTypes=r;return}r.forEach((i)=>{if(!Dl(e.dataTypes,i))Ga(e,`type "${i}" not allowed by context "${e.dataTypes.join(",")}"`)}),nA(e,r)}function eA(e,r){if(r.length>1&&!(r.length===2&&r.includes("null")))Ga(e,"use allowUnionTypes to allow union type keyword")}function rA(e,r){let i=e.self.RULES.all;for(let n in i){let t=i[n];if(typeof t=="object"&&(0,ja.shouldUseRule)(e.schema,t)){let{type:a}=t.definition;if(a.length&&!a.some((o)=>iA(r,o)))Ga(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function iA(e,r){return e.includes(r)||r==="number"&&e.includes("integer")}function Dl(e,r){return e.includes(r)||r==="integer"&&e.includes("number")}function nA(e,r){let i=[];for(let n of e.dataTypes)if(Dl(r,n))i.push(n);else if(r.includes("integer")&&n==="number")i.push("integer");e.dataTypes=i}function Ga(e,r){let i=e.schemaEnv.baseId+e.errSchemaPath;r+=` at "${i}" (strictTypes)`,(0,De.checkStrictMode)(e,r,e.opts.strictTypes)}class Ua{constructor(e,r,i){if((0,wi.validateKeywordUsage)(e,r,i),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=i,this.data=e.data,this.schema=e.schema[i],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,De.schemaRefOrVal)(e,this.schema,i,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",Gl(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,wi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);if("code"in r?r.trackErrors:r.errors!==!1)this.errsCount=e.gen.const("_errs",R.default.errors)}result(e,r,i){this.failResult((0,C.not)(e),r,i)}failResult(e,r,i){if(this.gen.if(e),i)i();else this.error();if(r){if(this.gen.else(),r(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(e,r){this.failResult((0,C.not)(e),void 0,r)}fail(e){if(e===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(e),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail(C._`${r} !== undefined && (${(0,C.or)(this.invalid$data(),e)})`)}error(e,r,i){if(r){this.setParams(r),this._error(e,i),this.setParams({});return}this._error(e,i)}_error(e,r){(e?hi.reportExtraError:hi.reportError)(this,this.def.error,r)}$dataError(){(0,hi.reportError)(this,this.def.$dataError||hi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,hi.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,r){if(r)Object.assign(this.params,e);else this.params=e}block$data(e,r,i=C.nil){this.gen.block(()=>{this.check$data(e,i),r()})}check$data(e=C.nil,r=C.nil){if(!this.$data)return;let{gen:i,schemaCode:n,schemaType:t,def:a}=this;if(i.if((0,C.or)(C._`${n} === undefined`,r)),e!==C.nil)i.assign(e,!0);if(t.length||a.validateSchema){if(i.elseIf(this.invalid$data()),this.$dataError(),e!==C.nil)i.assign(e,!1)}i.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:i,def:n,it:t}=this;return(0,C.or)(a(),o());function a(){if(i.length){if(!(r instanceof C.Name))throw Error("ajv implementation error");let s=Array.isArray(i)?i:[i];return C._`${(0,vn.checkDataTypes)(s,r,t.opts.strictNumbers,vn.DataType.Wrong)}`}return C.nil}function o(){if(n.validateSchema){let s=e.scopeValue("validate$data",{ref:n.validateSchema});return C._`!${s}(${r})`}return C.nil}}subschema(e,r){let i=(0,Da.getSubschema)(this.it,e);(0,Da.extendSubschemaData)(i,this.it,e),(0,Da.extendSubschemaMode)(i,e);let n={...this.it,...i,items:void 0,props:void 0};return My(n,r),n}mergeEvaluated(e,r){let{it:i,gen:n}=this;if(!i.opts.unevaluated)return;if(i.props!==!0&&e.props!==void 0)i.props=De.mergeEvaluated.props(n,e.props,i.props,r);if(i.items!==!0&&e.items!==void 0)i.items=De.mergeEvaluated.items(n,e.items,i.items,r)}mergeValidEvaluated(e,r){let{it:i,gen:n}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return n.if(r,()=>this.mergeEvaluated(e,C.Name)),!0}}Ul.KeywordCxt=Ua;function jl(e,r,i,n){let t=new Ua(e,i,r);if("code"in i)i.code(t,n);else if(t.$data&&i.validate)(0,wi.funcKeywordCode)(t,i);else if("macro"in i)(0,wi.macroKeywordCode)(t,i);else if(i.compile||i.validate)(0,wi.funcKeywordCode)(t,i)}var tA=/^\/(?:[^~]|~0|~1)*$/,aA=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Gl(e,{dataLevel:r,dataNames:i,dataPathArr:n}){let t,a;if(e==="")return R.default.rootData;if(e[0]==="/"){if(!tA.test(e))throw Error(`Invalid JSON-pointer: ${e}`);t=e,a=R.default.rootData}else{let l=aA.exec(e);if(!l)throw Error(`Invalid JSON-pointer: ${e}`);let d=+l[1];if(t=l[2],t==="#"){if(d>=r)throw Error(u("property/index",d));return n[r-d]}if(d>r)throw Error(u("data",d));if(a=i[r-d],!t)return a}let o=a,s=t.split("/");for(let l of s)if(l)a=C._`${a}${(0,C.getProperty)((0,De.unescapeJsonPointer)(l))}`,o=C._`${o} && ${a}`;return o;function u(l,d){return`Cannot access ${l} ${d} levels up, current level is ${r}`}}Ul.getData=Gl});var Pn=y((Yl)=>{Object.defineProperty(Yl,"__esModule",{value:!0});class Ml extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}}Yl.default=Ml});var Ai=y((Fl)=>{Object.defineProperty(Fl,"__esModule",{value:!0});var Ja=qi();class Bl extends Error{constructor(e,r,i,n){super(n||`can't resolve reference ${i} from id ${r}`);this.missingRef=(0,Ja.resolveUrl)(e,r,i),this.missingSchema=(0,Ja.normalizeId)((0,Ja.getFullPath)(e,this.missingRef))}}Fl.default=Bl});var $n=y((Zl)=>{Object.defineProperty(Zl,"__esModule",{value:!0});Zl.resolveSchema=Zl.getCompilingSchema=Zl.resolveRef=Zl.compileSchema=Zl.SchemaEnv=void 0;var be=S(),dA=Pn(),pr=Ne(),Re=qi(),Kl=v(),cA=yi();class gi{constructor(e){var r;this.refs={},this.dynamicAnchors={};let i;if(typeof e.schema=="object")i=e.schema;this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Re.normalizeId)(i===null||i===void 0?void 0:i[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=i===null||i===void 0?void 0:i.$async,this.refs={}}}Zl.SchemaEnv=gi;function Ya(e){let r=Hl.call(this,e);if(r)return r;let i=(0,Re.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:t}=this.opts.code,{ownProperties:a}=this.opts,o=new be.CodeGen(this.scope,{es5:n,lines:t,ownProperties:a}),s;if(e.$async)s=o.scopeValue("Error",{ref:dA.default,code:be._`require("ajv/dist/runtime/validation_error").default`});let u=o.scopeName("validate");e.validateName=u;let l={gen:o,allErrors:this.opts.allErrors,data:pr.default.data,parentData:pr.default.parentData,parentDataProperty:pr.default.parentDataProperty,dataNames:[pr.default.data],dataPathArr:[be.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,be.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:i,baseId:e.baseId||i,schemaPath:be.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:be._`""`,opts:this.opts,self:this},d;try{this._compilations.add(e),(0,cA.validateFunctionCode)(l),o.optimize(this.opts.code.optimize);let c=o.toString();if(d=`${o.scopeRefs(pr.default.scope)}return ${c}`,this.opts.code.process)d=this.opts.code.process(d,e);let I=Function(`${pr.default.self}`,`${pr.default.scope}`,d)(this,this.scope.get());if(this.scope.value(u,{ref:I}),I.errors=null,I.schema=e.schema,I.schemaEnv=e,e.$async)I.$async=!0;if(this.opts.code.source===!0)I.source={validateName:u,validateCode:c,scopeValues:o._values};if(this.opts.unevaluated){let{props:f,items:m}=l;if(I.evaluated={props:f instanceof be.Name?void 0:f,items:m instanceof be.Name?void 0:m,dynamicProps:f instanceof be.Name,dynamicItems:m instanceof be.Name},I.source)I.source.evaluated=(0,be.stringify)(I.evaluated)}return e.validate=I,e}catch(c){if(delete e.validate,delete e.validateName,d)this.logger.error("Error compiling schema, function code:",d);throw c}finally{this._compilations.delete(e)}}Zl.compileSchema=Ya;function fA(e,r,i){var n;i=(0,Re.resolveUrl)(this.opts.uriResolver,r,i);let t=e.refs[i];if(t)return t;let a=IA.call(this,e,i);if(a===void 0){let o=(n=e.localRefs)===null||n===void 0?void 0:n[i],{schemaId:s}=this.opts;if(o)a=new gi({schema:o,schemaId:s,root:e,baseId:r})}if(a===void 0)return;return e.refs[i]=mA.call(this,a)}Zl.resolveRef=fA;function mA(e){if((0,Re.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:Ya.call(this,e)}function Hl(e){for(let r of this._compilations)if(pA(r,e))return r}Zl.getCompilingSchema=Hl;function pA(e,r){return e.schema===r.schema&&e.root===r.root&&e.baseId===r.baseId}function IA(e,r){let i;while(typeof(i=this.refs[r])=="string")r=i;return i||this.schemas[r]||On.call(this,e,r)}function On(e,r){let i=this.opts.uriResolver.parse(r),n=(0,Re._getFullPath)(this.opts.uriResolver,i),t=(0,Re.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===t)return Ma.call(this,i,e);let a=(0,Re.normalizeId)(n),o=this.refs[a]||this.schemas[a];if(typeof o=="string"){let s=On.call(this,e,o);if(typeof(s===null||s===void 0?void 0:s.schema)!=="object")return;return Ma.call(this,i,s)}if(typeof(o===null||o===void 0?void 0:o.schema)!=="object")return;if(!o.validate)Ya.call(this,o);if(a===(0,Re.normalizeId)(r)){let{schema:s}=o,{schemaId:u}=this.opts,l=s[u];if(l)t=(0,Re.resolveUrl)(this.opts.uriResolver,t,l);return new gi({schema:s,schemaId:u,root:e,baseId:t})}return Ma.call(this,i,o)}Zl.resolveSchema=On;var qA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ma(e,{baseId:r,schema:i,root:n}){var t;if(((t=e.fragment)===null||t===void 0?void 0:t[0])!=="/")return;for(let s of e.fragment.slice(1).split("/")){if(typeof i==="boolean")return;let u=i[(0,Kl.unescapeFragment)(s)];if(u===void 0)return;i=u;let l=typeof i==="object"&&i[this.opts.schemaId];if(!qA.has(s)&&l)r=(0,Re.resolveUrl)(this.opts.uriResolver,r,l)}let a;if(typeof i!="boolean"&&i.$ref&&!(0,Kl.schemaHasRulesButRef)(i,this.RULES)){let s=(0,Re.resolveUrl)(this.opts.uriResolver,r,i.$ref);a=On.call(this,n,s)}let{schemaId:o}=this.opts;if(a=a||new gi({schema:i,schemaId:o,root:n,baseId:r}),a.schema!==a.root.schema)return a;return}});var xl=y((Iz,gA)=>{gA.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Ka=y((qz,td)=>{var CA=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ed=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),Ba=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),rd=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),kA=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function Fa(e){let r="",i=0,n=0;for(n=0;n<e.length;n++){if(i=e[n].charCodeAt(0),i===48)continue;if(!(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";r+=e[n];break}for(n+=1;n<e.length;n++){if(i=e[n].charCodeAt(0),!(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";r+=e[n]}return r}var bA=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function _l(e){return e.length=0,!0}function RA(e,r,i){if(e.length){let n=Fa(e);if(n!=="")r.push(n);else return i.error=!0,!1;e.length=0}return!0}function XA(e){let r=0,i={error:!1,address:"",zone:""},n=[],t=[],a=!1,o=!1,s=RA;for(let u=0;u<e.length;u++){let l=e[u];if(l==="["||l==="]")continue;if(l===":"){if(a===!0)o=!0;if(!s(t,n,i))break;if(++r>7){i.error=!0;break}if(u>0&&e[u-1]===":")a=!0;n.push(":");continue}else if(l==="%"){if(!s(t,n,i))break;s=_l}else{t.push(l);continue}}if(t.length)if(s===_l)i.zone=t.join("");else if(o)n.push(t.join(""));else n.push(Fa(t));return i.address=n.join(""),i}function id(e){if(LA(e,":")<2)return{host:e,isIPV6:!1};let r=XA(e);if(!r.error){let{address:i,address:n}=r;if(r.zone)i+="%"+r.zone,n+="%25"+r.zone;return{host:i,isIPV6:!0,escapedHost:n}}else return{host:e,isIPV6:!1}}function LA(e,r){let i=0;for(let n=0;n<e.length;n++)if(e[n]===r)i++;return i}function WA(e){let r=e,i=[],n=-1,t=0;while(t=r.length){if(t===1)if(r===".")break;else if(r==="/"){i.push("/");break}else{i.push(r);break}else if(t===2){if(r[0]==="."){if(r[1]===".")break;else if(r[1]==="/"){r=r.slice(2);continue}}else if(r[0]==="/"){if(r[1]==="."||r[1]==="/"){i.push("/");break}}}else if(t===3){if(r==="/.."){if(i.length!==0)i.pop();i.push("/");break}}if(r[0]==="."){if(r[1]==="."){if(r[2]==="/"){r=r.slice(3);continue}}else if(r[1]==="/"){r=r.slice(2);continue}}else if(r[0]==="/"){if(r[1]==="."){if(r[2]==="/"){r=r.slice(2);continue}else if(r[2]==="."){if(r[3]==="/"){if(r=r.slice(3),i.length!==0)i.pop();continue}}}}if((n=r.indexOf("/",1))===-1){i.push(r);break}else i.push(r.slice(0,n)),r=r.slice(n)}return i.join("")}var SA={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},zA=/[@/?#:]/g,vA=/[@/?#]/g;function nd(e,r){let i=r?vA:zA;return i.lastIndex=0,e.replace(i,(n)=>SA[n])}function PA(e,r=!1){if(e.indexOf("%")===-1)return e;let i="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let t=e.slice(n+1,n+3);if(Ba(t)){let a=t.toUpperCase(),o=String.fromCharCode(parseInt(a,16));if(r&&rd(o))i+=o;else i+="%"+a;n+=2;continue}}i+=e[n]}return i}function OA(e){let r="";for(let i=0;i<e.length;i++){if(e[i]==="%"&&i+2<e.length){let n=e.slice(i+1,i+3);if(Ba(n)){let t=n.toUpperCase(),a=String.fromCharCode(parseInt(t,16));if(a!=="."&&rd(a))r+=a;else r+="%"+t;i+=2;continue}}if(kA(e[i]))r+=e[i];else r+=escape(e[i])}return r}function $A(e){let r="";for(let i=0;i<e.length;i++){if(e[i]==="%"&&i+2<e.length){let n=e.slice(i+1,i+3);if(Ba(n)){r+="%"+n.toUpperCase(),i+=2;continue}}r+=escape(e[i])}return r}function VA(e){let r=[];if(e.userinfo!==void 0)r.push(e.userinfo),r.push("@");if(e.host!==void 0){let i=unescape(e.host);if(!ed(i)){let n=id(i);if(n.isIPV6===!0)i=`[${n.escapedHost}]`;else i=nd(i,!1)}r.push(i)}if(typeof e.port==="number"||typeof e.port==="string")r.push(":"),r.push(String(e.port));return r.length?r.join(""):void 0}td.exports={nonSimpleDomain:bA,recomposeAuthority:VA,reescapeHostDelimiters:nd,normalizePercentEncoding:PA,normalizePathEncoding:OA,escapePreservingEscapes:$A,removeDotSegments:WA,isIPv4:ed,isUUID:CA,normalizeIPv6:id,stringArrayToHexStripped:Fa}});var ld=y((hz,ud)=>{var{isUUID:TA}=Ka(),EA=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,NA=["http","https","ws","wss","urn","urn:uuid"];function DA(e){return NA.indexOf(e)!==-1}function Ha(e){if(e.secure===!0)return!0;else if(e.secure===!1)return!1;else if(e.scheme)return e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S");else return!1}function ad(e){if(!e.host)e.error=e.error||"HTTP URIs must have a host.";return e}function od(e){let r=String(e.scheme).toLowerCase()==="https";if(e.port===(r?443:80)||e.port==="")e.port=void 0;if(!e.path)e.path="/";return e}function jA(e){return e.secure=Ha(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function GA(e){if(e.port===(Ha(e)?443:80)||e.port==="")e.port=void 0;if(typeof e.secure==="boolean")e.scheme=e.secure?"wss":"ws",e.secure=void 0;if(e.resourceName){let[r,i]=e.resourceName.split("?");e.path=r&&r!=="/"?r:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}function UA(e,r){if(!e.path)return e.error="URN can not be parsed",e;let i=e.path.match(EA);if(i){let n=r.scheme||e.scheme||"urn";e.nid=i[1].toLowerCase(),e.nss=i[2];let t=`${n}:${r.nid||e.nid}`,a=Za(t);if(e.path=void 0,a)e=a.parse(e,r)}else e.error=e.error||"URN can not be parsed.";return e}function JA(e,r){if(e.nid===void 0)throw Error("URN without nid cannot be serialized");let i=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),t=`${i}:${r.nid||n}`,a=Za(t);if(a)e=a.serialize(e,r);let o=e,s=e.nss;return o.path=`${n||r.nid}:${s}`,r.skipEscape=!0,o}function MA(e,r){let i=e;if(i.uuid=i.nss,i.nss=void 0,!r.tolerant&&(!i.uuid||!TA(i.uuid)))i.error=i.error||"UUID is not valid.";return i}function YA(e){let r=e;return r.nss=(e.uuid||"").toLowerCase(),r}var sd={scheme:"http",domainHost:!0,parse:ad,serialize:od},BA={scheme:"https",domainHost:sd.domainHost,parse:ad,serialize:od},Vn={scheme:"ws",domainHost:!0,parse:jA,serialize:GA},FA={scheme:"wss",domainHost:Vn.domainHost,parse:Vn.parse,serialize:Vn.serialize},KA={scheme:"urn",parse:UA,serialize:JA,skipNormalize:!0},HA={scheme:"urn:uuid",parse:MA,serialize:YA,skipNormalize:!0},Tn={http:sd,https:BA,ws:Vn,wss:FA,urn:KA,"urn:uuid":HA};Object.setPrototypeOf(Tn,null);function Za(e){return e&&(Tn[e]||Tn[e.toLowerCase()])||void 0}ud.exports={wsIsSecure:Ha,SCHEMES:Tn,isValidSchemeName:DA,getSchemeHandler:Za}});var pd=y((wz,Dn)=>{var{normalizeIPv6:ZA,removeDotSegments:Ci,recomposeAuthority:QA,normalizePercentEncoding:xA,normalizePathEncoding:_A,escapePreservingEscapes:eg,reescapeHostDelimiters:rg,isIPv4:ig,nonSimpleDomain:ng}=Ka(),{SCHEMES:tg,getSchemeHandler:cd}=ld();function ag(e,r){if(typeof e==="string")e=fg(e,r);else if(typeof e==="object")e=Nn(Ir(e,r),r);return e}function og(e,r,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},{parsed:t,malformedAuthorityOrPort:a}=En(e,n),{parsed:o,malformedAuthorityOrPort:s}=En(r,n);if(a||s)throw Error(t.error||o.error||"URI is malformed.");let u=fd(t,o,n,!0);return n.skipEscape=!0,Ir(u,n)}function fd(e,r,i,n){let t={};if(!n)e=Nn(Ir(e,i),i),r=Nn(Ir(r,i),i);if(i=i||{},!i.tolerant&&r.scheme)t.scheme=r.scheme,t.userinfo=r.userinfo,t.host=r.host,t.port=r.port,t.path=Ci(r.path||""),t.query=r.query;else{if(r.userinfo!==void 0||r.host!==void 0||r.port!==void 0)t.userinfo=r.userinfo,t.host=r.host,t.port=r.port,t.path=Ci(r.path||""),t.query=r.query;else{if(!r.path)if(t.path=e.path,r.query!==void 0)t.query=r.query;else t.query=e.query;else{if(r.path[0]==="/")t.path=Ci(r.path);else{if((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path)t.path="/"+r.path;else if(!e.path)t.path=r.path;else t.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path;t.path=Ci(t.path)}t.query=r.query}t.userinfo=e.userinfo,t.host=e.host,t.port=e.port}t.scheme=e.scheme}return t.fragment=r.fragment,t}function sg(e,r,i){let n=dd(e,i),t=dd(r,i);return n!==void 0&&t!==void 0&&n.toLowerCase()===t.toLowerCase()}function Ir(e,r){let i={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},r),t=[],a=cd(n.scheme||i.scheme);if(a&&a.serialize)a.serialize(i,n);if(i.path!==void 0)if(!n.skipEscape){if(i.path=eg(i.path),i.scheme!==void 0)i.path=i.path.split("%3A").join(":")}else i.path=xA(i.path);if(n.reference!=="suffix"&&i.scheme)t.push(i.scheme,":");let o=QA(i);if(o!==void 0){if(n.reference!=="suffix")t.push("//");if(t.push(o),i.path&&i.path[0]!=="/")t.push("/")}if(i.path!==void 0){let s=i.path;if(!n.absolutePath&&(!a||!a.absolutePath))s=Ci(s);if(o===void 0&&s[0]==="/"&&s[1]==="/")s="/%2F"+s.slice(2);t.push(s)}if(i.query!==void 0)t.push("?",i.query);if(i.fragment!==void 0)t.push("#",i.fragment);return t.join("")}var ug=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,lg=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,dg=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function cg(e,r){if(r[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port==="number"&&(e.port<0||e.port>65535))return"URI port is malformed.";return}function En(e,r){let i=Object.assign({},r),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},t=!1,a=!1;if(i.reference==="suffix")if(i.scheme)e=i.scheme+":"+e;else e="//"+e;let o=e.match(lg);if(o!==null&&o[1].indexOf("\\")!==-1)n.error="URI authority must not contain a literal backslash.",t=!0;let s=e.match(dg);if(s!==null){let l=s[1],d=l.replace(/[\t\n\r]/g,"");if(d.length>=2){if(d.slice(0,2)!=="//")n.error=n.error||"URI authority must not contain a literal backslash.",t=!0;else if(l.length!==d.length)n.error=n.error||"URI authority introducer must not contain whitespace.",t=!0}}let u=e.match(ug);if(u){if(n.scheme=u[1],n.userinfo=u[3],n.host=u[4],n.port=parseInt(u[5],10),n.path=u[6]||"",n.query=u[7],n.fragment=u[8],isNaN(n.port))n.port=u[5];let l=cg(n,u);if(l!==void 0)n.error=n.error||l,t=!0;if(n.host)if(ig(n.host)===!1){let p=ZA(n.host);n.host=p.host.toLowerCase(),a=p.isIPV6}else a=!0;if(n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path)n.reference="same-document";else if(n.scheme===void 0)n.reference="relative";else if(n.fragment===void 0)n.reference="absolute";else n.reference="uri";if(i.reference&&i.reference!=="suffix"&&i.reference!==n.reference)n.error=n.error||"URI is not a "+i.reference+" reference.";let d=cd(i.scheme||n.scheme);if(!i.unicodeSupport&&(!d||!d.unicodeSupport)){if(n.host&&(i.domainHost||d&&d.domainHost)&&a===!1&&ng(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}}if(!d||d&&!d.skipNormalize){if(e.indexOf("%")!==-1){if(n.scheme!==void 0)n.scheme=unescape(n.scheme);if(n.host!==void 0)n.host=rg(unescape(n.host),a)}if(n.path)n.path=_A(n.path);if(n.fragment)try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}}if(d&&d.parse)d.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:t}}function Nn(e,r){return En(e,r).parsed}function fg(e,r){return md(e,r).normalized}function md(e,r){let{parsed:i,malformedAuthorityOrPort:n}=En(e,r);return{normalized:n?e:Ir(i,r),malformedAuthorityOrPort:n}}function dd(e,r){if(typeof e==="string"){let{normalized:i,malformedAuthorityOrPort:n}=md(e,r);return n?void 0:i}if(typeof e==="object")return Ir(e,r)}var Qa={SCHEMES:tg,normalize:ag,resolve:og,resolveComponent:fd,equal:sg,serialize:Ir,parse:Nn};Dn.exports=Qa;Dn.exports.default=Qa;Dn.exports.fastUri=Qa});var hd=y((qd)=>{Object.defineProperty(qd,"__esModule",{value:!0});var Id=pd();Id.code='require("ajv/dist/runtime/uri").default';qd.default=Id});var Rd=y((je)=>{Object.defineProperty(je,"__esModule",{value:!0});je.CodeGen=je.Name=je.nil=je.stringify=je.str=je._=je.KeywordCxt=void 0;var pg=yi();Object.defineProperty(je,"KeywordCxt",{enumerable:!0,get:function(){return pg.KeywordCxt}});var Vr=S();Object.defineProperty(je,"_",{enumerable:!0,get:function(){return Vr._}});Object.defineProperty(je,"str",{enumerable:!0,get:function(){return Vr.str}});Object.defineProperty(je,"stringify",{enumerable:!0,get:function(){return Vr.stringify}});Object.defineProperty(je,"nil",{enumerable:!0,get:function(){return Vr.nil}});Object.defineProperty(je,"Name",{enumerable:!0,get:function(){return Vr.Name}});Object.defineProperty(je,"CodeGen",{enumerable:!0,get:function(){return Vr.CodeGen}});var Ig=Pn(),Cd=Ai(),qg=Sa(),ki=$n(),hg=S(),bi=qi(),jn=Ii(),_a=v(),wd=xl(),wg=hd(),kd=(e,r)=>new RegExp(e,r);kd.code="new RegExp";var yg=["removeAdditional","useDefaults","coerceTypes"],Ag=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),gg={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Cg={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},yd=200;function kg(e){var r,i,n,t,a,o,s,u,l,d,c,p,I,f,m,h,q,w,A,b,g,N,_,yt,At;let Fr=e.strict,gt=(r=e.code)===null||r===void 0?void 0:r.optimize,No=gt===!0||gt===void 0?1:gt||0,Do=(n=(i=e.code)===null||i===void 0?void 0:i.regExp)!==null&&n!==void 0?n:kd,Hm=(t=e.uriResolver)!==null&&t!==void 0?t:wg.default;return{strictSchema:(o=(a=e.strictSchema)!==null&&a!==void 0?a:Fr)!==null&&o!==void 0?o:!0,strictNumbers:(u=(s=e.strictNumbers)!==null&&s!==void 0?s:Fr)!==null&&u!==void 0?u:!0,strictTypes:(d=(l=e.strictTypes)!==null&&l!==void 0?l:Fr)!==null&&d!==void 0?d:"log",strictTuples:(p=(c=e.strictTuples)!==null&&c!==void 0?c:Fr)!==null&&p!==void 0?p:"log",strictRequired:(f=(I=e.strictRequired)!==null&&I!==void 0?I:Fr)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:No,regExp:Do}:{optimize:No,regExp:Do},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:yd,loopEnum:(h=e.loopEnum)!==null&&h!==void 0?h:yd,meta:(q=e.meta)!==null&&q!==void 0?q:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(A=e.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(b=e.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(g=e.addUsedSchema)!==null&&g!==void 0?g:!0,validateSchema:(N=e.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(_=e.validateFormats)!==null&&_!==void 0?_:!0,unicodeRegExp:(yt=e.unicodeRegExp)!==null&&yt!==void 0?yt:!0,int32range:(At=e.int32range)!==null&&At!==void 0?At:!0,uriResolver:Hm}}class Gn{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...kg(e)};let{es5:r,lines:i}=this.opts.code;this.scope=new hg.ValueScope({scope:{},prefixes:Ag,es5:r,lines:i}),this.logger=Sg(e.logger);let n=e.validateFormats;if(e.validateFormats=!1,this.RULES=(0,qg.getRules)(),Ad.call(this,gg,e,"NOT SUPPORTED"),Ad.call(this,Cg,e,"DEPRECATED","warn"),this._metaOpts=Lg.call(this),e.formats)Rg.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords)Xg.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);bg.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:i}=this.opts,n=wd;if(i==="id")n={...wd},n.id=n.$id,delete n.$id;if(r&&e)this.addMetaSchema(n,n[i],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let i;if(typeof e=="string"){if(i=this.getSchema(e),!i)throw Error(`no schema with key or ref "${e}"`)}else i=this.compile(e);let n=i(r);if(!("$async"in i))this.errors=i.errors;return n}compile(e,r){let i=this._addSchema(e,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return n.call(this,e,r);async function n(l,d){await t.call(this,l.$schema);let c=this._addSchema(l,d);return c.validate||a.call(this,c)}async function t(l){if(l&&!this.getSchema(l))await n.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(d){if(!(d instanceof Cd.default))throw d;return o.call(this,d),await s.call(this,d.missingSchema),a.call(this,l)}}function o({missingSchema:l,missingRef:d}){if(this.refs[l])throw Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function s(l){let d=await u.call(this,l);if(!this.refs[l])await t.call(this,d.$schema);if(!this.refs[l])this.addSchema(d,l,r)}async function u(l){let d=this._loading[l];if(d)return d;try{return await(this._loading[l]=i(l))}finally{delete this._loading[l]}}}addSchema(e,r,i,n=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,i,n);return this}let t;if(typeof e==="object"){let{schemaId:a}=this.opts;if(t=e[a],t!==void 0&&typeof t!="string")throw Error(`schema ${a} must be string`)}return r=(0,bi.normalizeId)(r||t),this._checkUnique(r),this.schemas[r]=this._addSchema(e,i,r,n,!0),this}addMetaSchema(e,r,i=this.opts.validateSchema){return this.addSchema(e,r,!0,i),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let i;if(i=e.$schema,i!==void 0&&typeof i!="string")throw Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(i,e);if(!n&&r){let t="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(t);else throw Error(t)}return n}getSchema(e){let r;while(typeof(r=gd.call(this,e))=="string")e=r;if(r===void 0){let{schemaId:i}=this.opts,n=new ki.SchemaEnv({schema:{},schemaId:i});if(r=ki.resolveSchema.call(this,n,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=gd.call(this,e);if(typeof r=="object")this._cache.delete(r.schema);return delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let i=e[this.opts.schemaId];if(i)i=(0,bi.normalizeId)(i),delete this.schemas[i],delete this.refs[i];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let i;if(typeof e=="string"){if(i=e,typeof r=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=i}else if(typeof e=="object"&&r===void 0){if(r=e,i=r.keyword,Array.isArray(i)&&!i.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(vg.call(this,i,r),!r)return(0,_a.eachItem)(i,(t)=>xa.call(this,t)),this;Og.call(this,r);let n={...r,type:(0,jn.getJSONTypes)(r.type),schemaType:(0,jn.getJSONTypes)(r.schemaType)};return(0,_a.eachItem)(i,n.type.length===0?(t)=>xa.call(this,t,n):(t)=>n.type.forEach((a)=>xa.call(this,t,n,a))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let i of r.rules){let n=i.rules.findIndex((t)=>t.keyword===e);if(n>=0)i.rules.splice(n,1)}return this}addFormat(e,r){if(typeof r=="string")r=new RegExp(r);return this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:i="data"}={}){if(!e||e.length===0)return"No errors";return e.map((n)=>`${i}${n.instancePath} ${n.message}`).reduce((n,t)=>n+r+t)}$dataMetaSchema(e,r){let i=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let n of r){let t=n.split("/").slice(1),a=e;for(let o of t)a=a[o];for(let o in i){let s=i[o];if(typeof s!="object")continue;let{$data:u}=s.definition,l=a[o];if(u&&l)a[o]=bd(l)}}return e}_removeAllSchemas(e,r){for(let i in e){let n=e[i];if(!r||r.test(i)){if(typeof n=="string")delete e[i];else if(n&&!n.meta)this._cache.delete(n.schema),delete e[i]}}}_addSchema(e,r,i,n=this.opts.validateSchema,t=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof e=="object")a=e[o];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof e!="boolean")throw Error("schema must be object or boolean");let s=this._cache.get(e);if(s!==void 0)return s;i=(0,bi.normalizeId)(a||i);let u=bi.getSchemaRefs.call(this,e,i);if(s=new ki.SchemaEnv({schema:e,schemaId:o,meta:r,baseId:i,localRefs:u}),this._cache.set(s.schema,s),t&&!i.startsWith("#")){if(i)this._checkUnique(i);this.refs[i]=s}if(n)this.validateSchema(e,!0);return s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else ki.compileSchema.call(this,e);if(!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{ki.compileSchema.call(this,e)}finally{this.opts=r}}}Gn.ValidationError=Ig.default;Gn.MissingRefError=Cd.default;je.default=Gn;function Ad(e,r,i,n="error"){for(let t in e){let a=t;if(a in r)this.logger[n](`${i}: option ${t}. ${e[a]}`)}}function gd(e){return e=(0,bi.normalizeId)(e),this.schemas[e]||this.refs[e]}function bg(){let e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(let r in e)this.addSchema(e[r],r)}function Rg(){for(let e in this.opts.formats){let r=this.opts.formats[e];if(r)this.addFormat(e,r)}}function Xg(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in e){let i=e[r];if(!i.keyword)i.keyword=r;this.addKeyword(i)}}function Lg(){let e={...this.opts};for(let r of yg)delete e[r];return e}var Wg={log(){},warn(){},error(){}};function Sg(e){if(e===!1)return Wg;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}var zg=/^[a-z_$][a-z0-9_$:-]*$/i;function vg(e,r){let{RULES:i}=this;if((0,_a.eachItem)(e,(n)=>{if(i.keywords[n])throw Error(`Keyword ${n} is already defined`);if(!zg.test(n))throw Error(`Keyword ${n} has invalid name`)}),!r)return;if(r.$data&&!(("code"in r)||("validate"in r)))throw Error('$data keyword must have "code" or "validate" function')}function xa(e,r,i){var n;let t=r===null||r===void 0?void 0:r.post;if(i&&t)throw Error('keyword with "post" flag cannot have "type"');let{RULES:a}=this,o=t?a.post:a.rules.find(({type:u})=>u===i);if(!o)o={type:i,rules:[]},a.rules.push(o);if(a.keywords[e]=!0,!r)return;let s={keyword:e,definition:{...r,type:(0,jn.getJSONTypes)(r.type),schemaType:(0,jn.getJSONTypes)(r.schemaType)}};if(r.before)Pg.call(this,o,s,r.before);else o.rules.push(s);a.all[e]=s,(n=r.implements)===null||n===void 0||n.forEach((u)=>this.addKeyword(u))}function Pg(e,r,i){let n=e.rules.findIndex((t)=>t.keyword===i);if(n>=0)e.rules.splice(n,0,r);else e.rules.push(r),this.logger.warn(`rule ${i} is not defined`)}function Og(e){let{metaSchema:r}=e;if(r===void 0)return;if(e.$data&&this.opts.$data)r=bd(r);e.validateSchema=this.compile(r,!0)}var $g={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function bd(e){return{anyOf:[e,$g]}}});var Ld=y((Xd)=>{Object.defineProperty(Xd,"__esModule",{value:!0});var Eg={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Xd.default=Eg});var Od=y((vd)=>{Object.defineProperty(vd,"__esModule",{value:!0});vd.callRef=vd.getValidate=void 0;var Dg=Ai(),Wd=me(),ne=S(),Tr=Ne(),Sd=$n(),Un=v(),jg={keyword:"$ref",schemaType:"string",code(e){let{gen:r,schema:i,it:n}=e,{baseId:t,schemaEnv:a,validateName:o,opts:s,self:u}=n,{root:l}=a;if((i==="#"||i==="#/")&&t===l.baseId)return c();let d=Sd.resolveRef.call(u,l,t,i);if(d===void 0)throw new Dg.default(n.opts.uriResolver,t,i);if(d instanceof Sd.SchemaEnv)return p(d);return I(d);function c(){if(a===l)return Jn(e,o,a,a.$async);let f=r.scopeValue("root",{ref:l});return Jn(e,ne._`${f}.validate`,l,l.$async)}function p(f){let m=zd(e,f);Jn(e,m,f,f.$async)}function I(f){let m=r.scopeValue("schema",s.code.source===!0?{ref:f,code:(0,ne.stringify)(f)}:{ref:f}),h=r.name("valid"),q=e.subschema({schema:f,dataTypes:[],schemaPath:ne.nil,topSchemaRef:m,errSchemaPath:i},h);e.mergeEvaluated(q),e.ok(h)}}};function zd(e,r){let{gen:i}=e;return r.validate?i.scopeValue("validate",{ref:r.validate}):ne._`${i.scopeValue("wrapper",{ref:r})}.validate`}vd.getValidate=zd;function Jn(e,r,i,n){let{gen:t,it:a}=e,{allErrors:o,schemaEnv:s,opts:u}=a,l=u.passContext?Tr.default.this:ne.nil;if(n)d();else c();function d(){if(!s.$async)throw Error("async schema referenced by sync schema");let f=t.let("valid");t.try(()=>{if(t.code(ne._`await ${(0,Wd.callValidateCode)(e,r,l)}`),I(r),!o)t.assign(f,!0)},(m)=>{if(t.if(ne._`!(${m} instanceof ${a.ValidationError})`,()=>t.throw(m)),p(m),!o)t.assign(f,!1)}),e.ok(f)}function c(){e.result((0,Wd.callValidateCode)(e,r,l),()=>I(r),()=>p(r))}function p(f){let m=ne._`${f}.errors`;t.assign(Tr.default.vErrors,ne._`${Tr.default.vErrors} === null ? ${m} : ${Tr.default.vErrors}.concat(${m})`),t.assign(Tr.default.errors,ne._`${Tr.default.vErrors}.length`)}function I(f){var m;if(!a.opts.unevaluated)return;let h=(m=i===null||i===void 0?void 0:i.validate)===null||m===void 0?void 0:m.evaluated;if(a.props!==!0)if(h&&!h.dynamicProps){if(h.props!==void 0)a.props=Un.mergeEvaluated.props(t,h.props,a.props)}else{let q=t.var("props",ne._`${f}.evaluated.props`);a.props=Un.mergeEvaluated.props(t,q,a.props,ne.Name)}if(a.items!==!0)if(h&&!h.dynamicItems){if(h.items!==void 0)a.items=Un.mergeEvaluated.items(t,h.items,a.items)}else{let q=t.var("items",ne._`${f}.evaluated.items`);a.items=Un.mergeEvaluated.items(t,q,a.items,ne.Name)}}}vd.callRef=Jn;vd.default=jg});var Vd=y(($d)=>{Object.defineProperty($d,"__esModule",{value:!0});var Jg=Ld(),Mg=Od(),Yg=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Jg.default,Mg.default];$d.default=Yg});var Ed=y((Td)=>{Object.defineProperty(Td,"__esModule",{value:!0});var Mn=S(),xe=Mn.operators,Yn={maximum:{okStr:"<=",ok:xe.LTE,fail:xe.GT},minimum:{okStr:">=",ok:xe.GTE,fail:xe.LT},exclusiveMaximum:{okStr:"<",ok:xe.LT,fail:xe.GTE},exclusiveMinimum:{okStr:">",ok:xe.GT,fail:xe.LTE}},Fg={message:({keyword:e,schemaCode:r})=>Mn.str`must be ${Yn[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>Mn._`{comparison: ${Yn[e].okStr}, limit: ${r}}`},Kg={keyword:Object.keys(Yn),type:"number",schemaType:"number",$data:!0,error:Fg,code(e){let{keyword:r,data:i,schemaCode:n}=e;e.fail$data(Mn._`${i} ${Yn[r].fail} ${n} || isNaN(${i})`)}};Td.default=Kg});var Dd=y((Nd)=>{Object.defineProperty(Nd,"__esModule",{value:!0});var Ri=S(),Zg={message:({schemaCode:e})=>Ri.str`must be multiple of ${e}`,params:({schemaCode:e})=>Ri._`{multipleOf: ${e}}`},Qg={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Zg,code(e){let{gen:r,data:i,schemaCode:n,it:t}=e,a=t.opts.multipleOfPrecision,o=r.let("res"),s=a?Ri._`Math.abs(Math.round(${o}) - ${o}) > 1e-${a}`:Ri._`${o} !== parseInt(${o})`;e.fail$data(Ri._`(${n} === 0 || (${o} = ${i}/${n}, ${s}))`)}};Nd.default=Qg});var Ud=y((Gd)=>{Object.defineProperty(Gd,"__esModule",{value:!0});function jd(e){let r=e.length,i=0,n=0,t;while(n<r)if(i++,t=e.charCodeAt(n++),t>=55296&&t<=56319&&n<r){if(t=e.charCodeAt(n),(t&64512)===56320)n++}return i}Gd.default=jd;jd.code='require("ajv/dist/runtime/ucs2length").default'});var Md=y((Jd)=>{Object.defineProperty(Jd,"__esModule",{value:!0});var qr=S(),eC=v(),rC=Ud(),iC={message({keyword:e,schemaCode:r}){let i=e==="maxLength"?"more":"fewer";return qr.str`must NOT have ${i} than ${r} characters`},params:({schemaCode:e})=>qr._`{limit: ${e}}`},nC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:iC,code(e){let{keyword:r,data:i,schemaCode:n,it:t}=e,a=r==="maxLength"?qr.operators.GT:qr.operators.LT,o=t.opts.unicode===!1?qr._`${i}.length`:qr._`${(0,eC.useFunc)(e.gen,rC.default)}(${i})`;e.fail$data(qr._`${o} ${a} ${n}`)}};Jd.default=nC});var Bd=y((Yd)=>{Object.defineProperty(Yd,"__esModule",{value:!0});var aC=me(),oC=v(),Er=S(),sC={message:({schemaCode:e})=>Er.str`must match pattern "${e}"`,params:({schemaCode:e})=>Er._`{pattern: ${e}}`},uC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:sC,code(e){let{gen:r,data:i,$data:n,schema:t,schemaCode:a,it:o}=e,s=o.opts.unicodeRegExp?"u":"";if(n){let{regExp:u}=o.opts.code,l=u.code==="new RegExp"?Er._`new RegExp`:(0,oC.useFunc)(r,u),d=r.let("valid");r.try(()=>r.assign(d,Er._`${l}(${a}, ${s}).test(${i})`),()=>r.assign(d,!1)),e.fail$data(Er._`!${d}`)}else{let u=(0,aC.usePattern)(e,t);e.fail$data(Er._`!${u}.test(${i})`)}}};Yd.default=uC});var Kd=y((Fd)=>{Object.defineProperty(Fd,"__esModule",{value:!0});var Xi=S(),dC={message({keyword:e,schemaCode:r}){let i=e==="maxProperties"?"more":"fewer";return Xi.str`must NOT have ${i} than ${r} properties`},params:({schemaCode:e})=>Xi._`{limit: ${e}}`},cC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:dC,code(e){let{keyword:r,data:i,schemaCode:n}=e,t=r==="maxProperties"?Xi.operators.GT:Xi.operators.LT;e.fail$data(Xi._`Object.keys(${i}).length ${t} ${n}`)}};Fd.default=cC});var Zd=y((Hd)=>{Object.defineProperty(Hd,"__esModule",{value:!0});var Li=me(),Wi=S(),mC=v(),pC={message:({params:{missingProperty:e}})=>Wi.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Wi._`{missingProperty: ${e}}`},IC={keyword:"required",type:"object",schemaType:"array",$data:!0,error:pC,code(e){let{gen:r,schema:i,schemaCode:n,data:t,$data:a,it:o}=e,{opts:s}=o;if(!a&&i.length===0)return;let u=i.length>=s.loopRequired;if(o.allErrors)l();else d();if(s.strictRequired){let I=e.parentSchema.properties,{definedProperties:f}=e.it;for(let m of i)if((I===null||I===void 0?void 0:I[m])===void 0&&!f.has(m)){let h=o.schemaEnv.baseId+o.errSchemaPath,q=`required property "${m}" is not defined at "${h}" (strictRequired)`;(0,mC.checkStrictMode)(o,q,o.opts.strictRequired)}}function l(){if(u||a)e.block$data(Wi.nil,c);else for(let I of i)(0,Li.checkReportMissingProp)(e,I)}function d(){let I=r.let("missing");if(u||a){let f=r.let("valid",!0);e.block$data(f,()=>p(I,f)),e.ok(f)}else r.if((0,Li.checkMissingProp)(e,i,I)),(0,Li.reportMissingProp)(e,I),r.else()}function c(){r.forOf("prop",n,(I)=>{e.setParams({missingProperty:I}),r.if((0,Li.noPropertyInData)(r,t,I,s.ownProperties),()=>e.error())})}function p(I,f){e.setParams({missingProperty:I}),r.forOf(I,n,()=>{r.assign(f,(0,Li.propertyInData)(r,t,I,s.ownProperties)),r.if((0,Wi.not)(f),()=>{e.error(),r.break()})},Wi.nil)}}};Hd.default=IC});var xd=y((Qd)=>{Object.defineProperty(Qd,"__esModule",{value:!0});var Si=S(),hC={message({keyword:e,schemaCode:r}){let i=e==="maxItems"?"more":"fewer";return Si.str`must NOT have ${i} than ${r} items`},params:({schemaCode:e})=>Si._`{limit: ${e}}`},wC={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:hC,code(e){let{keyword:r,data:i,schemaCode:n}=e,t=r==="maxItems"?Si.operators.GT:Si.operators.LT;e.fail$data(Si._`${i}.length ${t} ${n}`)}};Qd.default=wC});var Bn=y((ec)=>{Object.defineProperty(ec,"__esModule",{value:!0});var _d=Ea();_d.code='require("ajv/dist/runtime/equal").default';ec.default=_d});var ic=y((rc)=>{Object.defineProperty(rc,"__esModule",{value:!0});var eo=Ii(),J=S(),gC=v(),CC=Bn(),kC={message:({params:{i:e,j:r}})=>J.str`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>J._`{i: ${e}, j: ${r}}`},bC={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:kC,code(e){let{gen:r,data:i,$data:n,schema:t,parentSchema:a,schemaCode:o,it:s}=e;if(!n&&!t)return;let u=r.let("valid"),l=a.items?(0,eo.getSchemaTypes)(a.items):[];e.block$data(u,d,J._`${o} === false`),e.ok(u);function d(){let f=r.let("i",J._`${i}.length`),m=r.let("j");e.setParams({i:f,j:m}),r.assign(u,!0),r.if(J._`${f} > 1`,()=>(c()?p:I)(f,m))}function c(){return l.length>0&&!l.some((f)=>f==="object"||f==="array")}function p(f,m){let h=r.name("item"),q=(0,eo.checkDataTypes)(l,h,s.opts.strictNumbers,eo.DataType.Wrong),w=r.const("indices",J._`{}`);r.for(J._`;${f}--;`,()=>{if(r.let(h,J._`${i}[${f}]`),r.if(q,J._`continue`),l.length>1)r.if(J._`typeof ${h} == "string"`,J._`${h} += "_"`);r.if(J._`typeof ${w}[${h}] == "number"`,()=>{r.assign(m,J._`${w}[${h}]`),e.error(),r.assign(u,!1).break()}).code(J._`${w}[${h}] = ${f}`)})}function I(f,m){let h=(0,gC.useFunc)(r,CC.default),q=r.name("outer");r.label(q).for(J._`;${f}--;`,()=>r.for(J._`${m} = ${f}; ${m}--;`,()=>r.if(J._`${h}(${i}[${f}], ${i}[${m}])`,()=>{e.error(),r.assign(u,!1).break(q)})))}}};rc.default=bC});var tc=y((nc)=>{Object.defineProperty(nc,"__esModule",{value:!0});var ro=S(),XC=v(),LC=Bn(),WC={message:"must be equal to constant",params:({schemaCode:e})=>ro._`{allowedValue: ${e}}`},SC={keyword:"const",$data:!0,error:WC,code(e){let{gen:r,data:i,$data:n,schemaCode:t,schema:a}=e;if(n||a&&typeof a=="object")e.fail$data(ro._`!${(0,XC.useFunc)(r,LC.default)}(${i}, ${t})`);else e.fail(ro._`${a} !== ${i}`)}};nc.default=SC});var oc=y((ac)=>{Object.defineProperty(ac,"__esModule",{value:!0});var zi=S(),vC=v(),PC=Bn(),OC={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>zi._`{allowedValues: ${e}}`},$C={keyword:"enum",schemaType:"array",$data:!0,error:OC,code(e){let{gen:r,data:i,$data:n,schema:t,schemaCode:a,it:o}=e;if(!n&&t.length===0)throw Error("enum must have non-empty array");let s=t.length>=o.opts.loopEnum,u,l=()=>u!==null&&u!==void 0?u:u=(0,vC.useFunc)(r,PC.default),d;if(s||n)d=r.let("valid"),e.block$data(d,c);else{if(!Array.isArray(t))throw Error("ajv implementation error");let I=r.const("vSchema",a);d=(0,zi.or)(...t.map((f,m)=>p(I,m)))}e.pass(d);function c(){r.assign(d,!1),r.forOf("v",a,(I)=>r.if(zi._`${l()}(${i}, ${I})`,()=>r.assign(d,!0).break()))}function p(I,f){let m=t[f];return typeof m==="object"&&m!==null?zi._`${l()}(${i}, ${I}[${f}])`:zi._`${i} === ${m}`}}};ac.default=$C});var uc=y((sc)=>{Object.defineProperty(sc,"__esModule",{value:!0});var TC=Ed(),EC=Dd(),NC=Md(),DC=Bd(),jC=Kd(),GC=Zd(),UC=xd(),JC=ic(),MC=tc(),YC=oc(),BC=[TC.default,EC.default,NC.default,DC.default,jC.default,GC.default,UC.default,JC.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},MC.default,YC.default];sc.default=BC});var no=y((dc)=>{Object.defineProperty(dc,"__esModule",{value:!0});dc.validateAdditionalItems=void 0;var hr=S(),io=v(),KC={message:({params:{len:e}})=>hr.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>hr._`{limit: ${e}}`},HC={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:KC,code(e){let{parentSchema:r,it:i}=e,{items:n}=r;if(!Array.isArray(n)){(0,io.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}lc(e,n)}};function lc(e,r){let{gen:i,schema:n,data:t,keyword:a,it:o}=e;o.items=!0;let s=i.const("len",hr._`${t}.length`);if(n===!1)e.setParams({len:r.length}),e.pass(hr._`${s} <= ${r.length}`);else if(typeof n=="object"&&!(0,io.alwaysValidSchema)(o,n)){let l=i.var("valid",hr._`${s} <= ${r.length}`);i.if((0,hr.not)(l),()=>u(l)),e.ok(l)}function u(l){i.forRange("i",r.length,s,(d)=>{if(e.subschema({keyword:a,dataProp:d,dataPropType:io.Type.Num},l),!o.allErrors)i.if((0,hr.not)(l),()=>i.break())})}}dc.validateAdditionalItems=lc;dc.default=HC});var to=y((pc)=>{Object.defineProperty(pc,"__esModule",{value:!0});pc.validateTuple=void 0;var fc=S(),Fn=v(),QC=me(),xC={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:r,it:i}=e;if(Array.isArray(r))return mc(e,"additionalItems",r);if(i.items=!0,(0,Fn.alwaysValidSchema)(i,r))return;e.ok((0,QC.validateArray)(e))}};function mc(e,r,i=e.schema){let{gen:n,parentSchema:t,data:a,keyword:o,it:s}=e;if(d(t),s.opts.unevaluated&&i.length&&s.items!==!0)s.items=Fn.mergeEvaluated.items(n,i.length,s.items);let u=n.name("valid"),l=n.const("len",fc._`${a}.length`);i.forEach((c,p)=>{if((0,Fn.alwaysValidSchema)(s,c))return;n.if(fc._`${l} > ${p}`,()=>e.subschema({keyword:o,schemaProp:p,dataProp:p},u)),e.ok(u)});function d(c){let{opts:p,errSchemaPath:I}=s,f=i.length,m=f===c.minItems&&(f===c.maxItems||c[r]===!1);if(p.strictTuples&&!m){let h=`"${o}" is ${f}-tuple, but minItems or maxItems/${r} are not specified or different at path "${I}"`;(0,Fn.checkStrictMode)(s,h,p.strictTuples)}}}pc.validateTuple=mc;pc.default=xC});var hc=y((qc)=>{Object.defineProperty(qc,"__esModule",{value:!0});var ek=to(),rk={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(e)=>(0,ek.validateTuple)(e,"items")};qc.default=rk});var Ac=y((yc)=>{Object.defineProperty(yc,"__esModule",{value:!0});var wc=S(),nk=v(),tk=me(),ak=no(),ok={message:({params:{len:e}})=>wc.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>wc._`{limit: ${e}}`},sk={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ok,code(e){let{schema:r,parentSchema:i,it:n}=e,{prefixItems:t}=i;if(n.items=!0,(0,nk.alwaysValidSchema)(n,r))return;if(t)(0,ak.validateAdditionalItems)(e,t);else e.ok((0,tk.validateArray)(e))}};yc.default=sk});var Cc=y((gc)=>{Object.defineProperty(gc,"__esModule",{value:!0});var pe=S(),Kn=v(),lk={message:({params:{min:e,max:r}})=>r===void 0?pe.str`must contain at least ${e} valid item(s)`:pe.str`must contain at least ${e} and no more than ${r} valid item(s)`,params:({params:{min:e,max:r}})=>r===void 0?pe._`{minContains: ${e}}`:pe._`{minContains: ${e}, maxContains: ${r}}`},dk={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:lk,code(e){let{gen:r,schema:i,parentSchema:n,data:t,it:a}=e,o,s,{minContains:u,maxContains:l}=n;if(a.opts.next)o=u===void 0?1:u,s=l;else o=1;let d=r.const("len",pe._`${t}.length`);if(e.setParams({min:o,max:s}),s===void 0&&o===0){(0,Kn.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&o>s){(0,Kn.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Kn.alwaysValidSchema)(a,i)){let m=pe._`${d} >= ${o}`;if(s!==void 0)m=pe._`${m} && ${d} <= ${s}`;e.pass(m);return}a.items=!0;let c=r.name("valid");if(s===void 0&&o===1)I(c,()=>r.if(c,()=>r.break()));else if(o===0){if(r.let(c,!0),s!==void 0)r.if(pe._`${t}.length > 0`,p)}else r.let(c,!1),p();e.result(c,()=>e.reset());function p(){let m=r.name("_valid"),h=r.let("count",0);I(m,()=>r.if(m,()=>f(h)))}function I(m,h){r.forRange("i",0,d,(q)=>{e.subschema({keyword:"contains",dataProp:q,dataPropType:Kn.Type.Num,compositeRule:!0},m),h()})}function f(m){if(r.code(pe._`${m}++`),s===void 0)r.if(pe._`${m} >= ${o}`,()=>r.assign(c,!0).break());else if(r.if(pe._`${m} > ${s}`,()=>r.assign(c,!1).break()),o===1)r.assign(c,!0);else r.if(pe._`${m} >= ${o}`,()=>r.assign(c,!0))}}};gc.default=dk});var Wc=y((Rc)=>{Object.defineProperty(Rc,"__esModule",{value:!0});Rc.validateSchemaDeps=Rc.validatePropertyDeps=Rc.error=void 0;var ao=S(),fk=v(),vi=me();Rc.error={message:({params:{property:e,depsCount:r,deps:i}})=>{let n=r===1?"property":"properties";return ao.str`must have ${n} ${i} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:i,missingProperty:n}})=>ao._`{property: ${e},
32
+ missingProperty: ${n},
33
+ depsCount: ${r},
34
+ deps: ${i}}`};var mk={keyword:"dependencies",type:"object",schemaType:"object",error:Rc.error,code(e){let[r,i]=pk(e);kc(e,r),bc(e,i)}};function pk({schema:e}){let r={},i={};for(let n in e){if(n==="__proto__")continue;let t=Array.isArray(e[n])?r:i;t[n]=e[n]}return[r,i]}function kc(e,r=e.schema){let{gen:i,data:n,it:t}=e;if(Object.keys(r).length===0)return;let a=i.let("missing");for(let o in r){let s=r[o];if(s.length===0)continue;let u=(0,vi.propertyInData)(i,n,o,t.opts.ownProperties);if(e.setParams({property:o,depsCount:s.length,deps:s.join(", ")}),t.allErrors)i.if(u,()=>{for(let l of s)(0,vi.checkReportMissingProp)(e,l)});else i.if(ao._`${u} && (${(0,vi.checkMissingProp)(e,s,a)})`),(0,vi.reportMissingProp)(e,a),i.else()}}Rc.validatePropertyDeps=kc;function bc(e,r=e.schema){let{gen:i,data:n,keyword:t,it:a}=e,o=i.name("valid");for(let s in r){if((0,fk.alwaysValidSchema)(a,r[s]))continue;i.if((0,vi.propertyInData)(i,n,s,a.opts.ownProperties),()=>{let u=e.subschema({keyword:t,schemaProp:s},o);e.mergeValidEvaluated(u,o)},()=>i.var(o,!0)),e.ok(o)}}Rc.validateSchemaDeps=bc;Rc.default=mk});var vc=y((zc)=>{Object.defineProperty(zc,"__esModule",{value:!0});var Sc=S(),hk=v(),wk={message:"property name must be valid",params:({params:e})=>Sc._`{propertyName: ${e.propertyName}}`},yk={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:wk,code(e){let{gen:r,schema:i,data:n,it:t}=e;if((0,hk.alwaysValidSchema)(t,i))return;let a=r.name("valid");r.forIn("key",n,(o)=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},a),r.if((0,Sc.not)(a),()=>{if(e.error(!0),!t.allErrors)r.break()})}),e.ok(a)}};zc.default=yk});var oo=y((Pc)=>{Object.defineProperty(Pc,"__esModule",{value:!0});var Hn=me(),Xe=S(),gk=Ne(),Zn=v(),Ck={message:"must NOT have additional properties",params:({params:e})=>Xe._`{additionalProperty: ${e.additionalProperty}}`},kk={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Ck,code(e){let{gen:r,schema:i,parentSchema:n,data:t,errsCount:a,it:o}=e;if(!a)throw Error("ajv implementation error");let{allErrors:s,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,Zn.alwaysValidSchema)(o,i))return;let l=(0,Hn.allSchemaProperties)(n.properties),d=(0,Hn.allSchemaProperties)(n.patternProperties);c(),e.ok(Xe._`${a} === ${gk.default.errors}`);function c(){r.forIn("key",t,(h)=>{if(!l.length&&!d.length)f(h);else r.if(p(h),()=>f(h))})}function p(h){let q;if(l.length>8){let w=(0,Zn.schemaRefOrVal)(o,n.properties,"properties");q=(0,Hn.isOwnProperty)(r,w,h)}else if(l.length)q=(0,Xe.or)(...l.map((w)=>Xe._`${h} === ${w}`));else q=Xe.nil;if(d.length)q=(0,Xe.or)(q,...d.map((w)=>Xe._`${(0,Hn.usePattern)(e,w)}.test(${h})`));return(0,Xe.not)(q)}function I(h){r.code(Xe._`delete ${t}[${h}]`)}function f(h){if(u.removeAdditional==="all"||u.removeAdditional&&i===!1){I(h);return}if(i===!1){if(e.setParams({additionalProperty:h}),e.error(),!s)r.break();return}if(typeof i=="object"&&!(0,Zn.alwaysValidSchema)(o,i)){let q=r.name("valid");if(u.removeAdditional==="failing")m(h,q,!1),r.if((0,Xe.not)(q),()=>{e.reset(),I(h)});else if(m(h,q),!s)r.if((0,Xe.not)(q),()=>r.break())}}function m(h,q,w){let A={keyword:"additionalProperties",dataProp:h,dataPropType:Zn.Type.Str};if(w===!1)Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1});e.subschema(A,q)}}};Pc.default=kk});var Tc=y((Vc)=>{Object.defineProperty(Vc,"__esModule",{value:!0});var Rk=yi(),Oc=me(),so=v(),$c=oo(),Xk={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:r,schema:i,parentSchema:n,data:t,it:a}=e;if(a.opts.removeAdditional==="all"&&n.additionalProperties===void 0)$c.default.code(new Rk.KeywordCxt(a,$c.default,"additionalProperties"));let o=(0,Oc.allSchemaProperties)(i);for(let c of o)a.definedProperties.add(c);if(a.opts.unevaluated&&o.length&&a.props!==!0)a.props=so.mergeEvaluated.props(r,(0,so.toHash)(o),a.props);let s=o.filter((c)=>!(0,so.alwaysValidSchema)(a,i[c]));if(s.length===0)return;let u=r.name("valid");for(let c of s){if(l(c))d(c);else{if(r.if((0,Oc.propertyInData)(r,t,c,a.opts.ownProperties)),d(c),!a.allErrors)r.else().var(u,!0);r.endIf()}e.it.definedProperties.add(c),e.ok(u)}function l(c){return a.opts.useDefaults&&!a.compositeRule&&i[c].default!==void 0}function d(c){e.subschema({keyword:"properties",schemaProp:c,dataProp:c},u)}}};Vc.default=Xk});var Gc=y((jc)=>{Object.defineProperty(jc,"__esModule",{value:!0});var Ec=me(),Qn=S(),Nc=v(),Dc=v(),Wk={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:r,schema:i,data:n,parentSchema:t,it:a}=e,{opts:o}=a,s=(0,Ec.allSchemaProperties)(i),u=s.filter((m)=>(0,Nc.alwaysValidSchema)(a,i[m]));if(s.length===0||u.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;let l=o.strictSchema&&!o.allowMatchingProperties&&t.properties,d=r.name("valid");if(a.props!==!0&&!(a.props instanceof Qn.Name))a.props=(0,Dc.evaluatedPropsToName)(r,a.props);let{props:c}=a;p();function p(){for(let m of s){if(l)I(m);if(a.allErrors)f(m);else r.var(d,!0),f(m),r.if(d)}}function I(m){for(let h in l)if(new RegExp(m).test(h))(0,Nc.checkStrictMode)(a,`property ${h} matches pattern ${m} (use allowMatchingProperties)`)}function f(m){r.forIn("key",n,(h)=>{r.if(Qn._`${(0,Ec.usePattern)(e,m)}.test(${h})`,()=>{let q=u.includes(m);if(!q)e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:h,dataPropType:Dc.Type.Str},d);if(a.opts.unevaluated&&c!==!0)r.assign(Qn._`${c}[${h}]`,!0);else if(!q&&!a.allErrors)r.if((0,Qn.not)(d),()=>r.break())})})}}};jc.default=Wk});var Jc=y((Uc)=>{Object.defineProperty(Uc,"__esModule",{value:!0});var zk=v(),vk={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:r,schema:i,it:n}=e;if((0,zk.alwaysValidSchema)(n,i)){e.fail();return}let t=r.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},t),e.failResult(t,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Uc.default=vk});var Yc=y((Mc)=>{Object.defineProperty(Mc,"__esModule",{value:!0});var Ok=me(),$k={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ok.validateUnion,error:{message:"must match a schema in anyOf"}};Mc.default=$k});var Fc=y((Bc)=>{Object.defineProperty(Bc,"__esModule",{value:!0});var xn=S(),Tk=v(),Ek={message:"must match exactly one schema in oneOf",params:({params:e})=>xn._`{passingSchemas: ${e.passing}}`},Nk={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Ek,code(e){let{gen:r,schema:i,parentSchema:n,it:t}=e;if(!Array.isArray(i))throw Error("ajv implementation error");if(t.opts.discriminator&&n.discriminator)return;let a=i,o=r.let("valid",!1),s=r.let("passing",null),u=r.name("_valid");e.setParams({passing:s}),r.block(l),e.result(o,()=>e.reset(),()=>e.error(!0));function l(){a.forEach((d,c)=>{let p;if((0,Tk.alwaysValidSchema)(t,d))r.var(u,!0);else p=e.subschema({keyword:"oneOf",schemaProp:c,compositeRule:!0},u);if(c>0)r.if(xn._`${u} && ${o}`).assign(o,!1).assign(s,xn._`[${s}, ${c}]`).else();r.if(u,()=>{if(r.assign(o,!0),r.assign(s,c),p)e.mergeEvaluated(p,xn.Name)})})}}};Bc.default=Nk});var Hc=y((Kc)=>{Object.defineProperty(Kc,"__esModule",{value:!0});var jk=v(),Gk={keyword:"allOf",schemaType:"array",code(e){let{gen:r,schema:i,it:n}=e;if(!Array.isArray(i))throw Error("ajv implementation error");let t=r.name("valid");i.forEach((a,o)=>{if((0,jk.alwaysValidSchema)(n,a))return;let s=e.subschema({keyword:"allOf",schemaProp:o},t);e.ok(t),e.mergeEvaluated(s)})}};Kc.default=Gk});var _c=y((xc)=>{Object.defineProperty(xc,"__esModule",{value:!0});var _n=S(),Qc=v(),Jk={message:({params:e})=>_n.str`must match "${e.ifClause}" schema`,params:({params:e})=>_n._`{failingKeyword: ${e.ifClause}}`},Mk={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Jk,code(e){let{gen:r,parentSchema:i,it:n}=e;if(i.then===void 0&&i.else===void 0)(0,Qc.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let t=Zc(n,"then"),a=Zc(n,"else");if(!t&&!a)return;let o=r.let("valid",!0),s=r.name("_valid");if(u(),e.reset(),t&&a){let d=r.let("ifClause");e.setParams({ifClause:d}),r.if(s,l("then",d),l("else",d))}else if(t)r.if(s,l("then"));else r.if((0,_n.not)(s),l("else"));e.pass(o,()=>e.error(!0));function u(){let d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(d)}function l(d,c){return()=>{let p=e.subschema({keyword:d},s);if(r.assign(o,s),e.mergeValidEvaluated(p,o),c)r.assign(c,_n._`${d}`);else e.setParams({ifClause:d})}}}};function Zc(e,r){let i=e.schema[r];return i!==void 0&&!(0,Qc.alwaysValidSchema)(e,i)}xc.default=Mk});var rf=y((ef)=>{Object.defineProperty(ef,"__esModule",{value:!0});var Bk=v(),Fk={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:r,it:i}){if(r.if===void 0)(0,Bk.checkStrictMode)(i,`"${e}" without "if" is ignored`)}};ef.default=Fk});var tf=y((nf)=>{Object.defineProperty(nf,"__esModule",{value:!0});var Hk=no(),Zk=hc(),Qk=to(),xk=Ac(),_k=Cc(),eb=Wc(),rb=vc(),ib=oo(),nb=Tc(),tb=Gc(),ab=Jc(),ob=Yc(),sb=Fc(),ub=Hc(),lb=_c(),db=rf();function cb(e=!1){let r=[ab.default,ob.default,sb.default,ub.default,lb.default,db.default,rb.default,ib.default,eb.default,nb.default,tb.default];if(e)r.push(Zk.default,xk.default);else r.push(Hk.default,Qk.default);return r.push(_k.default),r}nf.default=cb});var of=y((af)=>{Object.defineProperty(af,"__esModule",{value:!0});var D=S(),mb={message:({schemaCode:e})=>D.str`must match format "${e}"`,params:({schemaCode:e})=>D._`{format: ${e}}`},pb={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:mb,code(e,r){let{gen:i,data:n,$data:t,schema:a,schemaCode:o,it:s}=e,{opts:u,errSchemaPath:l,schemaEnv:d,self:c}=s;if(!u.validateFormats)return;if(t)p();else I();function p(){let f=i.scopeValue("formats",{ref:c.formats,code:u.code.formats}),m=i.const("fDef",D._`${f}[${o}]`),h=i.let("fType"),q=i.let("format");i.if(D._`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>i.assign(h,D._`${m}.type || "string"`).assign(q,D._`${m}.validate`),()=>i.assign(h,D._`"string"`).assign(q,m)),e.fail$data((0,D.or)(w(),A()));function w(){if(u.strictSchema===!1)return D.nil;return D._`${o} && !${q}`}function A(){let b=d.$async?D._`(${m}.async ? await ${q}(${n}) : ${q}(${n}))`:D._`${q}(${n})`,g=D._`(typeof ${q} == "function" ? ${b} : ${q}.test(${n}))`;return D._`${q} && ${q} !== true && ${h} === ${r} && !${g}`}}function I(){let f=c.formats[a];if(!f){w();return}if(f===!0)return;let[m,h,q]=A(f);if(m===r)e.pass(b());function w(){if(u.strictSchema===!1){c.logger.warn(g());return}throw Error(g());function g(){return`unknown format "${a}" ignored in schema at path "${l}"`}}function A(g){let N=g instanceof RegExp?(0,D.regexpCode)(g):u.code.formats?D._`${u.code.formats}${(0,D.getProperty)(a)}`:void 0,_=i.scopeValue("formats",{key:a,ref:g,code:N});if(typeof g=="object"&&!(g instanceof RegExp))return[g.type||"string",g.validate,D._`${_}.validate`];return["string",g,_]}function b(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!d.$async)throw Error("async format in sync schema");return D._`await ${q}(${n})`}return typeof h=="function"?D._`${q}(${n})`:D._`${q}.test(${n})`}}}};af.default=pb});var uf=y((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});var qb=of(),hb=[qb.default];sf.default=hb});var cf=y((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.contentVocabulary=lf.metadataVocabulary=void 0;lf.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];lf.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var pf=y((mf)=>{Object.defineProperty(mf,"__esModule",{value:!0});var Ab=Vd(),gb=uc(),Cb=tf(),kb=uf(),ff=cf(),bb=[Ab.default,gb.default,(0,Cb.default)(),kb.default,ff.metadataVocabulary,ff.contentVocabulary];mf.default=bb});var wf=y((qf)=>{Object.defineProperty(qf,"__esModule",{value:!0});qf.DiscrError=void 0;var If;(function(e){e.Tag="tag",e.Mapping="mapping"})(If||(qf.DiscrError=If={}))});var gf=y((Af)=>{Object.defineProperty(Af,"__esModule",{value:!0});var Nr=S(),uo=wf(),yf=$n(),Xb=Ai(),Lb=v(),Wb={message:({params:{discrError:e,tagName:r}})=>e===uo.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:e,tag:r,tagName:i}})=>Nr._`{error: ${e}, tag: ${i}, tagValue: ${r}}`},Sb={keyword:"discriminator",type:"object",schemaType:"object",error:Wb,code(e){let{gen:r,data:i,schema:n,parentSchema:t,it:a}=e,{oneOf:o}=t;if(!a.opts.discriminator)throw Error("discriminator: requires discriminator option");let s=n.propertyName;if(typeof s!="string")throw Error("discriminator: requires propertyName");if(n.mapping)throw Error("discriminator: mapping is not supported");if(!o)throw Error("discriminator: requires oneOf keyword");let u=r.let("valid",!1),l=r.const("tag",Nr._`${i}${(0,Nr.getProperty)(s)}`);r.if(Nr._`typeof ${l} == "string"`,()=>d(),()=>e.error(!1,{discrError:uo.DiscrError.Tag,tag:l,tagName:s})),e.ok(u);function d(){let I=p();r.if(!1);for(let f in I)r.elseIf(Nr._`${l} === ${f}`),r.assign(u,c(I[f]));r.else(),e.error(!1,{discrError:uo.DiscrError.Mapping,tag:l,tagName:s}),r.endIf()}function c(I){let f=r.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:I},f);return e.mergeEvaluated(m,Nr.Name),f}function p(){var I;let f={},m=q(t),h=!0;for(let b=0;b<o.length;b++){let g=o[b];if((g===null||g===void 0?void 0:g.$ref)&&!(0,Lb.schemaHasRulesButRef)(g,a.self.RULES)){let _=g.$ref;if(g=yf.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,_),g instanceof yf.SchemaEnv)g=g.schema;if(g===void 0)throw new Xb.default(a.opts.uriResolver,a.baseId,_)}let N=(I=g===null||g===void 0?void 0:g.properties)===null||I===void 0?void 0:I[s];if(typeof N!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);h=h&&(m||q(g)),w(N,b)}if(!h)throw Error(`discriminator: "${s}" must be required`);return f;function q({required:b}){return Array.isArray(b)&&b.includes(s)}function w(b,g){if(b.const)A(b.const,g);else if(b.enum)for(let N of b.enum)A(N,g);else throw Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function A(b,g){if(typeof b!="string"||b in f)throw Error(`discriminator: "${s}" values must be unique strings`);f[b]=g}}}};Af.default=Sb});var Cf=y((fv,vb)=>{vb.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var bf=y((te,lo)=>{Object.defineProperty(te,"__esModule",{value:!0});te.MissingRefError=te.ValidationError=te.CodeGen=te.Name=te.nil=te.stringify=te.str=te._=te.KeywordCxt=te.Ajv=void 0;var Pb=Rd(),Ob=pf(),$b=gf(),kf=Cf(),Vb=["/properties"],et="http://json-schema.org/draft-07/schema";class Pi extends Pb.default{_addVocabularies(){if(super._addVocabularies(),Ob.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword($b.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(kf,Vb):kf;this.addMetaSchema(e,et,!1),this.refs["http://json-schema.org/schema"]=et}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(et)?et:void 0)}}te.Ajv=Pi;lo.exports=te=Pi;lo.exports.Ajv=Pi;Object.defineProperty(te,"__esModule",{value:!0});te.default=Pi;var Tb=yi();Object.defineProperty(te,"KeywordCxt",{enumerable:!0,get:function(){return Tb.KeywordCxt}});var Dr=S();Object.defineProperty(te,"_",{enumerable:!0,get:function(){return Dr._}});Object.defineProperty(te,"str",{enumerable:!0,get:function(){return Dr.str}});Object.defineProperty(te,"stringify",{enumerable:!0,get:function(){return Dr.stringify}});Object.defineProperty(te,"nil",{enumerable:!0,get:function(){return Dr.nil}});Object.defineProperty(te,"Name",{enumerable:!0,get:function(){return Dr.Name}});Object.defineProperty(te,"CodeGen",{enumerable:!0,get:function(){return Dr.CodeGen}});var Eb=Pn();Object.defineProperty(te,"ValidationError",{enumerable:!0,get:function(){return Eb.default}});var Nb=Ai();Object.defineProperty(te,"MissingRefError",{enumerable:!0,get:function(){return Nb.default}})});import{realpathSync as Km}from"node:fs";import{fileURLToPath as lX}from"node:url";var ts=Go(ns(),1),{program:gX,createCommand:CX,createArgument:kX,createOption:bX,CommanderError:as,InvalidArgumentError:RX,InvalidOptionArgumentError:XX,Command:os,Argument:LX,Option:WX,Help:SX}=ts.default;function ss(e){return e.status===408||e.status===429||e.status>=500}async function Zr(e){let r=e.now??Date.now,i=e.deadline===void 0?1/0:e.deadline-r();if(i<=0)throw Error("The auth provider request deadline expired.");let n=new AbortController,t=setTimeout(()=>n.abort(),Math.min(e.timeoutMs??1e4,i));try{return await e.fetch(e.url,{...e.init,signal:n.signal})}finally{clearTimeout(t)}}import{createHash as nI}from"node:crypto";import{chmod as tI,lstat as aI,mkdir as oI}from"node:fs/promises";import{join as sI}from"node:path";import{spawn as Kp}from"node:child_process";import{constants as zt}from"node:fs";import{lstat as us,open as Hp}from"node:fs/promises";var Zp=1,ls="printf '\\001'; exec /bin/cat >/dev/null",Qp=String.raw`
35
35
  $ErrorActionPreference = "Stop"
36
36
  $path = $env:ACTION_CLI_LOCK_PATH
37
37
  $timeoutValue = $env:ACTION_CLI_LOCK_TIMEOUT_MS
@@ -66,7 +66,7 @@ try {
66
66
  } finally {
67
67
  $stream.Dispose()
68
68
  }
69
- `;async function XS(i){if(await i.ensureParent?.(),(i.platform??process.platform)==="win32")try{let l=await eA(i.path);if(l.isSymbolicLink()||!l.isFile())throw i.invalidFileError(i.path);return}catch(l){if(l.code!=="ENOENT")throw l}let f;try{if(f=await US(i.path,Cn.O_CREAT|Cn.O_RDWR|Cn.O_NOFOLLOW,384),!(await f.stat()).isFile())throw i.invalidFileError(i.path);await f.chmod(384)}catch(l){if(l instanceof Error&&"code"in l&&(l.code==="ELOOP"||l.code==="EISDIR"))throw i.invalidFileError(i.path);throw l}finally{await f?.close()}let w=await eA(i.path);if(w.isSymbolicLink()||!w.isFile())throw i.invalidFileError(i.path)}function GS(i,f,w){if(i==="darwin")return{args:["-k","-s",...w===void 0?[]:["-t",String(Math.max(1,Math.ceil(w/1000)))],"-w",f,"/bin/sh","-c",iI],command:"/usr/bin/lockf"};if(i==="linux")return{args:["--exclusive",...w===void 0?[]:["--timeout",String(w/1000)],f,"/bin/sh","-c",iI],command:"/usr/bin/flock"};if(i==="win32")return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",FS],command:"powershell.exe",env:{ACTION_CLI_LOCK_PATH:f,...w===void 0?{}:{ACTION_CLI_LOCK_TIMEOUT_MS:String(w)}}};throw Error(`Action CLI file locks are not supported on ${i}.`)}function ZS(i,f){return new Promise((w,l)=>{let t="",n=!1,W=f.timeoutMs===void 0?null:setTimeout(()=>{if(n)return;n=!0,i.kill("SIGKILL"),l(f.timeoutError(f.path))},f.timeoutMs),A=($)=>{if(n)return;if(n=!0,W)clearTimeout(W);$()};i.stderr.on("data",($)=>{t+=$.toString("utf8")}),i.stdout.on("data",($)=>{if($.includes(YS))A(w)}),i.once("error",($)=>A(()=>l($))),i.once("close",()=>A(()=>{let $=t.trim();l($?Error(`The operating-system lock helper failed: ${$}`):f.timeoutError(f.path))}))})}async function KS(i){await new Promise((f)=>{let w=()=>{i.off("close",w),f()};if(i.once("close",w),i.exitCode!==null||i.signalCode!==null){w();return}i.stdin.end()})}async function QS(i){await new Promise((f)=>{let w=()=>{i.off("close",w),f()};if(i.once("close",w),i.pid===void 0||i.exitCode!==null||i.signalCode!==null){w();return}try{if(!i.kill("SIGKILL"))w()}catch{w()}})}async function Xl(i){await XS(i);let f=GS(i.platform??process.platform,i.path,i.timeoutMs),w=JS(f.command,f.args,{env:f.env?{...process.env,...f.env}:process.env,shell:!1,stdio:["pipe","pipe","pipe"],windowsHide:!0});try{await ZS(w,i)}catch(t){throw await QS(w),t}let l=!1;return{path:i.path,async release(){if(l)return;l=!0,await KS(w)}}}class bf extends Error{constructor(i){super(i);this.name="AuthStateLockError"}}async function hS(i){await jS(i,{mode:448,recursive:!0});let f=await HS(i);if(f.isSymbolicLink()||!f.isDirectory())throw new bf("The Action CLI auth lock directory must be a real directory.");await VS(i,448)}async function Jw(i,f,w){let l=BS("sha256").update(f).digest("hex").slice(0,24),t=vS(i,`auth-${l}.lock`),n=await Xl({ensureParent:()=>hS(i),invalidFileError:()=>new bf("The Action CLI auth lock must be a regular file."),path:t,timeoutError:()=>new bf(`Another Action CLI process is updating auth for profile ${f}.`)});try{return await w()}finally{await n.release()}}var Uw="https://schemas.action.ai/workflows/v1/project.json",Yw="https://schemas.action.ai/workflows/v1/workflow.json",Fw="https://schemas.action.ai/workflows/v1/lock.json",rf=1,lf="index.mjs",Sn=/^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z0-9](?:[a-z0-9-]{0,118}[a-z0-9])?$/u;function Ri(i,f){if(!i||!Object.prototype.hasOwnProperty.call(i.workflows,f))return;return i.workflows[f]}class gf extends Error{actual;expected;kind;constructor(i,f,w){super(`Project lock ${i} mismatch: expected ${f}, found ${w}.`);this.name="ProjectContextMismatchError",this.kind=i,this.expected=f,this.actual=w}}function Mf(i){let f;try{f=new URL(i)}catch{throw TypeError(`Invalid API origin: ${i}`)}if(f.protocol!=="http:"&&f.protocol!=="https:")throw TypeError("API origin must use http or https.");if(f.username||f.password||f.search||f.hash)throw TypeError("API origin cannot contain credentials, a query, or a fragment.");return f.pathname=f.pathname.replace(/\/+$/u,"")||"/",f.toString().replace(/\/$/u,"")}function df(i){if(!i.organizationId.trim())throw TypeError("Organization ID cannot be blank.");if(!i.spaceId.trim())throw TypeError("Space ID cannot be blank.");return{organizationId:i.organizationId,origin:Mf(i.origin),spaceId:i.spaceId}}function _f(i){let f=df(i);return{$schema:Fw,organizationId:f.organizationId,origin:f.origin,schemaVersion:rf,spaceId:f.spaceId,workflows:{}}}function Bi(i,f){let w=df(f),l=Mf(i.origin);if(l!==w.origin)throw new gf("origin",w.origin,l);if(i.organizationId!==w.organizationId)throw new gf("organization",w.organizationId,i.organizationId);if(i.spaceId!==w.spaceId)throw new gf("space",w.spaceId,i.spaceId)}var fI=60000,Ln=2;class Hi extends Error{constructor(i="Run `action auth login` or set ACTION_TOKEN or ACTION_API_KEY."){super(i);this.name="AuthenticationRequiredError"}}class Di extends Error{constructor(i="The stored Action CLI session has expired or was revoked. Sign in again."){super(i);this.name="HumanSessionExpiredError"}}class gi extends Error{constructor(i="The Action CLI could not refresh the stored session."){super(i);this.name="HumanSessionRefreshError"}}function Vi(i){return typeof i==="string"&&i.trim()?i.trim():null}function Gw(i,f){return new URL(`/user_management${f}`,i).toString()}function wI(i){let f=i?.trim();if(!f)return null;if(/\r|\n/u.test(f))throw new Hi("Environment credentials must not contain newlines.");return f}function xS(i){let f=i.split(".");if(f.length!==3||!f[1])return null;try{let w=JSON.parse(Buffer.from(f[1],"base64url").toString("utf8"));return typeof w.exp==="number"&&Number.isFinite(w.exp)?w.exp*1000:null}catch{return null}}function Gl(i){let f=Vi(i.accessToken),w=Vi(i.refreshToken),l=Vi(i.clientId),t=Vi(i.issuer),n;try{n=Mf(i.apiOrigin)}catch{throw new gi("The Action API origin for this session is invalid.")}let W=i.now??Date.now(),A=i.expiresAt??xS(i.accessToken)??(typeof i.expiresInSeconds==="number"&&Number.isFinite(i.expiresInSeconds)?W+i.expiresInSeconds*1000:null);if(!f||!w||!l||!t||!A||A<=W)throw new gi("WorkOS returned an incomplete or already-expired session.");return{accessToken:f,apiOrigin:n,clientId:l,expiresAt:A,issuer:t,organizationId:i.organizationId?.trim()||null,refreshToken:w,version:Ln}}function Zl(i){return JSON.stringify(i)}function Xw(i){let f;try{f=JSON.parse(i)}catch{throw new Di("The stored Action CLI session is invalid. Sign in again.")}if(!f||typeof f!=="object"||Array.isArray(f))throw new Di("The stored Action CLI session is invalid. Sign in again.");let w=f,l=Vi(w.accessToken),t=Vi(w.apiOrigin),n=Vi(w.refreshToken),W=Vi(w.clientId),A=Vi(w.issuer);if(w.version!==Ln||!l||!t||!n||!W||!A||typeof w.expiresAt!=="number"||!Number.isFinite(w.expiresAt)||w.organizationId!==null&&typeof w.organizationId!=="string")throw new Di("The stored Action CLI session is invalid. Sign in again.");let $;try{$=Mf(t)}catch{throw new Di("The stored Action CLI session is invalid. Sign in again.")}return{accessToken:l,apiOrigin:$,clientId:W,expiresAt:w.expiresAt,issuer:A,organizationId:w.organizationId,refreshToken:n,version:Ln}}async function OS(i){try{let f=await i.json();return f&&typeof f==="object"&&!Array.isArray(f)?f:{}}catch{return{}}}function aS(i,f){return i.status===401||i.status===403||f.error==="invalid_grant"||f.error==="access_denied"||f.error==="expired_token"}async function Kl(i){let f=i.fetch??fetch,w;try{w=await Mw({fetch:f,init:{body:new URLSearchParams({client_id:i.profile.clientId,grant_type:"refresh_token",...i.organizationId?{organization_id:i.organizationId}:{},refresh_token:i.session.refreshToken}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...i.now?{now:i.now}:{},...i.requestTimeoutMs?{timeoutMs:i.requestTimeoutMs}:{},url:i.tokenUrl??Gw(i.profile.issuer,"/authenticate")})}catch{throw new gi}let l=await OS(w);if(!w.ok){if(aS(w,l))throw new Di;throw new gi}let t=Vi(l.access_token);if(!t)throw new gi("WorkOS returned no access token.");return Gl({accessToken:t,apiOrigin:i.profile.apiOrigin,clientId:i.profile.clientId,expiresInSeconds:typeof l.expires_in==="number"?l.expires_in:null,issuer:i.profile.issuer,now:i.now?.()??Date.now(),organizationId:typeof l.organization_id==="string"?l.organization_id:i.organizationId??i.session.organizationId,refreshToken:Vi(l.refresh_token)??i.session.refreshToken})}async function zn(i){let f=i.env??process.env,w=wI(f.ACTION_TOKEN);if(w)return{authorization:`Bearer ${w}`,source:"environment_token"};let l=wI(f.ACTION_API_KEY);if(l)return{authorization:`Bearer ${l}`,source:"environment_api_key"};let t=await i.credentialStore.get(i.profile.name);if(t)try{let n=Xw(t);if(n.apiOrigin===i.profile.apiOrigin&&n.clientId===i.profile.clientId&&n.issuer===i.profile.issuer&&n.expiresAt>(i.now?.()??Date.now())+fI)return{authorization:`Bearer ${n.accessToken}`,source:"human_session"}}catch{}return await Jw(i.lockDirectory,i.profile.name,async()=>{let n=await i.credentialStore.get(i.profile.name);if(!n)throw new Hi;let W;try{W=Xw(n)}catch($){throw await i.credentialStore.delete(i.profile.name),$}if(W.apiOrigin!==i.profile.apiOrigin||W.clientId!==i.profile.clientId||W.issuer!==i.profile.issuer)throw await i.credentialStore.delete(i.profile.name),new Di("The stored session does not match the selected profile.");let A=i.now?.()??Date.now();if(W.expiresAt>A+fI)return{authorization:`Bearer ${W.accessToken}`,source:"human_session"};try{let $=await Kl({...i.fetch?{fetch:i.fetch}:{},...i.now?{now:i.now}:{},profile:i.profile,session:W,...i.tokenUrl?{tokenUrl:i.tokenUrl}:{}});try{await i.credentialStore.set(i.profile.name,Zl($))}catch{throw new gi("Session refresh succeeded, but the secure credential store could not save it. Unlock the credential store and run `action auth login`.")}return{authorization:`Bearer ${$.accessToken}`,source:"human_session"}}catch($){if($ instanceof Di){let I=await i.credentialStore.get(i.profile.name);if(I&&I!==n)try{let k=Xw(I);if(k.apiOrigin===i.profile.apiOrigin&&k.clientId===i.profile.clientId&&k.issuer===i.profile.issuer&&k.expiresAt>(i.now?.()??Date.now()))return{authorization:`Bearer ${k.accessToken}`,source:"human_session"}}catch{}}throw $}})}async function yn(i,f,w){await Jw(f,w,async()=>{await i.delete(w)})}async function cn(i,f){let w=await i.get(f);if(!w)return{authenticated:!1};let l=Xw(w);return{authenticated:!0,expiresAt:l.expiresAt,organizationId:l.organizationId}}class wi extends Error{constructor(i){super(i);this.name="HumanSessionBootstrapError"}}function Jf(i){return typeof i==="string"&&i.trim()?i.trim():null}async function nI(i){try{let f=await i.json();return f&&typeof f==="object"&&!Array.isArray(f)?f:{}}catch{return{}}}async function Tn(i){let f=i.fetch??fetch,w;try{w=await f(new URL("/.well-known/action-cli.json",i.apiOrigin),{headers:{accept:"application/json"}})}catch{throw new wi("The Action API authentication configuration is unavailable.")}let t=(await nI(w)).authentication;if(!w.ok||!t||typeof t!=="object")throw new wi("The Action API does not support human CLI login.");let n=t,W=Jf(n.clientId),A=Jf(n.issuer);if(!W||!A)throw new wi("The Action API returned invalid authentication configuration.");let $;try{$=new URL(A)}catch{throw new wi("The Action API returned invalid authentication configuration.")}if($.protocol!=="https:"||$.pathname!=="/"||$.search||$.hash)throw new wi("The Action API returned invalid authentication configuration.");return{clientId:W,issuer:$.origin}}function lI(i){if(!i||typeof i!=="object"||Array.isArray(i))return null;let f=i,w=Jf(f.id),l=Jf(f.key),t=Jf(f.name),n=Jf(f.workosOrganizationId);return w&&l&&t&&n?{id:w,key:l,name:t,workosOrganizationId:n}:null}async function tI(i){let f;try{f=await i.fetch(new URL("/v1/auth/bootstrap",i.apiOrigin),{body:JSON.stringify(i.organization?{organization:i.organization}:{}),headers:{accept:"application/json",authorization:`Bearer ${i.token}`,"content-type":"application/json"},method:"POST"})}catch{throw new wi("The Action organization lookup is unavailable.")}let w=await nI(f);if(!f.ok){let t=w.error,n=t&&typeof t==="object"?Jf(t.message):null;throw new wi(n??"The Action organization lookup failed.")}if(w.ok!==!0||w.status!=="ready"&&w.status!=="selection_required")throw new wi("The Action API returned an invalid organization response.");if(w.status==="ready"){let t=lI(w.organization);if(!t)throw new wi("The Action API returned an invalid organization response.");return{ok:!0,organization:t,status:"ready"}}if(!Array.isArray(w.organizations))throw new wi("The Action API returned an invalid organization response.");let l=w.organizations.map(lI);if(l.some((t)=>t===null)||l.length===0)throw new wi("The Action API returned an invalid organization response.");return{ok:!0,organizations:l,status:"selection_required"}}async function Pn(i){let f=i.fetch??fetch,w=await tI({apiOrigin:i.apiOrigin,fetch:f,...i.organization?{organization:i.organization}:{},token:i.session.accessToken});if(w.status==="selection_required"){if(!i.selectOrganization)throw new wi("More than one Action organization is available. Re-run login with --organization <id-or-key>.");let t=await i.selectOrganization(w.organizations);if(w=await tI({apiOrigin:i.apiOrigin,fetch:f,organization:t,token:i.session.accessToken}),w.status!=="ready")throw new wi("An Action organization must be selected.")}let l=await Kl({fetch:f,organizationId:w.organization.workosOrganizationId,profile:i.profile,session:i.session});return{organization:w.organization,session:l}}import{spawn as mS}from"node:child_process";var qS="so.action.cli",gS=String.raw`
69
+ `;async function xp(e){if(await e.ensureParent?.(),(e.platform??process.platform)==="win32")try{let n=await us(e.path);if(n.isSymbolicLink()||!n.isFile())throw e.invalidFileError(e.path);return}catch(n){if(n.code!=="ENOENT")throw n}let r;try{if(r=await Hp(e.path,zt.O_CREAT|zt.O_RDWR|zt.O_NOFOLLOW,384),!(await r.stat()).isFile())throw e.invalidFileError(e.path);await r.chmod(384)}catch(n){if(n instanceof Error&&"code"in n&&(n.code==="ELOOP"||n.code==="EISDIR"))throw e.invalidFileError(e.path);throw n}finally{await r?.close()}let i=await us(e.path);if(i.isSymbolicLink()||!i.isFile())throw e.invalidFileError(e.path)}function _p(e,r,i){if(e==="darwin")return{args:["-k","-s",...i===void 0?[]:["-t",String(Math.max(1,Math.ceil(i/1000)))],"-w",r,"/bin/sh","-c",ls],command:"/usr/bin/lockf"};if(e==="linux")return{args:["--exclusive",...i===void 0?[]:["--timeout",String(i/1000)],r,"/bin/sh","-c",ls],command:"/usr/bin/flock"};if(e==="win32")return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",Qp],command:"powershell.exe",env:{ACTION_CLI_LOCK_PATH:r,...i===void 0?{}:{ACTION_CLI_LOCK_TIMEOUT_MS:String(i)}}};throw Error(`Action CLI file locks are not supported on ${e}.`)}function eI(e,r){return new Promise((i,n)=>{let t="",a=!1,o=r.timeoutMs===void 0?null:setTimeout(()=>{if(a)return;a=!0,e.kill("SIGKILL"),n(r.timeoutError(r.path))},r.timeoutMs),s=(u)=>{if(a)return;if(a=!0,o)clearTimeout(o);u()};e.stderr.on("data",(u)=>{t+=u.toString("utf8")}),e.stdout.on("data",(u)=>{if(u.includes(Zp))s(i)}),e.once("error",(u)=>s(()=>n(u))),e.once("close",()=>s(()=>{let u=t.trim();n(u?Error(`The operating-system lock helper failed: ${u}`):r.timeoutError(r.path))}))})}async function rI(e){await new Promise((r)=>{let i=()=>{e.off("close",i),r()};if(e.once("close",i),e.exitCode!==null||e.signalCode!==null){i();return}e.stdin.end()})}async function iI(e){await new Promise((r)=>{let i=()=>{e.off("close",i),r()};if(e.once("close",i),e.pid===void 0||e.exitCode!==null||e.signalCode!==null){i();return}try{if(!e.kill("SIGKILL"))i()}catch{i()}})}async function en(e){await xp(e);let r=_p(e.platform??process.platform,e.path,e.timeoutMs),i=Kp(r.command,r.args,{env:r.env?{...process.env,...r.env}:process.env,shell:!1,stdio:["pipe","pipe","pipe"],windowsHide:!0});try{await eI(i,e)}catch(t){throw await iI(i),t}let n=!1;return{path:e.path,async release(){if(n)return;n=!0,await rI(i)}}}class rr extends Error{constructor(e){super(e);this.name="AuthStateLockError"}}async function uI(e){await oI(e,{mode:448,recursive:!0});let r=await aI(e);if(r.isSymbolicLink()||!r.isDirectory())throw new rr("The Action CLI auth lock directory must be a real directory.");await tI(e,448)}async function Qr(e,r,i){let n=nI("sha256").update(r).digest("hex").slice(0,24),t=sI(e,`auth-${n}.lock`),a=await en({ensureParent:()=>uI(e),invalidFileError:()=>new rr("The Action CLI auth lock must be a regular file."),path:t,timeoutError:()=>new rr(`Another Action CLI process is updating auth for profile ${r}.`)});try{return await i()}finally{await a.release()}}var xr="https://schemas.action.ai/workflows/v1/project.json",_r="https://schemas.action.ai/workflows/v1/workflow.json",ei="https://schemas.action.ai/workflows/v1/lock.json",ir=1,$e="index.mjs",vt=/^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z0-9](?:[a-z0-9-]{0,118}[a-z0-9])?$/u;function K(e,r){if(!e||!Object.prototype.hasOwnProperty.call(e.workflows,r))return;return e.workflows[r]}class Ar extends Error{actual;expected;kind;constructor(e,r,i){super(`Project lock ${e} mismatch: expected ${r}, found ${i}.`);this.name="ProjectContextMismatchError",this.kind=e,this.expected=r,this.actual=i}}function nr(e){let r;try{r=new URL(e)}catch{throw TypeError(`Invalid API origin: ${e}`)}if(r.protocol!=="http:"&&r.protocol!=="https:")throw TypeError("API origin must use http or https.");if(r.username||r.password||r.search||r.hash)throw TypeError("API origin cannot contain credentials, a query, or a fragment.");return r.pathname=r.pathname.replace(/\/+$/u,"")||"/",r.toString().replace(/\/$/u,"")}function gr(e){if(!e.organizationId.trim())throw TypeError("Organization ID cannot be blank.");if(!e.spaceId.trim())throw TypeError("Space ID cannot be blank.");return{organizationId:e.organizationId,origin:nr(e.origin),spaceId:e.spaceId}}function Cr(e){let r=gr(e);return{$schema:ei,organizationId:r.organizationId,origin:r.origin,schemaVersion:ir,spaceId:r.spaceId,workflows:{}}}function he(e,r){let i=gr(r),n=nr(e.origin);if(n!==i.origin)throw new Ar("origin",i.origin,n);if(e.organizationId!==i.organizationId)throw new Ar("organization",i.organizationId,e.organizationId);if(e.spaceId!==i.spaceId)throw new Ar("space",i.spaceId,e.spaceId)}var ds=60000,Pt=2;class ye extends Error{constructor(e="Run `action auth login` or set ACTION_TOKEN or ACTION_API_KEY."){super(e);this.name="AuthenticationRequiredError"}}class se extends Error{constructor(e="The stored Action CLI session has expired or was revoked. Sign in again."){super(e);this.name="HumanSessionExpiredError"}}class Le extends Error{constructor(e="The Action CLI could not refresh the stored session."){super(e);this.name="HumanSessionRefreshError"}}function we(e){return typeof e==="string"&&e.trim()?e.trim():null}function ii(e,r){return new URL(`/user_management${r}`,e).toString()}function cs(e){let r=e?.trim();if(!r)return null;if(/\r|\n/u.test(r))throw new ye("Environment credentials must not contain newlines.");return r}function lI(e){let r=e.split(".");if(r.length!==3||!r[1])return null;try{let i=JSON.parse(Buffer.from(r[1],"base64url").toString("utf8"));return typeof i.exp==="number"&&Number.isFinite(i.exp)?i.exp*1000:null}catch{return null}}function rn(e){let r=we(e.accessToken),i=we(e.refreshToken),n=we(e.clientId),t=we(e.issuer),a;try{a=nr(e.apiOrigin)}catch{throw new Le("The Action API origin for this session is invalid.")}let o=e.now??Date.now(),s=e.expiresAt??lI(e.accessToken)??(typeof e.expiresInSeconds==="number"&&Number.isFinite(e.expiresInSeconds)?o+e.expiresInSeconds*1000:null);if(!r||!i||!n||!t||!s||s<=o)throw new Le("WorkOS returned an incomplete or already-expired session.");return{accessToken:r,apiOrigin:a,clientId:n,expiresAt:s,issuer:t,organizationId:e.organizationId?.trim()||null,refreshToken:i,version:Pt}}function nn(e){return JSON.stringify(e)}function ri(e){let r;try{r=JSON.parse(e)}catch{throw new se("The stored Action CLI session is invalid. Sign in again.")}if(!r||typeof r!=="object"||Array.isArray(r))throw new se("The stored Action CLI session is invalid. Sign in again.");let i=r,n=we(i.accessToken),t=we(i.apiOrigin),a=we(i.refreshToken),o=we(i.clientId),s=we(i.issuer);if(i.version!==Pt||!n||!t||!a||!o||!s||typeof i.expiresAt!=="number"||!Number.isFinite(i.expiresAt)||i.organizationId!==null&&typeof i.organizationId!=="string")throw new se("The stored Action CLI session is invalid. Sign in again.");let u;try{u=nr(t)}catch{throw new se("The stored Action CLI session is invalid. Sign in again.")}return{accessToken:n,apiOrigin:u,clientId:o,expiresAt:i.expiresAt,issuer:s,organizationId:i.organizationId,refreshToken:a,version:Pt}}async function dI(e){try{let r=await e.json();return r&&typeof r==="object"&&!Array.isArray(r)?r:{}}catch{return{}}}function cI(e,r){return e.status===401||e.status===403||r.error==="invalid_grant"||r.error==="access_denied"||r.error==="expired_token"}async function tn(e){let r=e.fetch??fetch,i;try{i=await Zr({fetch:r,init:{body:new URLSearchParams({client_id:e.profile.clientId,grant_type:"refresh_token",...e.organizationId?{organization_id:e.organizationId}:{},refresh_token:e.session.refreshToken}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...e.now?{now:e.now}:{},...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.tokenUrl??ii(e.profile.issuer,"/authenticate")})}catch{throw new Le}let n=await dI(i);if(!i.ok){if(cI(i,n))throw new se;throw new Le}let t=we(n.access_token);if(!t)throw new Le("WorkOS returned no access token.");return rn({accessToken:t,apiOrigin:e.profile.apiOrigin,clientId:e.profile.clientId,expiresInSeconds:typeof n.expires_in==="number"?n.expires_in:null,issuer:e.profile.issuer,now:e.now?.()??Date.now(),organizationId:typeof n.organization_id==="string"?n.organization_id:e.organizationId??e.session.organizationId,refreshToken:we(n.refresh_token)??e.session.refreshToken})}async function Ot(e){let r=e.env??process.env,i=cs(r.ACTION_TOKEN);if(i)return{authorization:`Bearer ${i}`,source:"environment_token"};let n=cs(r.ACTION_API_KEY);if(n)return{authorization:`Bearer ${n}`,source:"environment_api_key"};let t=await e.credentialStore.get(e.profile.name);if(t)try{let a=ri(t);if(a.apiOrigin===e.profile.apiOrigin&&a.clientId===e.profile.clientId&&a.issuer===e.profile.issuer&&a.expiresAt>(e.now?.()??Date.now())+ds)return{authorization:`Bearer ${a.accessToken}`,source:"human_session"}}catch{}return await Qr(e.lockDirectory,e.profile.name,async()=>{let a=await e.credentialStore.get(e.profile.name);if(!a)throw new ye;let o;try{o=ri(a)}catch(u){throw await e.credentialStore.delete(e.profile.name),u}if(o.apiOrigin!==e.profile.apiOrigin||o.clientId!==e.profile.clientId||o.issuer!==e.profile.issuer)throw await e.credentialStore.delete(e.profile.name),new se("The stored session does not match the selected profile.");let s=e.now?.()??Date.now();if(o.expiresAt>s+ds)return{authorization:`Bearer ${o.accessToken}`,source:"human_session"};try{let u=await tn({...e.fetch?{fetch:e.fetch}:{},...e.now?{now:e.now}:{},profile:e.profile,session:o,...e.tokenUrl?{tokenUrl:e.tokenUrl}:{}});try{await e.credentialStore.set(e.profile.name,nn(u))}catch{throw new Le("Session refresh succeeded, but the secure credential store could not save it. Unlock the credential store and run `action auth login`.")}return{authorization:`Bearer ${u.accessToken}`,source:"human_session"}}catch(u){if(u instanceof se){let l=await e.credentialStore.get(e.profile.name);if(l&&l!==a)try{let d=ri(l);if(d.apiOrigin===e.profile.apiOrigin&&d.clientId===e.profile.clientId&&d.issuer===e.profile.issuer&&d.expiresAt>(e.now?.()??Date.now()))return{authorization:`Bearer ${d.accessToken}`,source:"human_session"}}catch{}}throw u}})}async function $t(e,r,i){await Qr(r,i,async()=>{await e.delete(i)})}async function Vt(e,r){let i=await e.get(r);if(!i)return{authenticated:!1};let n=ri(i);return{authenticated:!0,expiresAt:n.expiresAt,organizationId:n.organizationId}}class U extends Error{constructor(e){super(e);this.name="HumanSessionBootstrapError"}}function tr(e){return typeof e==="string"&&e.trim()?e.trim():null}async function ps(e){try{let r=await e.json();return r&&typeof r==="object"&&!Array.isArray(r)?r:{}}catch{return{}}}async function Tt(e){let r=e.fetch??fetch,i;try{i=await r(new URL("/.well-known/action-cli.json",e.apiOrigin),{headers:{accept:"application/json"}})}catch{throw new U("The Action API authentication configuration is unavailable.")}let t=(await ps(i)).authentication;if(!i.ok||!t||typeof t!=="object")throw new U("The Action API does not support human CLI login.");let a=t,o=tr(a.clientId),s=tr(a.issuer);if(!o||!s)throw new U("The Action API returned invalid authentication configuration.");let u;try{u=new URL(s)}catch{throw new U("The Action API returned invalid authentication configuration.")}if(u.protocol!=="https:"||u.pathname!=="/"||u.search||u.hash)throw new U("The Action API returned invalid authentication configuration.");return{clientId:o,issuer:u.origin}}function fs(e){if(!e||typeof e!=="object"||Array.isArray(e))return null;let r=e,i=tr(r.id),n=tr(r.key),t=tr(r.name),a=tr(r.workosOrganizationId);return i&&n&&t&&a?{id:i,key:n,name:t,workosOrganizationId:a}:null}async function ms(e){let r;try{r=await e.fetch(new URL("/v1/auth/bootstrap",e.apiOrigin),{body:JSON.stringify(e.organization?{organization:e.organization}:{}),headers:{accept:"application/json",authorization:`Bearer ${e.token}`,"content-type":"application/json"},method:"POST"})}catch{throw new U("The Action organization lookup is unavailable.")}let i=await ps(r);if(!r.ok){let t=i.error,a=t&&typeof t==="object"?tr(t.message):null;throw new U(a??"The Action organization lookup failed.")}if(i.ok!==!0||i.status!=="ready"&&i.status!=="selection_required")throw new U("The Action API returned an invalid organization response.");if(i.status==="ready"){let t=fs(i.organization);if(!t)throw new U("The Action API returned an invalid organization response.");return{ok:!0,organization:t,status:"ready"}}if(!Array.isArray(i.organizations))throw new U("The Action API returned an invalid organization response.");let n=i.organizations.map(fs);if(n.some((t)=>t===null)||n.length===0)throw new U("The Action API returned an invalid organization response.");return{ok:!0,organizations:n,status:"selection_required"}}async function Et(e){let r=e.fetch??fetch,i=await ms({apiOrigin:e.apiOrigin,fetch:r,...e.organization?{organization:e.organization}:{},token:e.session.accessToken});if(i.status==="selection_required"){if(!e.selectOrganization)throw new U("More than one Action organization is available. Re-run login with --organization <id-or-key>.");let t=await e.selectOrganization(i.organizations);if(i=await ms({apiOrigin:e.apiOrigin,fetch:r,organization:t,token:e.session.accessToken}),i.status!=="ready")throw new U("An Action organization must be selected.")}let n=await tn({fetch:r,organizationId:i.organization.workosOrganizationId,profile:e.profile,session:e.session});return{organization:i.organization,session:n}}import{spawn as fI}from"node:child_process";var mI="so.action.cli",pI=String.raw`
70
70
  ObjC.import("Foundation");
71
71
  ObjC.import("Security");
72
72
  ObjC.bindFunction("exit", ["void", ["int"]]);
@@ -118,7 +118,7 @@ if (operation === "delete") {
118
118
  }
119
119
 
120
120
  $.exit(125);
121
- `,dS=String.raw`
121
+ `,II=String.raw`
122
122
  $ErrorActionPreference = "Stop"
123
123
  [void][Windows.Security.Credentials.PasswordVault, Windows.Security.Credentials, ContentType = WindowsRuntime]
124
124
  [void][Windows.Security.Credentials.PasswordCredential, Windows.Security.Credentials, ContentType = WindowsRuntime]
@@ -196,33 +196,37 @@ if ($operation -eq "delete") {
196
196
  }
197
197
 
198
198
  exit 125
199
- `;class sf extends Error{constructor(i="No supported secure operating-system credential store is available."){super(i);this.name="CredentialStoreUnavailableError"}}class Li extends Error{constructor(i){super(i);this.name="CredentialStoreError"}}var WI=async({args:i,command:f,env:w,stdin:l})=>{return await new Promise((t,n)=>{let W=mS(f,i,{env:w?{...process.env,...w}:process.env,shell:!1,stdio:["pipe","pipe","pipe"],windowsHide:!0}),A=[],$=[];if(W.stdout.on("data",(I)=>A.push(I)),W.stderr.on("data",(I)=>$.push(I)),W.on("error",(I)=>n(I)),W.on("close",(I)=>t({code:I??1,stderr:Buffer.concat($).toString("utf8"),stdout:Buffer.concat(A).toString("utf8")})),l!==void 0)W.stdin.end(l);else W.stdin.end()})};function AI(i){return`profile:${i}`}class Ql{runner;service;constructor(i,f){this.runner=i,this.service=f}async invoke(i){try{return await this.runner(i)}catch(f){if(f.code==="ENOENT")throw new sf;throw new Li("The secure credential store command could not be started.")}}}class En extends Ql{invocation(i,f){return{args:["-l","JavaScript","-e",gS],command:"/usr/bin/osascript",env:{ACTION_CLI_KEYCHAIN_ACCOUNT:AI(i),ACTION_CLI_KEYCHAIN_OPERATION:f,ACTION_CLI_KEYCHAIN_SERVICE:this.service}}}async get(i){let f=await this.invoke(this.invocation(i,"get"));if(f.code===0)return f.stdout;if(f.code===44)return null;throw new Li("The macOS Keychain could not read Action CLI credentials.")}async set(i,f){if((await this.invoke({...this.invocation(i,"set"),stdin:f})).code!==0)throw new Li("The macOS Keychain could not store Action CLI credentials.")}async delete(i){let f=await this.invoke(this.invocation(i,"delete"));if(f.code!==0&&f.code!==44)throw new Li("The macOS Keychain could not delete Action CLI credentials.")}}class on extends Ql{attributes(i){return["service",this.service,"profile",i]}async get(i){let f=await this.invoke({args:["lookup",...this.attributes(i)],command:"secret-tool"});if(f.code===0)return f.stdout.replace(/\r?\n$/u,"");if(f.code===1&&!f.stderr.trim())return null;throw new Li("The Linux Secret Service could not read Action CLI credentials.")}async set(i,f){if((await this.invoke({args:["store","--label=Action CLI",...this.attributes(i)],command:"secret-tool",stdin:`${f}
200
- `})).code!==0)throw new Li("The Linux Secret Service could not store Action CLI credentials.")}async delete(i){let f=await this.invoke({args:["clear",...this.attributes(i)],command:"secret-tool"});if(f.code!==0&&!(f.code===1&&!f.stderr.trim()))throw new Li("The Linux Secret Service could not delete Action CLI credentials.")}}class Nn extends Ql{invocation(i,f){return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",dS],command:"powershell.exe",env:{ACTION_CLI_KEYCHAIN_ACCOUNT:AI(i),ACTION_CLI_KEYCHAIN_OPERATION:f,ACTION_CLI_KEYCHAIN_SERVICE:this.service}}}async get(i){let f=await this.invoke(this.invocation(i,"get"));if(f.code===0)return f.stdout;if(f.code===44)return null;throw new Li("Windows Credential Manager could not read Action CLI credentials.")}async set(i,f){if((await this.invoke({...this.invocation(i,"set"),stdin:f})).code!==0)throw new Li("Windows Credential Manager could not store Action CLI credentials.")}async delete(i){let f=await this.invoke(this.invocation(i,"delete"));if(f.code!==0&&f.code!==44)throw new Li("Windows Credential Manager could not delete Action CLI credentials.")}}function Dn(i={}){let f=i.platform??process.platform,w=i.runner??WI,l=i.service?.trim()||qS;if(f==="darwin")return new En(w,l);if(f==="linux")return new on(w,l);if(f==="win32")return new Nn(w,l);throw new sf(`The Action CLI does not support a secure credential store on ${f}.`)}var _S="urn:ietf:params:oauth:grant-type:device_code",sS=5,pS=5;class bi extends Error{code;constructor(i,f){super(f);this.name="DeviceFlowError",this.code=i}}function pf(i){return typeof i==="string"&&i.trim()?i.trim():null}async function II(i){try{let f=await i.json();return f&&typeof f==="object"&&!Array.isArray(f)?f:{}}catch{return{}}}async function kI(i){let f=i.fetch??fetch,w;try{w=await Mw({fetch:f,init:{body:new URLSearchParams({client_id:i.clientId}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...i.now?{now:i.now}:{},...i.requestTimeoutMs?{timeoutMs:i.requestTimeoutMs}:{},url:i.deviceAuthorizationUrl??Gw(i.issuer,"/authorize/device")})}catch{throw new bi("request_failed","Device authorization could not be started.")}let l=await II(w);if(!w.ok)throw new bi("request_failed","Device authorization could not be started.");let t=pf(l.device_code),n=pf(l.user_code),W=pf(l.verification_uri),A=l.expires_in,$=l.interval??sS;if(!t||!n||!W||typeof A!=="number"||!Number.isFinite(A)||A<=0||typeof $!=="number"||!Number.isFinite($)||$<=0)throw new bi("invalid_response","WorkOS returned invalid device authorization data.");return{deviceCode:t,expiresInSeconds:A,intervalSeconds:$,userCode:n,verificationUri:W,verificationUriComplete:pf(l.verification_uri_complete)}}async function $I(i){let f=i.fetch??fetch,w=i.now??Date.now,l=i.sleep??((W)=>new Promise((A)=>setTimeout(A,W))),t=w()+i.authorization.expiresInSeconds*1000,n=i.authorization.intervalSeconds;while(w()<t){if(await l(n*1000),w()>=t)break;let W;try{W=await Mw({deadline:t,fetch:f,init:{body:new URLSearchParams({client_id:i.clientId,device_code:i.authorization.deviceCode,grant_type:_S}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},now:w,...i.requestTimeoutMs?{timeoutMs:i.requestTimeoutMs}:{},url:i.tokenUrl??Gw(i.issuer,"/authenticate")})}catch{continue}let A=await II(W);if(W.ok){let $=pf(A.access_token),I=pf(A.refresh_token);if(!$||!I)throw new bi("invalid_response","WorkOS returned an incomplete CLI session.");try{return Gl({accessToken:$,apiOrigin:i.apiOrigin,clientId:i.clientId,expiresInSeconds:typeof A.expires_in==="number"?A.expires_in:null,issuer:i.issuer,now:w(),organizationId:typeof A.organization_id==="string"?A.organization_id:null,refreshToken:I})}catch{throw new bi("invalid_response","WorkOS returned an invalid CLI session.")}}if(pA(W))continue;switch(A.error){case"authorization_pending":break;case"slow_down":n+=pS;break;case"access_denied":throw new bi("access_denied","Device authorization was denied.");case"expired_token":case"invalid_grant":throw new bi("authorization_expired","Device authorization expired.");default:throw new bi("request_failed","Device authorization polling failed.")}}throw new bi("authorization_expired","Device authorization expired.")}async function bn(i){return await Jw(i.lockDirectory,i.profileName,async()=>{let f=await kI({clientId:i.clientId,...i.deviceAuthorizationUrl?{deviceAuthorizationUrl:i.deviceAuthorizationUrl}:{},...i.fetch?{fetch:i.fetch}:{},issuer:i.issuer,...i.now?{now:i.now}:{}});if(await i.onVerification(f),i.openBrowser)await Promise.resolve(i.openBrowser(f.verificationUriComplete??f.verificationUri)).catch(()=>{return});let w=await $I({apiOrigin:i.apiOrigin,authorization:f,clientId:i.clientId,...i.fetch?{fetch:i.fetch}:{},issuer:i.issuer,...i.now?{now:i.now}:{},...i.sleep?{sleep:i.sleep}:{},...i.tokenUrl?{tokenUrl:i.tokenUrl}:{}});if(i.finalizeSession)w=await i.finalizeSession(w);return await i.credentialStore.set(i.profileName,Zl(w)),w})}function Uf(i){return i instanceof Hi||i instanceof bf||i instanceof Li||i instanceof sf||i instanceof Di||i instanceof gi||i instanceof wi||i instanceof bi}function rn(i){return typeof i==="object"&&i!==null&&"getAuthRequest"in i&&typeof i.getAuthRequest==="function"}class Zw{getAuthRequest(){return Promise.resolve({headers:{}})}}var eS=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},Bl={get:(i,f)=>eS(void 0,void 0,void 0,function*(){if(typeof i==="function")return i(f);else return i})};var Yf=(i,f,w)=>{return JSON.stringify(i,f,w)};function Kw(i,f){return JSON.parse(i,f)}var ji={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},RI={[ji.Debug]:1,[ji.Info]:2,[ji.Warn]:3,[ji.Error]:4};class Vl{debug(i,...f){console.debug(i,...f)}info(i,...f){console.info(i,...f)}warn(i,...f){console.warn(i,...f)}error(i,...f){console.error(i,...f)}}class Qw{constructor(i){this.level=RI[i.level],this.logger=i.logger,this.silent=i.silent}shouldLog(i){return!this.silent&&this.level<=RI[i]}isDebug(){return this.shouldLog(ji.Debug)}debug(i,...f){if(this.isDebug())this.logger.debug(i,...f)}isInfo(){return this.shouldLog(ji.Info)}info(i,...f){if(this.isInfo())this.logger.info(i,...f)}isWarn(){return this.shouldLog(ji.Warn)}warn(i,...f){if(this.isWarn())this.logger.warn(i,...f)}isError(){return this.shouldLog(ji.Error)}error(i,...f){if(this.isError())this.logger.error(i,...f)}}function Bw(i){var f,w,l;if(i==null)return iL;if(i instanceof Qw)return i;return i=i!==null&&i!==void 0?i:{},(f=i.level)!==null&&f!==void 0||(i.level=ji.Info),(w=i.logger)!==null&&w!==void 0||(i.logger=new Vl),(l=i.silent)!==null&&l!==void 0||(i.silent=!0),new Qw(i)}var iL=new Qw({level:ji.Info,logger:new Vl,silent:!0});var fL={arrayFormat:"indices",encode:!0};function Mn(i,f){if(i===void 0)return"";if(i===null)return"";let w=String(i);return f?encodeURIComponent(w):w}function Jn(i,f="",w){let l=[];for(let[t,n]of Object.entries(i)){let W=f?`${f}[${t}]`:t;if(n==null)continue;if(Array.isArray(n)){if(n.length===0)continue;let A=w.arrayFormat;if(A==="comma"){let $=w.encode?encodeURIComponent(W):W,I=n.filter((k)=>k!==void 0&&k!==null).map((k)=>Mn(k,w.encode));if(I.length>0)l.push(`${$}=${I.join(",")}`)}else for(let $=0;$<n.length;$++){let I=n[$];if(I==null)continue;if(typeof I==="object"&&!Array.isArray(I)&&I!==null){let k=A==="indices"?`${W}[${$}]`:W;l.push(...Jn(I,k,w))}else{let k=A==="indices"?`${W}[${$}]`:W,R=w.encode?encodeURIComponent(k):k;l.push(`${R}=${Mn(I,w.encode)}`)}}}else if(typeof n==="object"&&n!==null){if(Object.keys(n).length===0)continue;l.push(...Jn(n,W,w))}else{let A=w.encode?encodeURIComponent(W):W;l.push(`${A}=${Mn(n,w.encode)}`)}}return l}function tf(i,f){if(i==null||typeof i!=="object")return"";return Jn(i,"",Object.assign(Object.assign({},fL),f)).join("&")}function uI(i,f){let w=tf(f,{arrayFormat:"repeat"});return w?`${i}?${w}`:i}function CI(i){let f={get bodyUsed(){return i.bodyUsed},stream:()=>i.body,arrayBuffer:i.arrayBuffer.bind(i),blob:i.blob.bind(i)};if("bytes"in i&&typeof i.bytes==="function")f.bytes=i.bytes.bind(i);return f}var wL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};function SI(i,f){Object.defineProperty(i,"__fern_response_ref",{value:f,enumerable:!1,configurable:!0,writable:!1})}function Hl(i,f){return wL(this,void 0,void 0,function*(){switch(f){case"binary-response":return CI(i);case"blob":return yield i.blob();case"arrayBuffer":return yield i.arrayBuffer();case"sse":if(i.body==null)return{ok:!1,error:{reason:"body-is-null",statusCode:i.status}};return SI(i.body,i),i.body;case"streaming":if(i.body==null)return{ok:!1,error:{reason:"body-is-null",statusCode:i.status}};return SI(i.body,i),i.body;case"text":return yield i.text()}let w=yield i.text();if(w.length>0)try{return Kw(w)}catch(l){return{ok:!1,error:{reason:"non-json",statusCode:i.status,rawBody:w}}}return})}var lL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};function LI(i){return lL(this,void 0,void 0,function*(){var f,w,l;let t=(f=i.headers.get("Content-Type"))===null||f===void 0?void 0:f.toLowerCase();if(t==null||t.length===0)return Hl(i);if(t.indexOf(";")!==-1)t=(l=(w=t.split(";")[0])===null||w===void 0?void 0:w.trim())!==null&&l!==void 0?l:"";switch(t){case"application/hal+json":case"application/json":case"application/ld+json":case"application/problem+json":case"application/vnd.api+json":case"text/json":{let n=yield i.text();return n.length>0?Kw(n):void 0}default:if(t.startsWith("application/vnd.")&&t.endsWith("+json")){let n=yield i.text();return n.length>0?Kw(n):void 0}return yield i.text()}})}var tL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};function jl(){return tL(this,void 0,void 0,function*(){return fetch})}var nL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};function zI(i){return nL(this,arguments,void 0,function*({body:f,type:w}){if(w==="form")return tf(f,{arrayFormat:"repeat",encode:!0});if(w.includes("json"))return Yf(f);else return f})}var uf;if(typeof globalThis.Headers<"u")uf=globalThis.Headers;else uf=class i{constructor(f){if(this.headers=new Map,f)if(f instanceof i)f.forEach((w,l)=>this.append(l,w));else if(Array.isArray(f))for(let[w,l]of f)if(typeof w==="string"&&typeof l==="string")this.append(w,l);else throw TypeError("Each header entry must be a [string, string] tuple");else for(let[w,l]of Object.entries(f))if(typeof l==="string")this.append(w,l);else throw TypeError("Header values must be strings")}append(f,w){let l=f.toLowerCase(),t=this.headers.get(l)||[];this.headers.set(l,[...t,w])}delete(f){let w=f.toLowerCase();this.headers.delete(w)}get(f){let w=f.toLowerCase(),l=this.headers.get(w);return l?l.join(", "):null}has(f){let w=f.toLowerCase();return this.headers.has(w)}set(f,w){let l=f.toLowerCase();this.headers.set(l,[w])}forEach(f,w){let l=w?f.bind(w):f;this.headers.forEach((t,n)=>l(t.join(", "),n,this))}getSetCookie(){return this.headers.get("set-cookie")||[]}*entries(){for(let[f,w]of this.headers.entries())yield[f,w.join(", ")]}*keys(){yield*this.headers.keys()}*values(){for(let f of this.headers.values())yield f.join(", ")}[Symbol.iterator](){return this.entries()}};function yI(i){let f=new AbortController,w=setTimeout(()=>f.abort("timeout"),i);return{signal:f.signal,abortId:w}}function cI(...i){let f=i.length===1&&Array.isArray(i[0])?i[0]:i,w=new AbortController;for(let l of f){if(l.aborted)return w.abort(l===null||l===void 0?void 0:l.reason),w.signal;if(l.addEventListener("abort",()=>w.abort(l===null||l===void 0?void 0:l.reason),{signal:w.signal}),l.aborted)return w.abort(l===null||l===void 0?void 0:l.reason),w.signal}return w.signal}var WL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},Vw;function AL(){if(Vw!=null)return Vw;try{new Request("http://localhost",{cache:"no-store"}),Vw=!0}catch(i){Vw=!1}return Vw}var vl=(i,f,w,l,t,n,W,A,$,I)=>WL(void 0,void 0,void 0,function*(){let k=[],R;if(n!=null){let{signal:z,abortId:y}=yI(n);R=y,k.push(z)}if(W!=null)k.push(W);let C=cI(k),L=yield i(f,Object.assign({method:w,headers:l,body:t,signal:C,credentials:A?"include":void 0,duplex:$},I&&AL()?{cache:"no-store"}:{}));if(R!=null)clearTimeout(R);return L});var Un={headers:new uf,redirected:!1,status:499,statusText:"Client Closed Request",type:"error",url:""},Yn={headers:new uf,redirected:!1,status:0,statusText:"Unknown Error",type:"error",url:""};function Fn(i){return{headers:i.headers,redirected:i.redirected,status:i.status,statusText:i.statusText,type:i.type,url:i.url}}var IL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},kL=1000,hl=60000,$L=2,TI=0.2;function RL(i){return[408,429].includes(i)||i>=500}function uL(i){let f=1+Math.random()*TI;return i*f}function CL(i){let f=1+(Math.random()-0.5)*TI;return i*f}function SL(i,f){let w=i.headers.get("Retry-After");if(w){let t=parseInt(w,10);if(!Number.isNaN(t)&&t>0)return Math.min(t*1000,hl);let n=new Date(w);if(!Number.isNaN(n.getTime())){let W=n.getTime()-Date.now();if(W>0)return Math.min(Math.max(W,0),hl)}}let l=i.headers.get("X-RateLimit-Reset");if(l){let t=parseInt(l,10);if(!Number.isNaN(t)){let n=t*1000-Date.now();if(n>0)return uL(Math.min(n,hl))}}return CL(Math.min(kL*Math.pow(2,f),hl))}function xl(i){return IL(this,arguments,void 0,function*(f,w=$L){let l=yield f();for(let t=0;t<w;++t)if(RL(l.status)){let n=SL(l,t);yield new Promise((W)=>setTimeout(W,n)),l=yield f()}else break;return l})}var Gn=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},LL=new Set(["authorization","www-authenticate","x-api-key","api-key","apikey","x-api-token","x-auth-token","auth-token","cookie","set-cookie","proxy-authorization","proxy-authenticate","x-csrf-token","x-xsrf-token","x-session-token","x-access-token"]);function Xn(i){let f={};for(let[w,l]of i instanceof uf?i.entries():Object.entries(i))if(LL.has(w.toLowerCase()))f[w]="[REDACTED]";else f[w]=l;return f}var Zn=new Set(["api_key","api-key","apikey","token","access_token","access-token","auth_token","auth-token","password","passwd","secret","api_secret","api-secret","apisecret","key","session","session_id","session-id"]);function zL(i){if(i==null)return;let f={};for(let[w,l]of Object.entries(i))f[w]=Zn.has(w.toLowerCase())?"[REDACTED]":l;return f}function Ff(i){let f=i.indexOf("://");if(f===-1)return i;let w=f+3,l=i.indexOf("/",w),t=i.indexOf("?",w),n=i.indexOf("#",w),W=Math.min(l===-1?i.length:l,t===-1?i.length:t,n===-1?i.length:n),A=-1;for(let z=w;z<W;z++)if(i[z]==="@")A=z;if(A!==-1)i=`${i.slice(0,w)}[REDACTED]@${i.slice(A+1)}`;if(t=i.indexOf("?"),t===-1)return i;n=i.indexOf("#",t);let $=n!==-1?n:i.length,I=i.slice(t+1,$);if(I.length===0)return i;let k=I.toLowerCase();if(!(k.includes("token")||k.includes("key")||k.includes("password")||k.includes("passwd")||k.includes("secret")||k.includes("session")||k.includes("auth")))return i;let C=[],L=I.split("&");for(let z of L){let y=z.indexOf("=");if(y===-1){C.push(z);continue}let T=z.slice(0,y),u=Zn.has(T.toLowerCase());if(!u&&T.includes("%"))try{let S=decodeURIComponent(T);u=Zn.has(S.toLowerCase())}catch(S){}C.push(u?`${T}=[REDACTED]`:z)}return i.slice(0,t+1)+C.join("&")+i.slice($)}function yL(i){return Gn(this,void 0,void 0,function*(){var f;let w=new uf;if(w.set("Accept",i.responseType==="json"?"application/json":i.responseType==="text"?"text/plain":i.responseType==="sse"?"text/event-stream":"*/*"),i.body!==void 0&&i.contentType!=null)w.set("Content-Type",i.contentType);if(i.headers==null)return w;for(let[l,t]of Object.entries(i.headers)){let n=yield Bl.get(t,{endpointMetadata:(f=i.endpointMetadata)!==null&&f!==void 0?f:{}});if(typeof n==="string"){w.set(l,n);continue}if(n==null)continue;w.set(l,`${n}`)}return w})}function cL(i){return Gn(this,void 0,void 0,function*(){var f,w,l;let t=i.url;if(i.queryString!=null&&i.queryString.length>0)t=`${t}?${i.queryString}`;else t=uI(i.url,i.queryParameters);let n=yield zI({body:i.body,type:(f=i.requestType)!==null&&f!==void 0?f:"other"}),W=(w=i.fetchFn)!==null&&w!==void 0?w:yield jl(),A=yield yL(i),$=Bw(i.logging);if($.isDebug()){let I={method:i.method,url:Ff(t),headers:Xn(A),queryParameters:zL(i.queryParameters),hasBody:n!=null};$.debug("Making HTTP request",I)}try{let I=yield xl(()=>Gn(this,void 0,void 0,function*(){return vl(W,t,i.method,A,n,i.timeoutMs,i.abortSignal,i.withCredentials,i.duplex,i.responseType==="streaming"||i.responseType==="sse")}),i.maxRetries);if(I.status>=200&&I.status<400){if($.isDebug()){let R={method:i.method,url:Ff(t),statusCode:I.status,responseHeaders:Xn(I.headers)};$.debug("HTTP request succeeded",R)}return{ok:!0,body:yield Hl(I,i.responseType),headers:I.headers,rawResponse:Fn(I)}}else{if($.isError()){let k={method:i.method,url:Ff(t),statusCode:I.status,responseHeaders:Xn(Object.fromEntries(I.headers.entries()))};$.error("HTTP request failed with error status",k)}return{ok:!1,error:{reason:"status-code",statusCode:I.status,body:yield LI(I)},rawResponse:Fn(I)}}}catch(I){if((l=i.abortSignal)===null||l===void 0?void 0:l.aborted){if($.isError()){let k={method:i.method,url:Ff(t)};$.error("HTTP request was aborted",k)}return{ok:!1,error:{reason:"unknown",errorMessage:"The user aborted a request",cause:I},rawResponse:Un}}else if(I instanceof Error&&I.name==="AbortError"){if($.isError()){let k={method:i.method,url:Ff(t),timeoutMs:i.timeoutMs};$.error("HTTP request timed out",k)}return{ok:!1,error:{reason:"timeout",cause:I},rawResponse:Un}}else if(I instanceof Error){if($.isError()){let k={method:i.method,url:Ff(t),errorMessage:I.message};$.error("HTTP request failed with error",k)}return{ok:!1,error:{reason:"unknown",errorMessage:I.message,cause:I},rawResponse:Yn}}if($.isError()){let k={method:i.method,url:Ff(t),error:Yf(I)};$.error("HTTP request failed with unknown error",k)}return{ok:!1,error:{reason:"unknown",errorMessage:Yf(I),cause:I},rawResponse:Yn}}})}var j=cL;var TL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};class Z extends Promise{constructor(i){super((f)=>{f(void 0)});this.innerPromise=i}static fromFunction(i,...f){return new Z(i(...f))}static interceptFunction(i){return(...f)=>{return Z.fromPromise(i(...f))}}static fromPromise(i){return new Z(i)}static fromExecutor(i){let f=new Promise(i);return new Z(f)}static fromResult(i){let f=Promise.resolve(i);return new Z(f)}unwrap(){if(!this.unwrappedPromise)this.unwrappedPromise=this.innerPromise.then(({data:i})=>i);return this.unwrappedPromise}then(i,f){return this.unwrap().then(i,f)}catch(i){return this.unwrap().catch(i)}finally(i){return this.unwrap().finally(i)}withRawResponse(){return TL(this,void 0,void 0,function*(){return yield this.innerPromise})}}function Ol(i,...f){if(!i)return"";if(f.length===0)return i;if(i.includes("://")){let w;try{w=new URL(i)}catch(n){return PI(i,...f)}let l=f[f.length-1],t=l===null||l===void 0?void 0:l.endsWith("/");for(let n of f){let W=oI(n);if(W)w.pathname=EI(w.pathname,W)}if(t&&!w.pathname.endsWith("/"))w.pathname+="/";return w.toString()}return PI(i,...f)}function PI(i,...f){if(f.length===0)return i;let w=i,l=f[f.length-1],t=l===null||l===void 0?void 0:l.endsWith("/");for(let n of f){let W=oI(n);if(W)w=EI(w,W)}if(t&&!w.endsWith("/"))w+="/";return w}function EI(i,f){if(i.endsWith("/"))return i+f;return`${i}/${f}`}function oI(i){if(!i)return i;let f=0,w=i.length;if(i.startsWith("/"))f=1;if(i.endsWith("/"))w=i.length-1;return f===0&&w===i.length?i:i.slice(f,w)}var PL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},r={get:(i)=>PL(void 0,void 0,void 0,function*(){if(typeof i==="function")return i();else return i})};var NI=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};function Kn(i,f,w,l){return NI(this,void 0,void 0,function*(){var t,n,W,A,$,I,k;let R=Bw(w.logging),C,L=f;if(i instanceof Request){if(C=i.url,f==null)L={method:i.method,headers:Object.fromEntries(i.headers.entries()),body:i.body,signal:i.signal,credentials:i.credentials,cache:i.cache,redirect:i.redirect,referrer:i.referrer,integrity:i.integrity,mode:i.mode}}else C=i instanceof URL?i.toString():i;let z=(t=w.baseUrl!=null?yield r.get(w.baseUrl):void 0)!==null&&t!==void 0?t:w.environment!=null?yield r.get(w.environment):void 0,y;if(C.startsWith("http://")||C.startsWith("https://"))y=C;else if(z!=null)y=Ol(z,C);else y=C;let T={};if(w.headers!=null)for(let[Ki,Ni]of Object.entries(w.headers)){let Qi=yield Bl.get(Ni,{endpointMetadata:{}});if(Qi!=null)T[Ki.toLowerCase()]=`${Qi}`}if(w.getAuthHeaders!=null){let Ki=yield w.getAuthHeaders();for(let[Ni,Qi]of Object.entries(Ki))T[Ni.toLowerCase()]=Qi}if((L===null||L===void 0?void 0:L.headers)!=null){let Ki=L.headers instanceof Headers?Object.fromEntries(L.headers.entries()):Array.isArray(L.headers)?Object.fromEntries(L.headers):L.headers;for(let[Ni,Qi]of Object.entries(Ki))if(Qi!=null)T[Ni.toLowerCase()]=Qi}if((l===null||l===void 0?void 0:l.headers)!=null)for(let[Ki,Ni]of Object.entries(l.headers))T[Ki.toLowerCase()]=Ni;let u=(n=L===null||L===void 0?void 0:L.method)!==null&&n!==void 0?n:"GET",S=L===null||L===void 0?void 0:L.body,c=(W=l===null||l===void 0?void 0:l.timeoutInSeconds)!==null&&W!==void 0?W:w.timeoutInSeconds,P=c!=null?c*1000:void 0,E=(A=l===null||l===void 0?void 0:l.maxRetries)!==null&&A!==void 0?A:w.maxRetries,fi=(I=($=l===null||l===void 0?void 0:l.abortSignal)!==null&&$!==void 0?$:L===null||L===void 0?void 0:L.signal)!==null&&I!==void 0?I:void 0,Ai=(k=w.fetch)!==null&&k!==void 0?k:yield jl();if(R.isDebug())R.debug("Making passthrough HTTP request",{method:u,url:y,hasBody:S!=null});let qf=yield xl(()=>NI(this,void 0,void 0,function*(){return vl(Ai,y,u,T,S!==null&&S!==void 0?S:void 0,P,fi,(L===null||L===void 0?void 0:L.credentials)==="include",void 0,!1)}),E);if(R.isDebug())R.debug("Passthrough HTTP request completed",{method:u,url:y,statusCode:qf.status});return qf})}var al={};XA(al,{createLogger:()=>Bw,Logger:()=>Qw,LogLevel:()=>ji,ConsoleLogger:()=>Vl});var ml=EL();function EL(){var i,f,w,l,t,n,W;if(typeof window<"u"&&typeof window.document<"u")return{type:"browser",version:window.navigator.userAgent};if(typeof globalThis<"u"&&((i=globalThis===null||globalThis===void 0?void 0:globalThis.navigator)===null||i===void 0?void 0:i.userAgent)==="Cloudflare-Workers")return{type:"workerd"};if(typeof EdgeRuntime==="string")return{type:"edge-runtime"};if(typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((f=self.constructor)===null||f===void 0?void 0:f.name)==="DedicatedWorkerGlobalScope"||((w=self.constructor)===null||w===void 0?void 0:w.name)==="ServiceWorkerGlobalScope"||((l=self.constructor)===null||l===void 0?void 0:l.name)==="SharedWorkerGlobalScope"))return{type:"web-worker"};if(typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u")return{type:"deno",version:Deno.version.deno,os:(t=Deno.build)===null||t===void 0?void 0:t.os,arch:(n=Deno.build)===null||n===void 0?void 0:n.arch};if(typeof Bun<"u"&&typeof Bun.version<"u")return{type:"bun",version:Bun.version,os:typeof process<"u"?process.platform:void 0,arch:typeof process<"u"?process.arch:void 0};if(typeof navigator<"u"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative")return{type:"react-native"};let z=typeof process<"u"?process:void 0;if(typeof z<"u"&&typeof((W=z.versions)===null||W===void 0?void 0:W.node)==="string")return{type:"node",version:z.versions.node,parsedVersion:Number(z.versions.node.split(".")[0]),os:z.platform,arch:z.arch};return{type:"unknown"}}var o={};XA(o,{toQueryString:()=>tf,queryBuilder:()=>bI,join:()=>Ol,encodePathParam:()=>DI});function DI(i){if(i===null)return"null";switch(typeof i){case"undefined":return"undefined";case"string":case"number":case"boolean":break;default:i=String(i);break}return encodeURIComponent(i)}function bI(){return new rI}class rI{constructor(){this.parts=new Map}add(i,f,w){if(f===void 0||f===null)return this;let l=tf({[i]:f},{arrayFormat:(w===null||w===void 0?void 0:w.style)==="comma"?"comma":"repeat"});if(l.length>0)this.parts.set(i,l);return this}addMany(i){if(i!=null)for(let[f,w]of Object.entries(i))this.add(f,w);return this}mergeAdditional(i){if(i!=null)for(let[f,w]of Object.entries(i)){if(w===void 0||w===null)continue;let l=tf({[f]:w},{arrayFormat:"repeat"});if(l.length>0)this.parts.set(f,l)}return this}build(){return[...this.parts.values()].join("&")}}class D extends Error{constructor({message:i,statusCode:f,body:w,rawResponse:l,cause:t}){super(oL({message:i,statusCode:f,body:w}));if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);if(this.name="ActionError",this.statusCode=f,this.body=w,this.rawResponse=l,t!=null)this.cause=t}get requestId(){var i,f,w;return(w=(f=(i=this.rawResponse)===null||i===void 0?void 0:i.headers)===null||f===void 0?void 0:f.get("x-request-id"))!==null&&w!==void 0?w:void 0}}function oL({message:i,statusCode:f,body:w}){let l=[];if(i!=null)l.push(i);if(f!=null)l.push(`Status code: ${f.toString()}`);if(w!=null)l.push(`Body: ${Yf(w,void 0,2)}`);return l.join(`
201
- `)}class Xf extends D{constructor(i,f){super({message:i,cause:f===null||f===void 0?void 0:f.cause});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="ActionTimeoutError"}}var NL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},Qn="token";class ef{constructor(i){this.options=i}static canCreate(i){return(i===null||i===void 0?void 0:i[Qn])!=null}getAuthRequest(){return NL(this,arguments,void 0,function*({endpointMetadata:i}={}){let f=yield r.get(this.options[Qn]);if(f==null)throw new D({message:ef.AUTH_CONFIG_ERROR_MESSAGE});return{headers:{Authorization:`Bearer ${f}`}}})}}(function(i){i.AUTH_SCHEME="WorkOSUserBearer",i.AUTH_CONFIG_ERROR_MESSAGE=`Please provide '${Qn}' when initializing the client`;function f(w){return new i(w)}i.createInstance=f})(ef||(ef={}));function V(...i){let f={};for(let[w,l]of i.filter((t)=>t!=null).flatMap((t)=>Object.entries(t))){let t=w.toLowerCase();if(l!=null)f[t]=l;else if(t in f)delete f[t]}return f}function O(...i){let f={};for(let[w,l]of i.filter((t)=>t!=null).flatMap((t)=>Object.entries(t))){let t=w.toLowerCase();if(l!=null)f[t]=l}return f}function DL(i){let f=V({"X-Fern-Language":"JavaScript","X-Fern-Runtime":ml.type,"X-Fern-Runtime-Version":ml.version,"X-Action-Correlation-Id":i===null||i===void 0?void 0:i.correlationId},i===null||i===void 0?void 0:i.headers);return Object.assign(Object.assign({},i),{logging:al.createLogger(i===null||i===void 0?void 0:i.logging),headers:f})}function Mi(i){var f;let w=DL(i);if(i.auth===!1)return w.authProvider=new Zw,w;if(i.auth!=null){if(typeof i.auth==="function")return w.authProvider={getAuthRequest:i.auth},w;if(rn(i.auth))return w.authProvider=i.auth,w;Object.assign(w,i.auth)}let l=bL(w);return(f=w.authProvider)!==null&&f!==void 0||(w.authProvider=new ef(l)),w}function bL(i){return Object.assign(Object.assign({},i),{authProvider:new Zw})}function Sf(i,f){if(f==null)return i;if(i==null)return Object.assign({},f);if(typeof i==="object"&&!Array.isArray(i))return Object.assign(Object.assign({},i),f);return i}var a={Default:"https://backend.action.so"};function m(i,f,w,l){switch(i.reason){case"non-json":throw new D({statusCode:i.statusCode,body:i.rawBody,rawResponse:f});case"body-is-null":throw new D({statusCode:i.statusCode,rawResponse:f});case"timeout":throw new Xf(`Timeout exceeded when calling ${w} ${l}.`,{cause:i.cause});case"unknown":throw new D({message:i.errorMessage,rawResponse:f,cause:i.cause});default:throw new D({message:"Unknown error",rawResponse:f})}}class e extends D{constructor(i,f){super({message:"BadRequestError",statusCode:400,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="BadRequestError"}}class vi extends D{constructor(i,f){super({message:"ConflictError",statusCode:409,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="ConflictError"}}class Gf extends D{constructor(i,f){super({message:"ContentTooLargeError",statusCode:413,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="ContentTooLargeError"}}class q extends D{constructor(i,f){super({message:"ForbiddenError",statusCode:403,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="ForbiddenError"}}class v extends D{constructor(i,f){super({message:"InternalServerError",statusCode:500,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="InternalServerError"}}class h extends D{constructor(i,f){super({message:"NotFoundError",statusCode:404,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="NotFoundError"}}class g extends D{constructor(i,f){super({message:"ServiceUnavailableError",statusCode:503,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="ServiceUnavailableError"}}class s extends D{constructor(i,f){super({message:"TooManyRequestsError",statusCode:429,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="TooManyRequestsError"}}class d extends D{constructor(i,f){super({message:"UnauthorizedError",statusCode:401,body:i,rawResponse:f});if(Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);this.name="UnauthorizedError"}}var MI=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};class Bn{constructor(i={}){this._options=Mi(i)}getConfiguration(i){return Z.fromPromise(this.__getConfiguration(i))}__getConfiguration(i){return MI(this,void 0,void 0,function*(){var f,w,l,t,n,W,A,$,I,k,R;let C=V((f=this._options)===null||f===void 0?void 0:f.headers,O({"X-Action-Correlation-Id":(w=i===null||i===void 0?void 0:i.correlationId)!==null&&w!==void 0?w:(l=this._options)===null||l===void 0?void 0:l.correlationId}),i===null||i===void 0?void 0:i.headers),L=yield j({url:o.join((n=(t=yield r.get(this._options.baseUrl))!==null&&t!==void 0?t:yield r.get(this._options.environment))!==null&&n!==void 0?n:a.Default,".well-known/action-cli.json"),method:"GET",headers:C,queryString:o.queryBuilder().mergeAdditional(i===null||i===void 0?void 0:i.queryParams).build(),timeoutMs:(($=(W=i===null||i===void 0?void 0:i.timeoutInSeconds)!==null&&W!==void 0?W:(A=this._options)===null||A===void 0?void 0:A.timeoutInSeconds)!==null&&$!==void 0?$:60)*1000,maxRetries:(I=i===null||i===void 0?void 0:i.maxRetries)!==null&&I!==void 0?I:(k=this._options)===null||k===void 0?void 0:k.maxRetries,abortSignal:i===null||i===void 0?void 0:i.abortSignal,fetchFn:(R=this._options)===null||R===void 0?void 0:R.fetch,logging:this._options.logging});if(L.ok)return{data:L.body,rawResponse:L.rawResponse};if(L.error.reason==="status-code")switch(L.error.statusCode){case 404:throw new h(L.error.body,L.rawResponse);case 500:throw new v(L.error.body,L.rawResponse);default:throw new D({statusCode:L.error.statusCode,body:L.error.body,rawResponse:L.rawResponse})}return m(L.error,L.rawResponse,"GET","/.well-known/action-cli.json")})}bootstrap(i={},f){return Z.fromPromise(this.__bootstrap(i,f))}__bootstrap(){return MI(this,arguments,void 0,function*(i={},f){var w,l,t,n,W,A,$,I,k,R,C;let L=yield this._options.authProvider.getAuthRequest(),z=V(L.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),y=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,"v1/auth/bootstrap"),method:"POST",headers:z,contentType:"application/json",queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),requestType:"json",body:Sf(i,f===null||f===void 0?void 0:f.additionalBodyParameters),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(y.ok)return{data:y.body,rawResponse:y.rawResponse};if(y.error.reason==="status-code")switch(y.error.statusCode){case 400:throw new e(y.error.body,y.rawResponse);case 401:throw new d(y.error.body,y.rawResponse);case 403:throw new q(y.error.body,y.rawResponse);case 404:throw new h(y.error.body,y.rawResponse);case 500:throw new v(y.error.body,y.rawResponse);case 503:throw new g(y.error.body,y.rawResponse);default:throw new D({statusCode:y.error.statusCode,body:y.error.body,rawResponse:y.rawResponse})}return m(y.error,y.rawResponse,"POST","/v1/auth/bootstrap")})}}var JI=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};class Vn{constructor(i={}){this._options=Mi(i)}getCurrentPrincipal(i){return Z.fromPromise(this.__getCurrentPrincipal(i))}__getCurrentPrincipal(i){return JI(this,void 0,void 0,function*(){var f,w,l,t,n,W,A,$,I,k,R;let C=yield this._options.authProvider.getAuthRequest(),L=V(C.headers,(f=this._options)===null||f===void 0?void 0:f.headers,O({"X-Action-Correlation-Id":(w=i===null||i===void 0?void 0:i.correlationId)!==null&&w!==void 0?w:(l=this._options)===null||l===void 0?void 0:l.correlationId}),i===null||i===void 0?void 0:i.headers),z=yield j({url:o.join((n=(t=yield r.get(this._options.baseUrl))!==null&&t!==void 0?t:yield r.get(this._options.environment))!==null&&n!==void 0?n:a.Default,"v1/me"),method:"GET",headers:L,queryString:o.queryBuilder().mergeAdditional(i===null||i===void 0?void 0:i.queryParams).build(),timeoutMs:(($=(W=i===null||i===void 0?void 0:i.timeoutInSeconds)!==null&&W!==void 0?W:(A=this._options)===null||A===void 0?void 0:A.timeoutInSeconds)!==null&&$!==void 0?$:60)*1000,maxRetries:(I=i===null||i===void 0?void 0:i.maxRetries)!==null&&I!==void 0?I:(k=this._options)===null||k===void 0?void 0:k.maxRetries,abortSignal:i===null||i===void 0?void 0:i.abortSignal,fetchFn:(R=this._options)===null||R===void 0?void 0:R.fetch,logging:this._options.logging});if(z.ok)return{data:z.body,rawResponse:z.rawResponse};if(z.error.reason==="status-code")switch(z.error.statusCode){case 401:throw new d(z.error.body,z.rawResponse);case 403:throw new q(z.error.body,z.rawResponse);case 404:throw new h(z.error.body,z.rawResponse);case 429:throw new s(z.error.body,z.rawResponse);case 500:throw new v(z.error.body,z.rawResponse);case 503:throw new g(z.error.body,z.rawResponse);default:throw new D({statusCode:z.error.statusCode,body:z.error.body,rawResponse:z.rawResponse})}return m(z.error,z.rawResponse,"GET","/v1/me")})}listSpaces(i={},f){return Z.fromPromise(this.__listSpaces(i,f))}__listSpaces(){return JI(this,arguments,void 0,function*(i={},f){var w,l,t,n,W,A,$,I,k,R,C;let{limit:L,cursor:z}=i,y={limit:L,cursor:z},T=yield this._options.authProvider.getAuthRequest(),u=V(T.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),S=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,"v1/spaces"),method:"GET",headers:u,queryString:o.queryBuilder().addMany(y).mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(S.ok)return{data:S.body,rawResponse:S.rawResponse};if(S.error.reason==="status-code")switch(S.error.statusCode){case 400:throw new e(S.error.body,S.rawResponse);case 401:throw new d(S.error.body,S.rawResponse);case 403:throw new q(S.error.body,S.rawResponse);case 404:throw new h(S.error.body,S.rawResponse);case 429:throw new s(S.error.body,S.rawResponse);case 500:throw new v(S.error.body,S.rawResponse);case 503:throw new g(S.error.body,S.rawResponse);default:throw new D({statusCode:S.error.statusCode,body:S.error.body,rawResponse:S.rawResponse})}return m(S.error,S.rawResponse,"GET","/v1/spaces")})}}var rL=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};class Hn{constructor(i={}){this._options=Mi(i)}list(i,f){return Z.fromPromise(this.__list(i,f))}__list(i,f){return rL(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,limit:z,cursor:y,q:T}=i,u={limit:z,cursor:y,q:T},S=yield this._options.authProvider.getAuthRequest(),c=V(S.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),P=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflow-capabilities`),method:"GET",headers:c,queryString:o.queryBuilder().addMany(u).mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(P.ok)return{data:P.body,rawResponse:P.rawResponse};if(P.error.reason==="status-code")switch(P.error.statusCode){case 400:throw new e(P.error.body,P.rawResponse);case 401:throw new d(P.error.body,P.rawResponse);case 403:throw new q(P.error.body,P.rawResponse);case 404:throw new h(P.error.body,P.rawResponse);case 429:throw new s(P.error.body,P.rawResponse);case 500:throw new v(P.error.body,P.rawResponse);case 503:throw new g(P.error.body,P.rawResponse);default:throw new D({statusCode:P.error.statusCode,body:P.error.body,rawResponse:P.rawResponse})}return m(P.error,P.rawResponse,"GET","/v1/spaces/{spaceId}/workflow-capabilities")})}}var iw=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},ML=function(i,f){var w={};for(var l in i)if(Object.prototype.hasOwnProperty.call(i,l)&&f.indexOf(l)<0)w[l]=i[l];if(i!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var t=0,l=Object.getOwnPropertySymbols(i);t<l.length;t++)if(f.indexOf(l[t])<0&&Object.prototype.propertyIsEnumerable.call(i,l[t]))w[l[t]]=i[l[t]]}return w};class jn{constructor(i={}){this._options=Mi(i)}list(i,f){return Z.fromPromise(this.__list(i,f))}__list(i,f){return iw(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,limit:z,cursor:y,workflowId:T,status:u}=i,S={limit:z,cursor:y,workflowId:T,status:u!=null?u:void 0},c=yield this._options.authProvider.getAuthRequest(),P=V(c.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),E=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflow-runs`),method:"GET",headers:P,queryString:o.queryBuilder().addMany(S).mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(E.ok)return{data:E.body,rawResponse:E.rawResponse};if(E.error.reason==="status-code")switch(E.error.statusCode){case 400:throw new e(E.error.body,E.rawResponse);case 401:throw new d(E.error.body,E.rawResponse);case 403:throw new q(E.error.body,E.rawResponse);case 404:throw new h(E.error.body,E.rawResponse);case 429:throw new s(E.error.body,E.rawResponse);case 500:throw new v(E.error.body,E.rawResponse);case 503:throw new g(E.error.body,E.rawResponse);default:throw new D({statusCode:E.error.statusCode,body:E.error.body,rawResponse:E.rawResponse})}return m(E.error,E.rawResponse,"GET","/v1/spaces/{spaceId}/workflow-runs")})}create(i,f){return Z.fromPromise(this.__create(i,f))}__create(i,f){return iw(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L}=i,z=ML(i,["spaceId"]),y=yield this._options.authProvider.getAuthRequest(),T=V(y.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"Idempotency-Key":f===null||f===void 0?void 0:f.idempotencyKey,"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),u=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflow-runs`),method:"POST",headers:T,contentType:"application/json",queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),requestType:"json",body:Sf(z,f===null||f===void 0?void 0:f.additionalBodyParameters),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(u.ok)return{data:u.body,rawResponse:u.rawResponse};if(u.error.reason==="status-code")switch(u.error.statusCode){case 400:throw new e(u.error.body,u.rawResponse);case 401:throw new d(u.error.body,u.rawResponse);case 403:throw new q(u.error.body,u.rawResponse);case 404:throw new h(u.error.body,u.rawResponse);case 409:throw new vi(u.error.body,u.rawResponse);case 413:throw new Gf(u.error.body,u.rawResponse);case 429:throw new s(u.error.body,u.rawResponse);case 500:throw new v(u.error.body,u.rawResponse);case 503:throw new g(u.error.body,u.rawResponse);default:throw new D({statusCode:u.error.statusCode,body:u.error.body,rawResponse:u.rawResponse})}return m(u.error,u.rawResponse,"POST","/v1/spaces/{spaceId}/workflow-runs")})}get(i,f){return Z.fromPromise(this.__get(i,f))}__get(i,f){return iw(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,runId:z}=i,y=yield this._options.authProvider.getAuthRequest(),T=V(y.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),u=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflow-runs/${o.encodePathParam(z)}`),method:"GET",headers:T,queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(u.ok)return{data:u.body,rawResponse:u.rawResponse};if(u.error.reason==="status-code")switch(u.error.statusCode){case 401:throw new d(u.error.body,u.rawResponse);case 403:throw new q(u.error.body,u.rawResponse);case 404:throw new h(u.error.body,u.rawResponse);case 429:throw new s(u.error.body,u.rawResponse);case 500:throw new v(u.error.body,u.rawResponse);case 503:throw new g(u.error.body,u.rawResponse);default:throw new D({statusCode:u.error.statusCode,body:u.error.body,rawResponse:u.rawResponse})}return m(u.error,u.rawResponse,"GET","/v1/spaces/{spaceId}/workflow-runs/{runId}")})}wait(i,f){return Z.fromPromise(this.__wait(i,f))}__wait(i,f){return iw(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,runId:z,timeoutSeconds:y}=i,T={timeoutSeconds:y},u=yield this._options.authProvider.getAuthRequest(),S=V(u.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),c=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflow-runs/${o.encodePathParam(z)}/wait`),method:"GET",headers:S,queryString:o.queryBuilder().addMany(T).mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(c.ok)return{data:c.body,rawResponse:c.rawResponse};if(c.error.reason==="status-code")switch(c.error.statusCode){case 400:throw new e(c.error.body,c.rawResponse);case 401:throw new d(c.error.body,c.rawResponse);case 403:throw new q(c.error.body,c.rawResponse);case 404:throw new h(c.error.body,c.rawResponse);case 429:throw new s(c.error.body,c.rawResponse);case 500:throw new v(c.error.body,c.rawResponse);case 503:throw new g(c.error.body,c.rawResponse);default:throw new D({statusCode:c.error.statusCode,body:c.error.body,rawResponse:c.rawResponse})}return m(c.error,c.rawResponse,"GET","/v1/spaces/{spaceId}/workflow-runs/{runId}/wait")})}listEvents(i,f){return Z.fromPromise(this.__listEvents(i,f))}__listEvents(i,f){return iw(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,runId:z,limit:y,cursor:T,waitSeconds:u}=i,S={limit:y,cursor:T,waitSeconds:u},c=yield this._options.authProvider.getAuthRequest(),P=V(c.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),E=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflow-runs/${o.encodePathParam(z)}/events`),method:"GET",headers:P,queryString:o.queryBuilder().addMany(S).mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(E.ok)return{data:E.body,rawResponse:E.rawResponse};if(E.error.reason==="status-code")switch(E.error.statusCode){case 400:throw new e(E.error.body,E.rawResponse);case 401:throw new d(E.error.body,E.rawResponse);case 403:throw new q(E.error.body,E.rawResponse);case 404:throw new h(E.error.body,E.rawResponse);case 429:throw new s(E.error.body,E.rawResponse);case 500:throw new v(E.error.body,E.rawResponse);case 503:throw new g(E.error.body,E.rawResponse);default:throw new D({statusCode:E.error.statusCode,body:E.error.body,rawResponse:E.rawResponse})}return m(E.error,E.rawResponse,"GET","/v1/spaces/{spaceId}/workflow-runs/{runId}/events")})}cancel(i,f){return Z.fromPromise(this.__cancel(i,f))}__cancel(i,f){return iw(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,runId:z}=i,y=yield this._options.authProvider.getAuthRequest(),T=V(y.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"Idempotency-Key":f===null||f===void 0?void 0:f.idempotencyKey,"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),u=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflow-runs/${o.encodePathParam(z)}/cancel`),method:"POST",headers:T,queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(u.ok)return{data:u.body,rawResponse:u.rawResponse};if(u.error.reason==="status-code")switch(u.error.statusCode){case 400:throw new e(u.error.body,u.rawResponse);case 401:throw new d(u.error.body,u.rawResponse);case 403:throw new q(u.error.body,u.rawResponse);case 404:throw new h(u.error.body,u.rawResponse);case 409:throw new vi(u.error.body,u.rawResponse);case 429:throw new s(u.error.body,u.rawResponse);case 500:throw new v(u.error.body,u.rawResponse);case 503:throw new g(u.error.body,u.rawResponse);default:throw new D({statusCode:u.error.statusCode,body:u.error.body,rawResponse:u.rawResponse})}return m(u.error,u.rawResponse,"POST","/v1/spaces/{spaceId}/workflow-runs/{runId}/cancel")})}}var di=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})},vn=function(i,f){var w={};for(var l in i)if(Object.prototype.hasOwnProperty.call(i,l)&&f.indexOf(l)<0)w[l]=i[l];if(i!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var t=0,l=Object.getOwnPropertySymbols(i);t<l.length;t++)if(f.indexOf(l[t])<0&&Object.prototype.propertyIsEnumerable.call(i,l[t]))w[l[t]]=i[l[t]]}return w};class hn{constructor(i={}){this._options=Mi(i)}list(i,f){return Z.fromPromise(this.__list(i,f))}__list(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,limit:z,cursor:y,includeArchived:T}=i,u={limit:z,cursor:y,includeArchived:T},S=yield this._options.authProvider.getAuthRequest(),c=V(S.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),P=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows`),method:"GET",headers:c,queryString:o.queryBuilder().addMany(u).mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(P.ok)return{data:P.body,rawResponse:P.rawResponse};if(P.error.reason==="status-code")switch(P.error.statusCode){case 400:throw new e(P.error.body,P.rawResponse);case 401:throw new d(P.error.body,P.rawResponse);case 403:throw new q(P.error.body,P.rawResponse);case 404:throw new h(P.error.body,P.rawResponse);case 429:throw new s(P.error.body,P.rawResponse);case 500:throw new v(P.error.body,P.rawResponse);case 503:throw new g(P.error.body,P.rawResponse);default:throw new D({statusCode:P.error.statusCode,body:P.error.body,rawResponse:P.rawResponse})}return m(P.error,P.rawResponse,"GET","/v1/spaces/{spaceId}/workflows")})}create(i,f){return Z.fromPromise(this.__create(i,f))}__create(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L}=i,z=vn(i,["spaceId"]),y=yield this._options.authProvider.getAuthRequest(),T=V(y.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"Idempotency-Key":f===null||f===void 0?void 0:f.idempotencyKey,"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),u=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows`),method:"POST",headers:T,contentType:"application/json",queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),requestType:"json",body:Sf(z,f===null||f===void 0?void 0:f.additionalBodyParameters),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(u.ok)return{data:u.body,rawResponse:u.rawResponse};if(u.error.reason==="status-code")switch(u.error.statusCode){case 400:throw new e(u.error.body,u.rawResponse);case 401:throw new d(u.error.body,u.rawResponse);case 403:throw new q(u.error.body,u.rawResponse);case 404:throw new h(u.error.body,u.rawResponse);case 409:throw new vi(u.error.body,u.rawResponse);case 413:throw new Gf(u.error.body,u.rawResponse);case 429:throw new s(u.error.body,u.rawResponse);case 500:throw new v(u.error.body,u.rawResponse);case 503:throw new g(u.error.body,u.rawResponse);default:throw new D({statusCode:u.error.statusCode,body:u.error.body,rawResponse:u.rawResponse})}return m(u.error,u.rawResponse,"POST","/v1/spaces/{spaceId}/workflows")})}get(i,f){return Z.fromPromise(this.__get(i,f))}__get(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z}=i,y=yield this._options.authProvider.getAuthRequest(),T=V(y.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),u=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}`),method:"GET",headers:T,queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(u.ok)return{data:u.body,rawResponse:u.rawResponse};if(u.error.reason==="status-code")switch(u.error.statusCode){case 401:throw new d(u.error.body,u.rawResponse);case 403:throw new q(u.error.body,u.rawResponse);case 404:throw new h(u.error.body,u.rawResponse);case 429:throw new s(u.error.body,u.rawResponse);case 500:throw new v(u.error.body,u.rawResponse);case 503:throw new g(u.error.body,u.rawResponse);default:throw new D({statusCode:u.error.statusCode,body:u.error.body,rawResponse:u.rawResponse})}return m(u.error,u.rawResponse,"GET","/v1/spaces/{spaceId}/workflows/{workflowId}")})}update(i,f){return Z.fromPromise(this.__update(i,f))}__update(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z,"If-Match":y}=i,T=vn(i,["spaceId","workflowId","If-Match"]),u=yield this._options.authProvider.getAuthRequest(),S=V(u.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"If-Match":y,"Idempotency-Key":f===null||f===void 0?void 0:f.idempotencyKey,"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),c=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}`),method:"PUT",headers:S,contentType:"application/json",queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),requestType:"json",body:Sf(T,f===null||f===void 0?void 0:f.additionalBodyParameters),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(c.ok)return{data:c.body,rawResponse:c.rawResponse};if(c.error.reason==="status-code")switch(c.error.statusCode){case 400:throw new e(c.error.body,c.rawResponse);case 401:throw new d(c.error.body,c.rawResponse);case 403:throw new q(c.error.body,c.rawResponse);case 404:throw new h(c.error.body,c.rawResponse);case 409:throw new vi(c.error.body,c.rawResponse);case 413:throw new Gf(c.error.body,c.rawResponse);case 429:throw new s(c.error.body,c.rawResponse);case 500:throw new v(c.error.body,c.rawResponse);case 503:throw new g(c.error.body,c.rawResponse);default:throw new D({statusCode:c.error.statusCode,body:c.error.body,rawResponse:c.rawResponse})}return m(c.error,c.rawResponse,"PUT","/v1/spaces/{spaceId}/workflows/{workflowId}")})}archive(i,f){return Z.fromPromise(this.__archive(i,f))}__archive(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z,"If-Match":y}=i,T=yield this._options.authProvider.getAuthRequest(),u=V(T.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"If-Match":y,"Idempotency-Key":f===null||f===void 0?void 0:f.idempotencyKey,"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),S=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}`),method:"DELETE",headers:u,queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(S.ok)return{data:S.body,rawResponse:S.rawResponse};if(S.error.reason==="status-code")switch(S.error.statusCode){case 401:throw new d(S.error.body,S.rawResponse);case 403:throw new q(S.error.body,S.rawResponse);case 404:throw new h(S.error.body,S.rawResponse);case 409:throw new vi(S.error.body,S.rawResponse);case 429:throw new s(S.error.body,S.rawResponse);case 500:throw new v(S.error.body,S.rawResponse);case 503:throw new g(S.error.body,S.rawResponse);default:throw new D({statusCode:S.error.statusCode,body:S.error.body,rawResponse:S.rawResponse})}return m(S.error,S.rawResponse,"DELETE","/v1/spaces/{spaceId}/workflows/{workflowId}")})}listRevisions(i,f){return Z.fromPromise(this.__listRevisions(i,f))}__listRevisions(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z,limit:y,cursor:T}=i,u={limit:y,cursor:T},S=yield this._options.authProvider.getAuthRequest(),c=V(S.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),P=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}/revisions`),method:"GET",headers:c,queryString:o.queryBuilder().addMany(u).mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(P.ok)return{data:P.body,rawResponse:P.rawResponse};if(P.error.reason==="status-code")switch(P.error.statusCode){case 400:throw new e(P.error.body,P.rawResponse);case 401:throw new d(P.error.body,P.rawResponse);case 403:throw new q(P.error.body,P.rawResponse);case 404:throw new h(P.error.body,P.rawResponse);case 429:throw new s(P.error.body,P.rawResponse);case 500:throw new v(P.error.body,P.rawResponse);case 503:throw new g(P.error.body,P.rawResponse);default:throw new D({statusCode:P.error.statusCode,body:P.error.body,rawResponse:P.rawResponse})}return m(P.error,P.rawResponse,"GET","/v1/spaces/{spaceId}/workflows/{workflowId}/revisions")})}getRevision(i,f){return Z.fromPromise(this.__getRevision(i,f))}__getRevision(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z,revisionId:y}=i,T=yield this._options.authProvider.getAuthRequest(),u=V(T.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),S=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}/revisions/${o.encodePathParam(y)}`),method:"GET",headers:u,queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(S.ok)return{data:S.body,rawResponse:S.rawResponse};if(S.error.reason==="status-code")switch(S.error.statusCode){case 401:throw new d(S.error.body,S.rawResponse);case 403:throw new q(S.error.body,S.rawResponse);case 404:throw new h(S.error.body,S.rawResponse);case 429:throw new s(S.error.body,S.rawResponse);case 500:throw new v(S.error.body,S.rawResponse);case 503:throw new g(S.error.body,S.rawResponse);default:throw new D({statusCode:S.error.statusCode,body:S.error.body,rawResponse:S.rawResponse})}return m(S.error,S.rawResponse,"GET","/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}")})}validateRevision(i,f){return Z.fromPromise(this.__validateRevision(i,f))}__validateRevision(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z,revisionId:y}=i,T=yield this._options.authProvider.getAuthRequest(),u=V(T.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),S=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}/revisions/${o.encodePathParam(y)}/validate`),method:"POST",headers:u,queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(S.ok)return{data:S.body,rawResponse:S.rawResponse};if(S.error.reason==="status-code")switch(S.error.statusCode){case 401:throw new d(S.error.body,S.rawResponse);case 403:throw new q(S.error.body,S.rawResponse);case 404:throw new h(S.error.body,S.rawResponse);case 409:throw new vi(S.error.body,S.rawResponse);case 429:throw new s(S.error.body,S.rawResponse);case 500:throw new v(S.error.body,S.rawResponse);case 503:throw new g(S.error.body,S.rawResponse);default:throw new D({statusCode:S.error.statusCode,body:S.error.body,rawResponse:S.rawResponse})}return m(S.error,S.rawResponse,"POST","/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/validate")})}testRevision(i,f){return Z.fromPromise(this.__testRevision(i,f))}__testRevision(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z,revisionId:y}=i,T=vn(i,["spaceId","workflowId","revisionId"]),u=yield this._options.authProvider.getAuthRequest(),S=V(u.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"Idempotency-Key":f===null||f===void 0?void 0:f.idempotencyKey,"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),c=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}/revisions/${o.encodePathParam(y)}/test`),method:"POST",headers:S,contentType:"application/json",queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),requestType:"json",body:Sf(T,f===null||f===void 0?void 0:f.additionalBodyParameters),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(c.ok)return{data:c.body,rawResponse:c.rawResponse};if(c.error.reason==="status-code")switch(c.error.statusCode){case 400:throw new e(c.error.body,c.rawResponse);case 401:throw new d(c.error.body,c.rawResponse);case 403:throw new q(c.error.body,c.rawResponse);case 404:throw new h(c.error.body,c.rawResponse);case 409:throw new vi(c.error.body,c.rawResponse);case 413:throw new Gf(c.error.body,c.rawResponse);case 429:throw new s(c.error.body,c.rawResponse);case 500:throw new v(c.error.body,c.rawResponse);case 503:throw new g(c.error.body,c.rawResponse);default:throw new D({statusCode:c.error.statusCode,body:c.error.body,rawResponse:c.rawResponse})}return m(c.error,c.rawResponse,"POST","/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/test")})}publishRevision(i,f){return Z.fromPromise(this.__publishRevision(i,f))}__publishRevision(i,f){return di(this,void 0,void 0,function*(){var w,l,t,n,W,A,$,I,k,R,C;let{spaceId:L,workflowId:z,revisionId:y}=i,T=yield this._options.authProvider.getAuthRequest(),u=V(T.headers,(w=this._options)===null||w===void 0?void 0:w.headers,O({"Idempotency-Key":f===null||f===void 0?void 0:f.idempotencyKey,"X-Action-Correlation-Id":(l=f===null||f===void 0?void 0:f.correlationId)!==null&&l!==void 0?l:(t=this._options)===null||t===void 0?void 0:t.correlationId}),f===null||f===void 0?void 0:f.headers),S=yield j({url:o.join((W=(n=yield r.get(this._options.baseUrl))!==null&&n!==void 0?n:yield r.get(this._options.environment))!==null&&W!==void 0?W:a.Default,`v1/spaces/${o.encodePathParam(L)}/workflows/${o.encodePathParam(z)}/revisions/${o.encodePathParam(y)}/publish`),method:"POST",headers:u,queryString:o.queryBuilder().mergeAdditional(f===null||f===void 0?void 0:f.queryParams).build(),timeoutMs:((I=(A=f===null||f===void 0?void 0:f.timeoutInSeconds)!==null&&A!==void 0?A:($=this._options)===null||$===void 0?void 0:$.timeoutInSeconds)!==null&&I!==void 0?I:60)*1000,maxRetries:(k=f===null||f===void 0?void 0:f.maxRetries)!==null&&k!==void 0?k:(R=this._options)===null||R===void 0?void 0:R.maxRetries,abortSignal:f===null||f===void 0?void 0:f.abortSignal,fetchFn:(C=this._options)===null||C===void 0?void 0:C.fetch,logging:this._options.logging});if(S.ok)return{data:S.body,rawResponse:S.rawResponse};if(S.error.reason==="status-code")switch(S.error.statusCode){case 400:throw new e(S.error.body,S.rawResponse);case 401:throw new d(S.error.body,S.rawResponse);case 403:throw new q(S.error.body,S.rawResponse);case 404:throw new h(S.error.body,S.rawResponse);case 409:throw new vi(S.error.body,S.rawResponse);case 429:throw new s(S.error.body,S.rawResponse);case 500:throw new v(S.error.body,S.rawResponse);case 503:throw new g(S.error.body,S.rawResponse);default:throw new D({statusCode:S.error.statusCode,body:S.error.body,rawResponse:S.rawResponse})}return m(S.error,S.rawResponse,"POST","/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/publish")})}}var UI=function(i,f,w,l){function t(n){return n instanceof w?n:new w(function(W){W(n)})}return new(w||(w=Promise))(function(n,W){function A(k){try{I(l.next(k))}catch(R){W(R)}}function $(k){try{I(l.throw(k))}catch(R){W(R)}}function I(k){k.done?n(k.value):t(k.value).then(A,$)}I((l=l.apply(i,f||[])).next())})};class gl{constructor(i={}){this._options=Mi(i)}get authentication(){var i;return(i=this._authentication)!==null&&i!==void 0?i:this._authentication=new Bn(this._options)}get identity(){var i;return(i=this._identity)!==null&&i!==void 0?i:this._identity=new Vn(this._options)}get workflows(){var i;return(i=this._workflows)!==null&&i!==void 0?i:this._workflows=new hn(this._options)}get workflowRuns(){var i;return(i=this._workflowRuns)!==null&&i!==void 0?i:this._workflowRuns=new jn(this._options)}get workflowCapabilities(){var i;return(i=this._workflowCapabilities)!==null&&i!==void 0?i:this._workflowCapabilities=new Hn(this._options)}fetch(i,f,w){return UI(this,void 0,void 0,function*(){var l;return Kn(i,f,{baseUrl:(l=this._options.baseUrl)!==null&&l!==void 0?l:this._options.environment,headers:this._options.headers,timeoutInSeconds:this._options.timeoutInSeconds,maxRetries:this._options.maxRetries,fetch:this._options.fetch,logging:this._options.logging,getAuthHeaders:()=>UI(this,void 0,void 0,function*(){return(yield this._options.authProvider.getAuthRequest()).headers})},w)})}}var JL="[redacted]",UL=5,YI=50,XI=2000,YL=/^(?:authorization(?:[_-]?header)?|cookie(?:[_-]?header)?|credentials?|passwords?|passphrases?|private|secrets?|secret[_-]?keys?|tokens?|source|content|api[_-]?(?:keys?|secrets?)|client[_-]?secrets?|private[_-]?keys?|signing[_-]?keys?|webhook[_-]?secrets?|(?:access|auth|bearer|github|id|oauth|personal[_-]?access|refresh|session|slack|stripe)[_-]?tokens?)$/iu,FL=new Set(["authentication_required","invalid_credential","insufficient_scope","forbidden","feature_disabled","invalid_request","not_found","stale_revision","idempotency_mismatch","operation_in_progress","conflict","rate_limited","upstream_unavailable","internal_error"]),XL=new Set(["__proto__","constructor","prototype"]);class Ii extends Error{code;correlationId;details;retryable;status;constructor(i){super(i.message);this.name="CliApiError",this.code=i.code,this.correlationId=i.correlationId??null,this.details=i.details,this.retryable=i.retryable,this.status=i.status??null}toJSON(){return{code:this.code,correlationId:this.correlationId,...this.details?{details:this.details}:{},message:this.message,retryable:this.retryable,status:this.status}}}function jw(i){return i!==null&&typeof i==="object"&&!Array.isArray(i)}function GL(i,f){if(typeof i!=="string")return f;let w=i.trim();return w?w.slice(0,XI):f}function ZL(i){return typeof i==="string"&&FL.has(i)?i:"api_error"}function On(i,f,w){if(w&&YL.test(w))return JL;if(f>=UL)return"[truncated]";if(typeof i==="string")return i.slice(0,XI);if(i===null||typeof i==="boolean"||typeof i==="number")return i;if(Array.isArray(i))return i.slice(0,YI).map((t)=>On(t,f+1));if(!jw(i))return;let l=Object.create(null);for(let[t,n]of Object.entries(i).slice(0,YI)){if(XL.has(t))continue;let W=On(n,f+1,t);if(W!==void 0)l[t]=W}return l}function KL(i){if(!jw(i)||!jw(i.error))return null;let f=i.error,w=typeof f.correlationId==="string"?f.correlationId.slice(0,128):null,l=jw(f.details)?On(f.details,0):void 0;return{code:ZL(f.code),correlationId:w,...jw(l)?{details:l}:{},message:GL(f.message,"The Action API rejected the request.")}}function xn(i){return i.rawResponse?.headers.get("x-action-correlation-id")?.slice(0,128)??null}function FI(i,f){return i==="operation_in_progress"||i==="rate_limited"||i==="upstream_unavailable"||f===408||f===425||f===429||f!==null&&f>=500}function QL(i){return i instanceof DOMException&&i.name==="AbortError"}function an(i){if(i instanceof Ii)return i;if(QL(i))return new Ii({code:"request_aborted",message:"The Action API request was cancelled.",retryable:!1});if(i instanceof Xf)return new Ii({code:"transport_error",correlationId:xn(i),message:"The Action API request timed out.",retryable:!0,status:i.statusCode??null});if(i instanceof D){let f=KL(i.body),w=i.statusCode??null;if(f)return new Ii({code:f.code,correlationId:f.correlationId??xn(i),...f.details?{details:f.details}:{},message:f.message,retryable:FI(f.code,w),status:w});return new Ii({code:"transport_error",correlationId:xn(i),message:w?`The Action API request failed with HTTP ${w}.`:"Unable to reach the Action API.",retryable:w===null||FI("transport_error",w),status:w})}return new Ii({code:"unknown_error",message:"The Action API request could not be completed.",retryable:!1})}function zi(i){return new Ii({code:"invalid_request",message:i,retryable:!1})}function nf(i){return new Ii({code:"invalid_response",message:i,retryable:!1})}var BL=1e4;function VL(i){return i!==null&&typeof i==="object"&&!Array.isArray(i)}function vw(i,f){if(!VL(i)||!Array.isArray(i[f]))throw nf("The Action API returned an invalid page.");let w=i.nextCursor;if(w!==null&&typeof w!=="string")throw nf("The Action API returned an invalid pagination cursor.");return{items:i[f],nextCursor:w}}async function hw(i){let f=[],w=new Set,l;for(let t=0;t<BL;t+=1){let n=await i(l);if(!Array.isArray(n.items))throw nf("The Action API returned an invalid page.");if(f.push(...n.items),n.nextCursor===null)return f;if(typeof n.nextCursor!=="string"||!n.nextCursor)throw nf("The Action API returned an invalid pagination cursor.");if(w.has(n.nextCursor))throw nf("The Action API repeated a pagination cursor.");w.add(n.nextCursor),l=n.nextCursor}throw nf("The Action API returned too many pages.")}var fw="0.1.1";var HL=fw,jL=100,vL=2,hL=/^[A-Za-z0-9._:-]{1,128}$/u,xL=/^[A-Za-z0-9._:-]{8,200}$/u,OL=/^[A-Za-z0-9.+_-]{1,64}$/u;function GI(i,f){let w=new Map(i.map((l)=>[l.name,l]));for(let l of f){let t=w.get(l.name);w.set(l.name,{...t??l,...l.inputSchema!==null?{inputSchema:l.inputSchema}:{},...l.outputSchema!==null?{outputSchema:l.outputSchema}:{}})}return[...w.values()]}function aL(i){let f=new Map;for(let w of i){let l=f.get(w.slug);if(!l){f.set(w.slug,{...w,connectorInstances:[...w.connectorInstances]});continue}let t=new Map(l.connectorInstances.map((n)=>[n.id,n]));for(let n of w.connectorInstances)t.set(n.id,n);f.set(w.slug,{...l,actions:GI(l.actions,w.actions),connectionStatus:l.connectionStatus==="connected"||w.connectionStatus==="connected"?"connected":"not_connected",connectorInstances:[...t.values()],readActions:GI(l.readActions,w.readActions)})}return[...f.values()]}function mL(i){let f;try{f=new URL(i)}catch{throw zi("The Action API base URL is invalid.")}if(f.protocol!=="https:"&&f.protocol!=="http:")throw zi("The Action API base URL must use HTTP or HTTPS.");let w=f.hostname==="localhost"||f.hostname==="127.0.0.1"||f.hostname==="[::1]";if(f.protocol!=="https:"&&!w)throw zi("The Action API base URL must use HTTPS outside local development.");if(f.username||f.password)throw zi("The Action API base URL must not contain credentials.");return f.pathname=f.pathname.replace(/\/+$/u,""),f.search="",f.hash="",f.toString().replace(/\/$/u,"")}function ww(i){if(i===void 0)return jL;if(!Number.isInteger(i)||i<1||i>100)throw zi("pageSize must be an integer between 1 and 100.");return i}function ZI(i,f){let w=i??f.defaultValue;if(!Number.isInteger(w)||w<f.minimum||w>f.maximum)throw zi(`${f.name} must be an integer between ${f.minimum} and ${f.maximum}.`);return w}function KI(i){if(i===void 0)return;let f=i.trim();if(!f||f.length>1000)throw zi("cursor must contain 1 to 1000 characters.");return f}function qL(i){let f=i.trim();if(!xL.test(f))throw zi("idempotencyKey must be 8 to 200 characters using letters, numbers, dot, underscore, colon, or dash.");return f}function QI(i){let f=i.trim();if(/^W\//u.test(f))throw zi("ifMatch must be a strong ETag or revision ID.");let w=f.startsWith('"')&&f.endsWith('"')?f.slice(1,-1):f,l=[...w].some((t)=>{let n=t.codePointAt(0)??0;return t==='"'||n<=31||n===127});if(!w||l)throw zi("ifMatch must be a strong ETag or revision ID.");return`"${w}"`}class mn{client;correlationIdProvider;preserveError;constructor(i){let f=i.version?.trim()||HL;if(!OL.test(f))throw zi("The CLI version is invalid.");this.correlationIdProvider=i.correlationIdProvider??(()=>crypto.randomUUID()),this.preserveError=i.preserveError??(()=>!1),this.client=new gl({baseUrl:mL(i.baseUrl),...i.fetch?{fetch:i.fetch}:{},headers:{"User-Agent":`action-cli/${f}`,"X-Action-CLI-Version":f},maxRetries:0,token:async()=>{let w=(await i.tokenProvider()).trim();if(!w)throw zi("No Action API credential is available.");return w}})}async getIdentity(i={}){return await this.invoke(async()=>{return await this.client.identity.getCurrentPrincipal(await this.readOptions(i))})}async listSpaces(i={}){return await this.invoke(async()=>{let f=await this.readOptions(i),w=ww(i.pageSize);return await hw(async(l)=>{let t=await this.client.identity.listSpaces({...l?{cursor:l}:{},limit:w},f);return vw(t,"spaces")})})}async listWorkflows(i,f={}){return await this.invoke(async()=>{let w=await this.readOptions(f),l=ww(f.pageSize);return await hw(async(t)=>{let n=await this.client.workflows.list({...t?{cursor:t}:{},...i.includeArchived!==void 0?{includeArchived:i.includeArchived}:{},limit:l,spaceId:i.spaceId},w);return vw(n,"data")})})}async getWorkflow(i,f={}){return await this.invoke(async()=>{return await this.client.workflows.get(i,await this.readOptions(f))})}async listWorkflowRevisions(i,f={}){return await this.invoke(async()=>{let w=await this.readOptions(f),l=ww(f.pageSize);return await hw(async(t)=>{let n=await this.client.workflows.listRevisions({...i,...t?{cursor:t}:{},limit:l},w);return vw(n,"data")})})}async getWorkflowRevision(i,f={}){return await this.invoke(async()=>{return await this.client.workflows.getRevision(i,await this.readOptions(f))})}async listWorkflowCapabilities(i,f={}){return await this.invoke(async()=>{let w=await this.readOptions(f),l=ww(f.pageSize),t=await hw(async(n)=>{let W=await this.client.workflowCapabilities.list({...n?{cursor:n}:{},limit:l,...f.query?{q:f.query}:{},spaceId:i},w);return vw(W,"applications")});return aL(t)})}async createWorkflow(i,f){return await this.invoke(async()=>{return await this.client.workflows.create(i,await this.mutationOptions(f))})}async updateWorkflow(i,f){return await this.invoke(async()=>{let{ifMatch:w,...l}=i;return await this.client.workflows.update({...l,...w?{"If-Match":QI(w)}:{}},await this.mutationOptions(f))})}async validateWorkflowRevision(i,f={}){return await this.invoke(async()=>{return await this.client.workflows.validateRevision(i,await this.readOptions(f))})}async testWorkflowRevision(i,f){return await this.invoke(async()=>{return await this.client.workflows.testRevision(i,await this.mutationOptions(f))})}async createWorkflowRun(i,f){return await this.invoke(async()=>{return await this.client.workflowRuns.create(i,await this.mutationOptions(f))})}async listWorkflowRuns(i,f={}){return await this.invoke(async()=>{let w=KI(f.cursor);return await this.client.workflowRuns.list({...w?{cursor:w}:{},limit:ww(f.pageSize),spaceId:i.spaceId,...i.status?{status:i.status}:{},...i.workflowId?{workflowId:i.workflowId}:{}},await this.readOptions(f))})}async getWorkflowRun(i,f={}){return await this.invoke(async()=>{return await this.client.workflowRuns.get(i,await this.readOptions(f))})}async waitForWorkflowRun(i,f={}){return await this.invoke(async()=>{return await this.client.workflowRuns.wait({runId:i.runId,spaceId:i.spaceId,timeoutSeconds:ZI(i.timeoutSeconds,{defaultValue:25,maximum:30,minimum:1,name:"timeoutSeconds"})},await this.readOptions(f,0))})}async listWorkflowRunEvents(i,f={}){return await this.invoke(async()=>{let w=KI(i.cursor);return await this.client.workflowRuns.listEvents({...w?{cursor:w}:{},limit:ww(i.pageSize),runId:i.runId,spaceId:i.spaceId,waitSeconds:ZI(i.waitSeconds,{defaultValue:25,maximum:30,minimum:0,name:"waitSeconds"})},await this.readOptions(f,0))})}async cancelWorkflowRun(i,f){return await this.invoke(async()=>{return await this.client.workflowRuns.cancel(i,await this.mutationOptions(f))})}async publishWorkflowRevision(i,f){return await this.invoke(async()=>{return await this.client.workflows.publishRevision(i,await this.mutationOptions(f))})}async archiveWorkflow(i,f){return await this.invoke(async()=>{let{ifMatch:w,...l}=i;return await this.client.workflows.archive({...l,"If-Match":QI(w)},await this.mutationOptions(f))})}async correlationId(i){let f=(i??await this.correlationIdProvider()).trim();if(!hL.test(f))throw zi("The correlation ID contains unsupported characters.");return f}async readOptions(i,f=vL){return{...i.abortSignal?{abortSignal:i.abortSignal}:{},correlationId:await this.correlationId(i.correlationId),maxRetries:f}}async mutationOptions(i){return{...await this.readOptions(i),idempotencyKey:qL(i.idempotencyKey)}}async invoke(i){try{return await i()}catch(f){if(this.preserveError(f))throw f;throw an(f)}}}function qn(i){return new mn(i)}var B={success:0,internal:1,usage:2,authentication:3,notFound:4,conflict:5,validation:6,remote:7,partial:8};class Q extends Error{code;details;exitCode;constructor(i,f,w={}){super(f,w.cause===void 0?void 0:{cause:w.cause});this.name="CliError",this.code=i,this.details=w.details,this.exitCode=w.exitCode??B.internal}}function gn(i){if(i instanceof Q)return i;if(i instanceof Error){let f=i;return new Q(typeof f.code==="string"?f.code:"internal_error",f.message,{cause:i,...f.details!==void 0?{details:f.details}:{},...typeof f.exitCode==="number"?{exitCode:f.exitCode}:{}})}return new Q("internal_error","The command could not be completed.")}function BI(i){let f=i.optsWithGlobals();return{...f.apiUrl?{apiUrl:f.apiUrl}:{},json:f.json??!1,nonInteractive:f.nonInteractive??!1,...f.profile?{profile:f.profile}:{},...f.space?{space:f.space}:{}}}async function Ji(i,f,w){return await f.createRuntime({globals:BI(i),reporter:w.reporter})}function ti(i){return new Q("usage_error",i,{exitCode:B.usage})}function dn(i,f="--input"){try{return JSON.parse(i)}catch{throw ti(`${f} must be valid JSON.`)}}async function _n(i){if(i.yes)return!0;let f=BI(i.command);if(f.nonInteractive||f.json)throw ti("This command requires --yes in JSON or non-interactive mode.");if(!i.dependencies.confirm)throw ti("This command requires --yes when confirmation is unavailable.");return await i.dependencies.confirm(i.message)}function sn(){return{human:"Cancelled.",value:{cancelled:!0}}}function pn(i,f,w){let l=i.command("auth").description("Authenticate the Action CLI");l.command("login").description("Sign in using the secure WorkOS device flow").option("--organization <id-or-key>","select an Action organization").action(async(t,n)=>{let W=w(n),$=await(await Ji(n,f,{reporter:W})).auth.login(t);W.result($.value,$.human)}),l.command("logout").description("Remove the stored session for the selected profile").action(async(t,n)=>{let W=w(n),$=await(await Ji(n,f,{reporter:W})).auth.logout();W.result($.value,$.human)}),l.command("status").description("Show authentication status for the selected profile").action(async(t,n)=>{let W=w(n),$=await(await Ji(n,f,{reporter:W})).auth.status();W.result($.value,$.human)})}function en(i,f,w){let l=i.command("context").description("Manage the active organization and space");l.command("list").description("List spaces available to the selected principal").action(async(t,n)=>{let W=w(n),$=await(await Ji(n,f,{reporter:W})).context.list();W.result($.value,$.human)}),l.command("show").description("Show the active profile, organization, and space").action(async(t,n)=>{let W=w(n),$=await(await Ji(n,f,{reporter:W})).context.show();W.result($.value,$.human)}),l.command("use").description("Select a space by ID or key for the active profile").argument("<space>","space ID or key").action(async(t,n,W)=>{let A=w(W),I=await(await Ji(W,f,{reporter:A})).context.use(t);A.result(I.value,I.human)})}import{open as gL}from"node:fs/promises";var Zf=262144;function VI(i){if(Buffer.byteLength(i,"utf8")>Zf)throw ti(`Workflow input must be ${Zf} bytes or smaller.`)}async function dL(){let i=[],f=0;for await(let w of process.stdin){let l=Buffer.isBuffer(w)?w:Buffer.from(String(w));if(f+=l.byteLength,f>Zf)throw ti(`Workflow input must be ${Zf} bytes or smaller.`);i.push(l)}return Buffer.concat(i).toString("utf8")}async function _L(i){if(i==="-")return await dL();let f=await gL(i,"r");try{let w=Buffer.alloc(Zf+1),l=0;while(l<w.byteLength){let{bytesRead:t}=await f.read(w,l,w.byteLength-l,l);if(t===0)break;l+=t}if(l>Zf)throw ti(`Workflow input must be ${Zf} bytes or smaller.`);return w.subarray(0,l).toString("utf8")}finally{await f.close()}}async function dl(i,f){if(i.input!==void 0===(i.inputFile!==void 0))throw ti("Specify exactly one of --input or --input-file.");if(i.input!==void 0)return VI(i.input),dn(i.input);let w=i.inputFile,l;try{l=w==="-"&&f.readStdin?await f.readStdin():await _L(w)}catch(t){if(t instanceof Q)throw t;throw ti(`Could not read workflow input from ${w}.`)}return VI(l),dn(l,"--input-file")}var HI=new Set(["queued","running","waiting","succeeded","failed","cancelled"]);function sL(i){if(i===void 0)return;if(!/^\d+$/u.test(i))throw ti("--limit must be an integer between 1 and 100.");let f=Number(i);if(!Number.isInteger(f)||f<1||f>100)throw ti("--limit must be an integer between 1 and 100.");return f}function pL(i){if(i===void 0)return;if(!HI.has(i))throw ti(`--status must be one of: ${[...HI].join(", ")}.`);return i}function eL(i){return`${i.createdAt} ${i.type} ${i.id} ${JSON.stringify(i.data)}`}async function iz(i){let f=new AbortController,w=()=>f.abort();process.once("SIGINT",w);try{return await i(f.signal)}finally{process.removeListener("SIGINT",w)}}async function xw(i,f,w){return(await Ji(i,f,{reporter:w})).workflows}function fz(i,f,w){if(!w){i.result(f.value,f.human);return}let l=f.value;i.stream({eventCount:l.eventCount,nextCursor:l.nextCursor,run:l.run,stopped:l.stopped,type:"summary"},"",!0)}function iW(i,f,w){i.command("run").description("Run the published workflow revision in production").argument("<key>","workflow key").option("--input <json>","JSON workflow input (visible in process arguments)").option("--input-file <path>","read JSON workflow input from a file, or - for stdin").option("--wait","wait for a terminal run state",!1).action(async(t,n,W)=>{let A=w(W),$=await(await xw(W,f,A)).run({input:await dl(n,f),key:t,wait:n.wait??!1});A.result($.value,$.human)});let l=i.command("runs").description("Inspect and control production workflow runs");l.command("list").description("List a cursor-bounded page of workflow runs").option("--cursor <cursor>","opaque resume cursor").option("--limit <number>","page size from 1 to 100").option("--status <status>","filter by run status").option("--workflow <key>","filter by workflow key").action(async(t,n)=>{let W=w(n),A=sL(t.limit),$=pL(t.status),I=await(await xw(n,f,W)).runsList({...t.cursor?{cursor:t.cursor}:{},...A?{limit:A}:{},...$?{status:$}:{},...t.workflow?{workflowKey:t.workflow}:{}});W.result(I.value,I.human)}),l.command("get").description("Get one workflow run").argument("<run-id>","workflow run ID").action(async(t,n,W)=>{let A=w(W),$=await(await xw(W,f,A)).runGet({runId:t});A.result($.value,$.human)}),l.command("watch").description("Watch durable workflow-run events until completion or Ctrl-C").argument("<run-id>","workflow run ID").option("--cursor <cursor>","opaque event resume cursor").option("--jsonl","stream one stable JSON object per line",!1).action(async(t,n,W)=>{let A=w(W),$=n.jsonl??!1;if($&&A.json)throw ti("--jsonl cannot be combined with the global --json option.");let I=await iz(async(k)=>(await xw(W,f,A)).runWatch({captureEvents:A.json,...n.cursor?{cursor:n.cursor}:{},...!A.json?{onEvent:(R)=>A.stream({event:R,type:"event"},eL(R),$)}:{},runId:t,signal:k}));fz(A,I,$)}),l.command("cancel").description("Request cancellation of one workflow run").argument("<run-id>","workflow run ID").action(async(t,n,W)=>{let A=w(W),$=await(await xw(W,f,A)).runCancel({runId:t});A.result($.value,$.human)})}async function Ui(i,f,w){return(await Ji(i,f,{reporter:w})).workflows}function fW(i,f,w){let l=i.command("workflows").description("Author and manage workflows as code");iW(l,f,w),l.command("init").description("Initialize a local Action workflow project").argument("[directory]","project directory").action(async(t,n,W)=>{let A=w(W),$=await(await Ui(W,f,A)).init({...t?{directory:t}:{}});A.result($.value,$.human)}),l.command("capabilities").description("Discover workflow application actions and connected accounts").argument("[application]","application slug or name; include it to fetch full action schemas").action(async(t,n,W)=>{let A=w(W),$=await(await Ui(W,f,A)).capabilities({...t?{application:t}:{}});A.result($.value,$.human)}),l.command("list").description("List workflows in the active space").option("--include-archived","include archived workflows",!1).action(async(t,n)=>{let W=w(n),A=await(await Ui(n,f,W)).list({includeArchived:t.includeArchived===!0});W.result(A.value,A.human)}),l.command("pull").description("Pull latest workflow revisions into the local project").argument("[key]","workflow key").option("--published","pull published revisions for inspection",!1).option("--output <directory>","output directory for --published").option("--force","overwrite local divergence",!1).action(async(t,n,W)=>{let A=w(W);if(n.published&&!n.output)throw ti("--published requires --output so inspection files cannot replace the authoring base.");if(n.output&&!n.published)throw ti("--output can only be used with --published.");let $=await(await Ui(W,f,A)).pull({force:n.force??!1,...t?{key:t}:{},...n.output?{outputDirectory:n.output}:{},published:n.published??!1});A.result($.value,$.human)}),l.command("status").description("Compare local workflows with their lockfile and remote revisions").option("--offline","compare only local state and the lockfile",!1).action(async(t,n)=>{let W=w(n),A=await(await Ui(n,f,W)).status({offline:t.offline??!1});W.result(A.value,A.human)}),l.command("diff").description("Show canonical metadata and source differences").argument("<key>","workflow key").action(async(t,n,W)=>{let A=w(W),$=await(await Ui(W,f,A)).diff({key:t});A.result($.value,$.human)}),l.command("validate").description("Validate local workflow files and optionally the remote draft").argument("[key]","workflow key").option("--remote","also validate the matching remote revision",!1).action(async(t,n,W)=>{let A=w(W),$=await(await Ui(W,f,A)).validate({...t?{key:t}:{},remote:n.remote??!1});A.result($.value,$.human)}),l.command("push").description("Create or update workflow drafts without publishing").argument("[key]","workflow key").action(async(t,n,W)=>{let A=w(W),$=await(await Ui(W,f,A)).push({...t?{key:t}:{}});A.result($.value,$.human)}),l.command("test").description("Start a real test run for one unpublished workflow draft").addHelpText("after",`
202
- This is not a simulated dry run. Connector actions may change external systems.`).argument("<key>","workflow key").option("--input <json>","JSON test input (visible in process arguments)").option("--input-file <path>","read JSON test input from a file, or - for stdin").option("--wait","wait for the test run to finish",!1).action(async(t,n,W)=>{let A=w(W),$=await(await Ui(W,f,A)).test({input:await dl(n,f),key:t,wait:n.wait??!1});A.result($.value,$.human)}),l.command("publish").description("Publish one exact workflow revision").argument("<key>","workflow key").option("--revision <revision-id>","revision to publish; defaults to the locked latest revision").option("--yes","confirm the production change",!1).action(async(t,n,W)=>{let A=w(W);if(!await _n({command:W,dependencies:f,message:`Publish workflow "${t}" to production?`,yes:n.yes??!1})){let k=sn();A.result(k.value,k.human);return}let I=await(await Ui(W,f,A)).publish({confirmed:!0,key:t,...n.revision?{revisionId:n.revision}:{}});A.result(I.value,I.human)}),l.command("archive").description("Archive one workflow without deleting its history").argument("<key>","workflow key").option("--yes","confirm the production change",!1).action(async(t,n,W)=>{let A=w(W);if(!await _n({command:W,dependencies:f,message:`Archive workflow "${t}"?`,yes:n.yes??!1})){let k=sn();A.result(k.value,k.human);return}let I=await(await Ui(W,f,A)).archive({confirmed:!0,key:t});A.result(I.value,I.human)}),l.command("revisions").description("List immutable revisions for one workflow").argument("<key>","workflow key").action(async(t,n,W)=>{let A=w(W),$=await(await Ui(W,f,A)).revisions({key:t});A.result($.value,$.human)})}import{homedir as wz}from"node:os";import{posix as lz,win32 as tz}from"node:path";function wW(i={}){let f=i.env??process.env,w=i.homeDir?.trim()||f.HOME?.trim()||wz();if(!w)throw Error("The Action CLI could not determine the current user's home directory.");let l=i.platform??process.platform,t=f.XDG_CONFIG_HOME?.trim(),n=l==="win32"?tz:lz,W=l==="win32"?n.join(f.APPDATA?.trim()||n.join(w,"AppData","Roaming"),"action"):l==="darwin"?n.join(w,"Library","Application Support","action"):n.join(t||n.join(w,".config"),"action");return{configDir:W,profilesFile:n.join(W,"profiles.json")}}import{closeSync as tw,chmodSync as nz,constants as Wf,mkdirSync as Wz,openSync as _l,readFileSync as nW,renameSync as Az,unlinkSync as Ow,writeSync as vI,fsyncSync as lW,fchmodSync as hI,lstatSync as WW}from"node:fs";import{randomUUID as xI}from"node:crypto";var Iz=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/u,sl=384,jI=448,tW=1,kz=5000,$z=300000,Rz=25,uz=new Int32Array(new SharedArrayBuffer(4));class M extends Error{constructor(i){super(i);this.name="ProfileConfigError"}}function Cz(){return{currentProfile:null,profiles:Object.create(null),version:tW}}function zf(i,f){return Object.prototype.hasOwnProperty.call(i,f)?i[f]:void 0}function nw(i,f,w=500){if(typeof i!=="string"||!i.trim()||i.length>w)throw new M(`${f} must be a non-empty string.`);return i.trim()}function Sz(i,f){if(i===void 0)return;if(i===null)return null;return nw(i,f,300)}function hi(i){let f=i.trim();if(!Iz.test(f))throw new M("Profile names must start with a letter or number and contain at most 64 letters, numbers, dots, underscores, or hyphens.");return f}function Lz(i,f){let w=nw(i,f,2000),l;try{l=new URL(w)}catch{throw new M(`${f} must be a valid URL.`)}if(l.protocol!=="https:")throw new M(`${f} must use HTTPS.`);if(l.username||l.password||l.search||l.hash)throw new M(`${f} cannot contain credentials, a query, or a fragment.`);if(l.pathname!=="/")throw new M(`${f} must be an HTTPS origin without a path.`);return l.origin}function zz(i){let f=nw(i,"apiUrl",2000),w;try{w=new URL(f)}catch{throw new M("apiUrl must be a valid URL.")}let l=w.hostname==="localhost"||w.hostname==="127.0.0.1"||w.hostname==="[::1]";if(w.protocol!=="https:"&&!(w.protocol==="http:"&&l))throw new M("apiUrl must use HTTPS, except for a local loopback URL.");if(w.username||w.password||w.search||w.hash)throw new M("apiUrl cannot contain credentials, a query, or a fragment.");return w.pathname=w.pathname.replace(/\/+$/u,""),w.toString().replace(/\/$/u,"")}function lw(i,f){if(i===null)return null;if(!i||typeof i!=="object"||Array.isArray(i))throw new M(`${f} must be an object or null.`);let w=i,l=Sz(w.name,`${f}.name`);return{id:nw(w.id,`${f}.id`,300),...l!==void 0?{name:l}:{}}}function OI(i){if(!i||typeof i!=="object"||Array.isArray(i))throw new M("Each profile must be an object.");let f=i;if(!f.auth||typeof f.auth!=="object"||Array.isArray(f.auth))throw new M("profile.auth must be an object.");let w=f.auth;return{apiUrl:zz(f.apiUrl),auth:{clientId:nw(w.clientId,"profile.auth.clientId",300),issuer:Lz(w.issuer,"profile.auth.issuer")},organization:lw(f.organization,"profile.organization"),space:lw(f.space,"profile.space")}}function yz(i){let f;try{f=JSON.parse(i)}catch{throw new M("The Action CLI profile configuration is not valid JSON.")}if(!f||typeof f!=="object"||Array.isArray(f))throw new M("The Action CLI profile configuration must be an object.");let w=f;if(w.version!==tW)throw new M("The Action CLI profile configuration version is unsupported.");if(!w.profiles||typeof w.profiles!=="object"||Array.isArray(w.profiles))throw new M("profiles must be an object.");let l=Object.create(null);for(let[n,W]of Object.entries(w.profiles))l[hi(n)]=OI(W);let t=w.currentProfile===null?null:hi(nw(w.currentProfile,"currentProfile",64));if(t&&!zf(l,t))throw new M(`The current profile "${t}" does not exist.`);return{currentProfile:t,profiles:l,version:tW}}function cz(i){try{let w=WW(i);if(w.isSymbolicLink()||!w.isFile())throw new M("The profile configuration must be a regular file, not a link.")}catch(w){if(w.code==="ENOENT")return null;throw w}let f;try{f=_l(i,Wf.O_RDONLY|(Wf.O_NOFOLLOW??0))}catch(w){if(w.code==="ENOENT")return null;if(w.code==="ELOOP")throw new M("The profile configuration must not be a symbolic link.");throw w}try{return hI(f,sl),nW(f,"utf8")}finally{tw(f)}}function AW(i){Wz(i.configDir,{mode:jI,recursive:!0});let f=WW(i.configDir);if(f.isSymbolicLink()||!f.isDirectory())throw new M("The Action CLI configuration directory must be a real directory, not a link.");nz(i.configDir,jI)}function Tz(i){let f;try{f=WW(i)}catch(l){if(l.code==="ENOENT")return!0;throw l}if(f.isSymbolicLink()||!f.isFile())throw new M("The Action CLI profile lock must be a regular file.");let w={};try{w=JSON.parse(nW(i,"utf8"))}catch{}if(typeof w.pid==="number")try{return process.kill(w.pid,0),!1}catch(l){if(l.code!=="ESRCH")return!1;return Ow(i),!0}if(Date.now()-f.mtimeMs<=$z)return!1;return Ow(i),!0}function Pz(i,f){try{if(JSON.parse(nW(i,"utf8")).token===f)Ow(i)}catch(w){if(w.code!=="ENOENT")throw w}}function Kf(i,f){AW(i);let w=`${i.profilesFile}.lock`,l=Date.now()+kz,t=xI();while(!0){let n=null,W=!1;try{n=_l(w,Wf.O_CREAT|Wf.O_EXCL|Wf.O_WRONLY,sl),W=!0,vI(n,JSON.stringify({pid:process.pid,token:t})),lW(n),tw(n),n=null;break}catch(A){if(n!==null)tw(n);if(W)try{Ow(w)}catch{}if(A.code!=="EEXIST")throw A;if(Tz(w))continue;if(Date.now()>=l)throw new M("Another Action CLI process is updating the profile file.");Atomics.wait(uz,0,0,Rz)}}try{return f()}finally{Pz(w,t)}}function Qf(i,f){AW(i);let w=`${i.profilesFile}.${process.pid}.${xI()}.tmp`,l=null;try{l=_l(w,Wf.O_CREAT|Wf.O_EXCL|Wf.O_WRONLY,sl);let t=`${JSON.stringify(f,null,2)}
203
- `;if(vI(l,t,void 0,"utf8"),hI(l,sl),lW(l),tw(l),l=null,Az(w,i.profilesFile),process.platform!=="win32"){let n=_l(i.configDir,Wf.O_RDONLY);try{lW(n)}finally{tw(n)}}}catch(t){if(l!==null)tw(l);try{Ow(w)}catch{}throw t}}function Lf(i,f){return{name:i,apiUrl:f.apiUrl,auth:{...f.auth},organization:f.organization?{...f.organization}:null,space:f.space?{...f.space}:null}}class pl{paths;constructor(i=wW()){this.paths=i}loadDocument(){AW(this.paths);let i=cz(this.paths.profilesFile);return i===null?Cz():yz(i)}list(){let i=this.loadDocument();return Object.entries(i.profiles).sort(([f],[w])=>f.localeCompare(w)).map(([f,w])=>Lf(f,w))}currentName(){return this.loadDocument().currentProfile}get(i){let f=this.loadDocument(),w=i?hi(i):f.currentProfile;if(!w)throw new M("No Action CLI profile is selected.");let l=zf(f.profiles,w);if(!l)throw new M(`Action CLI profile "${w}" does not exist.`);return Lf(w,l)}upsert(i,f,w=!1){let l=hi(i),t=OI(f);if(t.space&&!t.organization)throw new M("A space cannot be selected without an organization.");return Kf(this.paths,()=>{let n=this.loadDocument();if(n.profiles[l]=t,w||!n.currentProfile)n.currentProfile=l;return Qf(this.paths,n),Lf(l,t)})}use(i){let f=hi(i);return Kf(this.paths,()=>{let w=this.loadDocument(),l=zf(w.profiles,f);if(!l)throw new M(`Action CLI profile "${f}" does not exist.`);return w.currentProfile=f,Qf(this.paths,w),Lf(f,l)})}remove(i){let f=hi(i);Kf(this.paths,()=>{let w=this.loadDocument();if(!zf(w.profiles,f))throw new M(`Action CLI profile "${f}" does not exist.`);if(delete w.profiles[f],w.currentProfile===f)w.currentProfile=Object.keys(w.profiles).sort()[0]??null;Qf(this.paths,w)})}selectOrganization(i,f){let w=hi(i),l=lw(f,"organization");return Kf(this.paths,()=>{let t=this.loadDocument(),n=zf(t.profiles,w);if(!n)throw new M(`Action CLI profile "${w}" does not exist.`);return n.organization=l,n.space=null,Qf(this.paths,t),Lf(w,n)})}selectSpace(i,f){let w=hi(i),l=lw(f,"space");return Kf(this.paths,()=>{let t=this.loadDocument(),n=zf(t.profiles,w);if(!n)throw new M(`Action CLI profile "${w}" does not exist.`);if(!n.organization)throw new M("Select an organization before selecting a space.");return n.space=l,Qf(this.paths,t),Lf(w,n)})}selectContext(i,f,w){let l=hi(i),t=lw(f,"organization"),n=lw(w,"space");return Kf(this.paths,()=>{let W=this.loadDocument(),A=zf(W.profiles,l);if(!A)throw new M(`Action CLI profile "${l}" does not exist.`);return A.organization=t,A.space=n,Qf(this.paths,W),Lf(l,A)})}clearContext(i){let f=hi(i);return Kf(this.paths,()=>{let w=this.loadDocument(),l=zf(w.profiles,f);if(!l)throw new M(`Action CLI profile "${f}" does not exist.`);return l.organization=null,l.space=null,Qf(this.paths,w),Lf(f,l)})}}function el(i,f){i.write(f.endsWith(`
204
- `)?f:`${f}
205
- `)}function it(i){let f=i.stdout??process.stdout,w=i.stderr??process.stderr;return{json:i.json,error(l){let t={error:{code:l.code,message:l.message,...l.details!==void 0?{details:l.details}:{}}};el(w,i.json?JSON.stringify(t):`${l.code}: ${l.message}`)},info(l){if(!i.json)el(w,l)},result(l,t){el(f,i.json?JSON.stringify(l):typeof t==="string"?t:t())},stream(l,t,n){el(f,n?JSON.stringify(l):t)}}}import{createHash as Ez}from"node:crypto";class aw extends Error{constructor(i){super(i);this.name="NonCanonicalJsonValueError"}}function ii(i,f){return i<f?-1:i>f?1:0}function IW(i,f){if(i===null||typeof i==="string"||typeof i==="boolean")return i;if(typeof i==="number"){if(!Number.isFinite(i))throw new aw("Canonical JSON does not support non-finite numbers.");return i}if(typeof i!=="object")throw new aw(`Canonical JSON does not support ${typeof i} values.`);if(f.has(i))throw new aw("Canonical JSON does not support cyclic values.");f.add(i);try{if(Array.isArray(i))return i.map((l)=>IW(l,f));let w=Object.getPrototypeOf(i);if(w!==Object.prototype&&w!==null)throw new aw("Canonical JSON requires plain objects.");return Object.fromEntries(Object.entries(i).sort(([l],[t])=>ii(l,t)).map(([l,t])=>[l,IW(t,f)]))}finally{f.delete(i)}}function ui(i){return`${JSON.stringify(IW(i,new Set),null,2)}
206
- `}function _i(i){let f=i.replace(/\r\n?/gu,`
207
- `);return f.endsWith(`
208
- `)?f:`${f}
209
- `}function Bf(i){return Ez("sha256").update(i).digest("hex")}function ft(i){return Bf(_i(i))}function wt(i,f){return Bf(ui({source:_i(f),workflow:i}))}class lt{diff(i,f,w={}){let l;if(typeof w==="function")l=w,w={};else if("callback"in w)l=w.callback;let t=this.castInput(i,w),n=this.castInput(f,w),W=this.removeEmpty(this.tokenize(t,w)),A=this.removeEmpty(this.tokenize(n,w));return this.diffWithOptionsObj(W,A,w,l)}diffWithOptionsObj(i,f,w,l){var t;let n=(u)=>{if(u=this.postProcess(u,w),l){setTimeout(function(){l(u)},0);return}else return u},W=f.length,A=i.length,$=1,I=W+A;if(w.maxEditLength!=null)I=Math.min(I,w.maxEditLength);let k=(t=w.timeout)!==null&&t!==void 0?t:1/0,R=Date.now()+k,C=[{oldPos:-1,lastComponent:void 0}],L=this.extractCommon(C[0],f,i,0,w);if(C[0].oldPos+1>=A&&L+1>=W)return n(this.buildValues(C[0].lastComponent,f,i));let z=-1/0,y=1/0,T=()=>{for(let u=Math.max(z,-$);u<=Math.min(y,$);u+=2){let S,c=C[u-1],P=C[u+1];if(c)C[u-1]=void 0;let E=!1;if(P){let Ai=P.oldPos-u;E=P&&0<=Ai&&Ai<W}let fi=c&&c.oldPos+1<A;if(!E&&!fi){C[u]=void 0;continue}if(!fi||E&&c.oldPos<P.oldPos)S=this.addToPath(P,!0,!1,0,w);else S=this.addToPath(c,!1,!0,1,w);if(L=this.extractCommon(S,f,i,u,w),S.oldPos+1>=A&&L+1>=W)return n(this.buildValues(S.lastComponent,f,i))||!0;else{if(C[u]=S,S.oldPos+1>=A)y=Math.min(y,u-1);if(L+1>=W)z=Math.max(z,u+1)}}$++};if(l)(function u(){setTimeout(function(){if($>I||Date.now()>R)return l(void 0);if(!T())u()},0)})();else while($<=I&&Date.now()<=R){let u=T();if(u)return u}}addToPath(i,f,w,l,t){let n=i.lastComponent;if(n&&!t.oneChangePerToken&&n.added===f&&n.removed===w)return{oldPos:i.oldPos+l,lastComponent:{count:n.count+1,added:f,removed:w,previousComponent:n.previousComponent}};else return{oldPos:i.oldPos+l,lastComponent:{count:1,added:f,removed:w,previousComponent:n}}}extractCommon(i,f,w,l,t){let n=f.length,W=w.length,A=i.oldPos,$=A-l,I=0;while($+1<n&&A+1<W&&this.equals(w[A+1],f[$+1],t))if($++,A++,I++,t.oneChangePerToken)i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1};if(I&&!t.oneChangePerToken)i.lastComponent={count:I,previousComponent:i.lastComponent,added:!1,removed:!1};return i.oldPos=A,$}equals(i,f,w){if(w.comparator)return w.comparator(i,f);else return i===f||!!w.ignoreCase&&i.toLowerCase()===f.toLowerCase()}removeEmpty(i){let f=[];for(let w=0;w<i.length;w++)if(i[w])f.push(i[w]);return f}castInput(i,f){return i}tokenize(i,f){return Array.from(i)}join(i){return i.join("")}postProcess(i,f){return i}get useLongestToken(){return!1}buildValues(i,f,w){let l=[],t;while(i)l.push(i),t=i.previousComponent,delete i.previousComponent,i=t;l.reverse();let n=l.length,W=0,A=0,$=0;for(;W<n;W++){let I=l[W];if(!I.removed){if(!I.added&&this.useLongestToken){let k=f.slice(A,A+I.count);k=k.map(function(R,C){let L=w[$+C];return L.length>R.length?L:R}),I.value=this.join(k)}else I.value=this.join(f.slice(A,A+I.count));if(A+=I.count,!I.added)$+=I.count}else I.value=this.join(w.slice($,$+I.count)),$+=I.count}return l}}class aI extends lt{constructor(){super(...arguments);this.tokenize=Nz}equals(i,f,w){if(w.ignoreWhitespace){if(!w.newlineIsToken||!i.includes(`
210
- `))i=i.trim();if(!w.newlineIsToken||!f.includes(`
211
- `))f=f.trim()}else if(w.ignoreNewlineAtEof&&!w.newlineIsToken){if(i.endsWith(`
212
- `))i=i.slice(0,-1);if(f.endsWith(`
213
- `))f=f.slice(0,-1)}return super.equals(i,f,w)}}var oz=new aI;function kW(i,f,w){return oz.diff(i,f,w)}function Nz(i,f){if(f.stripTrailingCr)i=i.replace(/\r\n/g,`
214
- `);let w=[],l=i.split(/(\n|\r\n)/);if(!l[l.length-1])l.pop();for(let t=0;t<l.length;t++){let n=l[t];if(t%2&&!f.newlineIsToken)w[w.length-1]+=n;else w.push(n)}return w}var mI={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function $W(i,f,w,l,t,n,W){let A;if(!W)A={};else if(typeof W==="function")A={callback:W};else A=W;if(typeof A.context>"u")A.context=4;let $=A.context;if(A.newlineIsToken)throw Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!A.callback)return I(kW(w,l,A));else{let{callback:k}=A;kW(w,l,Object.assign(Object.assign({},A),{callback:(R)=>{let C=I(R);k(C)}}))}function I(k){if(!k)return;k.push({value:"",lines:[]});function R(S){return S.map(function(c){return" "+c})}let C=[],L=0,z=0,y=[],T=1,u=1;for(let S=0;S<k.length;S++){let c=k[S],P=c.lines||Dz(c.value);if(c.lines=P,c.added||c.removed){if(!L){let E=k[S-1];if(L=T,z=u,E)y=$>0?R(E.lines.slice(-$)):[],L-=y.length,z-=y.length}for(let E of P)y.push((c.added?"+":"-")+E);if(c.added)u+=P.length;else T+=P.length}else{if(L)if(P.length<=$*2&&S<k.length-2)for(let E of R(P))y.push(E);else{let E=Math.min(P.length,$);for(let Ai of R(P.slice(0,E)))y.push(Ai);let fi={oldStart:L,oldLines:T-L+E,newStart:z,newLines:u-z+E,lines:y};C.push(fi),L=0,z=0,y=[]}T+=P.length,u+=P.length}}for(let S of C)for(let c=0;c<S.lines.length;c++)if(S.lines[c].endsWith(`
215
- `))S.lines[c]=S.lines[c].slice(0,-1);else S.lines.splice(c+1,0,"\"),c++;return{oldFileName:i,newFileName:f,oldHeader:t,newHeader:n,hunks:C}}}function tt(i,f){if(!f)f=mI;if(Array.isArray(i)){if(i.length>1&&!f.includeFileHeaders)throw Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return i.map((l)=>tt(l,f)).join(`
216
- `)}let w=[];if(f.includeIndex&&i.oldFileName==i.newFileName)w.push("Index: "+i.oldFileName);if(f.includeUnderline)w.push("===================================================================");if(f.includeFileHeaders)w.push("--- "+i.oldFileName+(typeof i.oldHeader>"u"?"":"\t"+i.oldHeader)),w.push("+++ "+i.newFileName+(typeof i.newHeader>"u"?"":"\t"+i.newHeader));for(let l=0;l<i.hunks.length;l++){let t=i.hunks[l];if(t.oldLines===0)t.oldStart-=1;if(t.newLines===0)t.newStart-=1;w.push("@@ -"+t.oldStart+","+t.oldLines+" +"+t.newStart+","+t.newLines+" @@");for(let n of t.lines)w.push(n)}return w.join(`
199
+ `;class kr extends Error{constructor(e="No supported secure operating-system credential store is available."){super(e);this.name="CredentialStoreUnavailableError"}}class ee extends Error{constructor(e){super(e);this.name="CredentialStoreError"}}var Is=async({args:e,command:r,env:i,stdin:n})=>{return await new Promise((t,a)=>{let o=fI(r,e,{env:i?{...process.env,...i}:process.env,shell:!1,stdio:["pipe","pipe","pipe"],windowsHide:!0}),s=[],u=[];if(o.stdout.on("data",(l)=>s.push(l)),o.stderr.on("data",(l)=>u.push(l)),o.on("error",(l)=>a(l)),o.on("close",(l)=>t({code:l??1,stderr:Buffer.concat(u).toString("utf8"),stdout:Buffer.concat(s).toString("utf8")})),n!==void 0)o.stdin.end(n);else o.stdin.end()})};function qs(e){return`profile:${e}`}class an{runner;service;constructor(e,r){this.runner=e,this.service=r}async invoke(e){try{return await this.runner(e)}catch(r){if(r.code==="ENOENT")throw new kr;throw new ee("The secure credential store command could not be started.")}}}class Nt extends an{invocation(e,r){return{args:["-l","JavaScript","-e",pI],command:"/usr/bin/osascript",env:{ACTION_CLI_KEYCHAIN_ACCOUNT:qs(e),ACTION_CLI_KEYCHAIN_OPERATION:r,ACTION_CLI_KEYCHAIN_SERVICE:this.service}}}async get(e){let r=await this.invoke(this.invocation(e,"get"));if(r.code===0)return r.stdout;if(r.code===44)return null;throw new ee("The macOS Keychain could not read Action CLI credentials.")}async set(e,r){if((await this.invoke({...this.invocation(e,"set"),stdin:r})).code!==0)throw new ee("The macOS Keychain could not store Action CLI credentials.")}async delete(e){let r=await this.invoke(this.invocation(e,"delete"));if(r.code!==0&&r.code!==44)throw new ee("The macOS Keychain could not delete Action CLI credentials.")}}class Dt extends an{attributes(e){return["service",this.service,"profile",e]}async get(e){let r=await this.invoke({args:["lookup",...this.attributes(e)],command:"secret-tool"});if(r.code===0)return r.stdout.replace(/\r?\n$/u,"");if(r.code===1&&!r.stderr.trim())return null;throw new ee("The Linux Secret Service could not read Action CLI credentials.")}async set(e,r){if((await this.invoke({args:["store","--label=Action CLI",...this.attributes(e)],command:"secret-tool",stdin:`${r}
200
+ `})).code!==0)throw new ee("The Linux Secret Service could not store Action CLI credentials.")}async delete(e){let r=await this.invoke({args:["clear",...this.attributes(e)],command:"secret-tool"});if(r.code!==0&&!(r.code===1&&!r.stderr.trim()))throw new ee("The Linux Secret Service could not delete Action CLI credentials.")}}class jt extends an{invocation(e,r){return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",II],command:"powershell.exe",env:{ACTION_CLI_KEYCHAIN_ACCOUNT:qs(e),ACTION_CLI_KEYCHAIN_OPERATION:r,ACTION_CLI_KEYCHAIN_SERVICE:this.service}}}async get(e){let r=await this.invoke(this.invocation(e,"get"));if(r.code===0)return r.stdout;if(r.code===44)return null;throw new ee("Windows Credential Manager could not read Action CLI credentials.")}async set(e,r){if((await this.invoke({...this.invocation(e,"set"),stdin:r})).code!==0)throw new ee("Windows Credential Manager could not store Action CLI credentials.")}async delete(e){let r=await this.invoke(this.invocation(e,"delete"));if(r.code!==0&&r.code!==44)throw new ee("Windows Credential Manager could not delete Action CLI credentials.")}}function Gt(e={}){let r=e.platform??process.platform,i=e.runner??Is,n=e.service?.trim()||mI;if(r==="darwin")return new Nt(i,n);if(r==="linux")return new Dt(i,n);if(r==="win32")return new jt(i,n);throw new kr(`The Action CLI does not support a secure credential store on ${r}.`)}var qI="urn:ietf:params:oauth:grant-type:device_code",hI=5,wI=5;class ue extends Error{code;constructor(e,r){super(r);this.name="DeviceFlowError",this.code=e}}function br(e){return typeof e==="string"&&e.trim()?e.trim():null}async function hs(e){try{let r=await e.json();return r&&typeof r==="object"&&!Array.isArray(r)?r:{}}catch{return{}}}async function ws(e){let r=e.fetch??fetch,i;try{i=await Zr({fetch:r,init:{body:new URLSearchParams({client_id:e.clientId}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...e.now?{now:e.now}:{},...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.deviceAuthorizationUrl??ii(e.issuer,"/authorize/device")})}catch{throw new ue("request_failed","Device authorization could not be started.")}let n=await hs(i);if(!i.ok)throw new ue("request_failed","Device authorization could not be started.");let t=br(n.device_code),a=br(n.user_code),o=br(n.verification_uri),s=n.expires_in,u=n.interval??hI;if(!t||!a||!o||typeof s!=="number"||!Number.isFinite(s)||s<=0||typeof u!=="number"||!Number.isFinite(u)||u<=0)throw new ue("invalid_response","WorkOS returned invalid device authorization data.");return{deviceCode:t,expiresInSeconds:s,intervalSeconds:u,userCode:a,verificationUri:o,verificationUriComplete:br(n.verification_uri_complete)}}async function ys(e){let r=e.fetch??fetch,i=e.now??Date.now,n=e.sleep??((o)=>new Promise((s)=>setTimeout(s,o))),t=i()+e.authorization.expiresInSeconds*1000,a=e.authorization.intervalSeconds;while(i()<t){if(await n(a*1000),i()>=t)break;let o;try{o=await Zr({deadline:t,fetch:r,init:{body:new URLSearchParams({client_id:e.clientId,device_code:e.authorization.deviceCode,grant_type:qI}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},now:i,...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.tokenUrl??ii(e.issuer,"/authenticate")})}catch{continue}let s=await hs(o);if(o.ok){let u=br(s.access_token),l=br(s.refresh_token);if(!u||!l)throw new ue("invalid_response","WorkOS returned an incomplete CLI session.");try{return rn({accessToken:u,apiOrigin:e.apiOrigin,clientId:e.clientId,expiresInSeconds:typeof s.expires_in==="number"?s.expires_in:null,issuer:e.issuer,now:i(),organizationId:typeof s.organization_id==="string"?s.organization_id:null,refreshToken:l})}catch{throw new ue("invalid_response","WorkOS returned an invalid CLI session.")}}if(ss(o))continue;switch(s.error){case"authorization_pending":break;case"slow_down":a+=wI;break;case"access_denied":throw new ue("access_denied","Device authorization was denied.");case"expired_token":case"invalid_grant":throw new ue("authorization_expired","Device authorization expired.");default:throw new ue("request_failed","Device authorization polling failed.")}}throw new ue("authorization_expired","Device authorization expired.")}async function Ut(e){return await Qr(e.lockDirectory,e.profileName,async()=>{let r=await ws({clientId:e.clientId,...e.deviceAuthorizationUrl?{deviceAuthorizationUrl:e.deviceAuthorizationUrl}:{},...e.fetch?{fetch:e.fetch}:{},issuer:e.issuer,...e.now?{now:e.now}:{}});if(await e.onVerification(r),e.openBrowser)await Promise.resolve(e.openBrowser(r.verificationUriComplete??r.verificationUri)).catch(()=>{return});let i=await ys({apiOrigin:e.apiOrigin,authorization:r,clientId:e.clientId,...e.fetch?{fetch:e.fetch}:{},issuer:e.issuer,...e.now?{now:e.now}:{},...e.sleep?{sleep:e.sleep}:{},...e.tokenUrl?{tokenUrl:e.tokenUrl}:{}});if(e.finalizeSession)i=await e.finalizeSession(i);return await e.credentialStore.set(e.profileName,nn(i)),i})}function ar(e){return e instanceof ye||e instanceof rr||e instanceof ee||e instanceof kr||e instanceof se||e instanceof Le||e instanceof U||e instanceof ue}import{spawn as AI}from"node:child_process";import{access as gI}from"node:fs/promises";import{constants as ks}from"node:fs";import{dirname as bs,join as ni,resolve as CI}from"node:path";import{fileURLToPath as kI}from"node:url";var As=new AbortController,Je=As.signal;function Jt(e){if(e.code!=="EPIPE")throw e;As.abort()}var H="0.2.1";var gs=[{id:"access.archivePolicy",group:"access-policies",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.archiveProfile",group:"access-profiles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.archiveRole",group:"access-roles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createPolicy",group:"access-policies",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createProfile",group:"access-profiles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createRole",group:"access-roles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getPolicy",group:"access-policies",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getProfile",group:"access-profiles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getRole",group:"access-roles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listPolicies",group:"access-policies",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listProfiles",group:"access-profiles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listRoles",group:"access-roles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"connectorInstanceId",in:"query",required:!1},{name:"connectorSlug",in:"query",required:!1},{name:"provisioningMethodType",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishPolicy",group:"access-policies",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishProfile",group:"access-profiles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishRole",group:"access-roles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updatePolicy",group:"access-policies",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updateProfile",group:"access-profiles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updateRole",group:"access-roles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.cancelApplicationReconnect",group:"applications",command:"cancel-application-reconnect",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect/cancel",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.confirmApplication",group:"applications",command:"confirm-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/confirm",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.connectApplication",group:"applications",command:"connect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}/connect",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"slug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.createCustomIntegration",group:"applications",command:"create-custom-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.disconnectApplication",group:"applications",command:"disconnect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.disconnectIntegration",group:"applications",command:"disconnect-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.duplicateApplication",group:"applications",command:"duplicate-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/duplicate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplication",group:"applications",command:"get-application",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"providerSyncStatus",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationCatalog",group:"applications",command:"get-application-catalog",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"slug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationIssueSyncSettings",group:"applications",command:"get-application-issue-sync-settings",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationJiraForgeStatus",group:"applications",command:"get-application-jira-forge-status",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/jira-forge",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationAutomations",group:"applications",command:"list-application-automations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationAvailability",group:"applications",command:"list-application-availability",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/availability",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"slug",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationGithubRepositories",group:"applications",command:"list-application-github-repositories",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/github/repositories",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationGroups",group:"applications",command:"list-application-groups",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationIssueTeams",group:"applications",command:"list-application-issue-teams",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-teams",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplications",group:"applications",command:"list-applications",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"attention",in:"query",required:!1},{name:"connectorInstanceId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationSyncRuns",group:"applications",command:"list-application-sync-runs",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync-runs",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"event",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationTriggerFieldOptions",group:"applications",command:"list-application-trigger-field-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/trigger-field-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"field",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationWorkflows",group:"applications",command:"list-application-workflows",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/workflows",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"visibility",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listConnectedApplications",group:"applications",command:"list-connected-applications",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/connected",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"slug",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listIntegrations",group:"applications",command:"list-integrations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"alias",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"includeDeleted",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"nangoConnectionId",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"source",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listIntegrationTools",group:"applications",command:"list-integration-tools",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/tools",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.provisionApplicationWebhook",group:"applications",command:"provision-application-webhook",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/okta-webhook",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.reconnectApplication",group:"applications",command:"reconnect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.renameIntegration",group:"applications",command:"rename-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setApplicationActionMode",group:"applications",command:"set-application-action-mode",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/action-mode",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setApplicationEnabled",group:"applications",command:"set-application-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/enabled",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setIntegrationEnabled",group:"applications",command:"set-integration-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/enabled",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.triggerApplicationSync",group:"applications",command:"trigger-application-sync",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.updateApplication",group:"applications",command:"update-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.updateApplicationIssueSyncSettings",group:"applications",command:"update-application-issue-sync-settings",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.archive",group:"assignment-groups",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.create",group:"assignment-groups",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.get",group:"assignment-groups",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.getMembership",group:"assignment-groups",command:"get-membership",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/membership",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.getSettings",group:"assignment-groups",command:"get-settings",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/settings",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.list",group:"assignment-groups",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"kind",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"offset",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"routableOnly",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.listMembers",group:"assignment-groups",command:"list-members",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/members",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"access",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.setImportEnabled",group:"assignment-groups",command:"set-import-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/connections/{connectorInstanceId}/import",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.setImportSelection",group:"assignment-groups",command:"set-import-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/import-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.unarchive",group:"assignment-groups",command:"unarchive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/unarchive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.update",group:"assignment-groups",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.create",group:"assignment-rules",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.list",group:"assignment-rules",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.remove",group:"assignment-rules",command:"remove",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"ruleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.reorder",group:"assignment-rules",command:"reorder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/reorder",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.update",group:"assignment-rules",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"ruleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.approveEditProposal",group:"automations",command:"approve-edit-proposal",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/approve",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.archive",group:"automations",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.archived",group:"automations",command:"archived",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/archived",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.copilot",group:"automations",command:"copilot",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/copilot",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.create",group:"automations",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createTrigger",group:"automations",command:"create-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createVersion",group:"automations",command:"create-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createWorkflowTrigger",group:"automations",command:"create-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.deleteTrigger",group:"automations",command:"delete-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.deleteWorkflowTrigger",group:"automations",command:"delete-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.disableTrigger",group:"automations",command:"disable-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/disable",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.get",group:"automations",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.getEditProposal",group:"automations",command:"get-edit-proposal",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.helpDesk",group:"automations",command:"help-desk",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/help-desk",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.list",group:"automations",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listAutomationTriggers",group:"automations",command:"list-automation-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listEditProposals",group:"automations",command:"list-edit-proposals",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"threadId",in:"query",required:!0},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listTriggers",group:"automations",command:"list-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listVersions",group:"automations",command:"list-versions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listWorkflowTriggers",group:"automations",command:"list-workflow-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.managementStats",group:"automations",command:"management-stats",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/management-stats",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.rejectEditProposal",group:"automations",command:"reject-edit-proposal",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/reject",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.restore",group:"automations",command:"restore",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/restore",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.revealWebhookSecret",group:"automations",command:"reveal-webhook-secret",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/webhook-secret",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.revealWorkflowWebhookSecret",group:"automations",command:"reveal-workflow-webhook-secret",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}/webhook-secret",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.spaceStats",group:"automations",command:"space-stats",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/space-stats",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.summaries",group:"automations",command:"summaries",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/summaries",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.update",group:"automations",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.updateTrigger",group:"automations",command:"update-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.updateWorkflowTrigger",group:"automations",command:"update-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveCase",group:"cases",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveInboxApproval",group:"cases",command:"archive-inbox-approval",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveInboxCase",group:"cases",command:"archive-inbox-case",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createCase",group:"cases",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createCategory",group:"cases",command:"create-category",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-categories",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createLabel",group:"cases",command:"create-label",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-labels",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.deleteAttachment",group:"cases",command:"delete-attachment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"attachmentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.downloadAttachment",group:"cases",command:"download-attachment",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}/download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"attachmentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.getCase",group:"cases",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"space",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.getSubscription",group:"cases",command:"get-subscription",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.linkRelation",group:"cases",command:"link-relation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.linkThread",group:"cases",command:"link-thread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listActivity",group:"cases",command:"list-activity",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/activity",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listAssigneeCandidates",group:"cases",command:"list-assignee-candidates",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-assignee-candidates",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listAttachments",group:"cases",command:"list-attachments",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCases",group:"cases",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCasesGrouped",group:"cases",command:"list-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCategories",group:"cases",command:"list-categories",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-categories",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listInboxCaseGroupOptions",group:"cases",command:"list-inbox-case-group-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/group-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"inboxState",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"presetAssigneeMode",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"groupQ",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listInboxCases",group:"cases",command:"list-inbox-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"inboxState",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"presetAssigneeMode",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listLabels",group:"cases",command:"list-labels",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/labels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCaseFilterOptions",group:"cases",command:"list-my-case-filter-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine/filter-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"kind",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCases",group:"cases",command:"list-my-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCasesGrouped",group:"cases",command:"list-my-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listReferenceData",group:"cases",command:"list-reference-data",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-reference-data",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"kind",in:"query",required:!0},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSourceLinks",group:"cases",command:"list-source-links",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/source-links",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCaseFilterOptions",group:"cases",command:"list-subscribed-case-filter-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/filter-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"kind",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCases",group:"cases",command:"list-subscribed-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCasesGrouped",group:"cases",command:"list-subscribed-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listThreads",group:"cases",command:"list-threads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.markRead",group:"cases",command:"mark-read",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.markUnread",group:"cases",command:"mark-unread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/unread",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readInboxApproval",group:"cases",command:"read-inbox-approval",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readInboxCase",group:"cases",command:"read-inbox-case",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.reopenCase",group:"cases",command:"reopen",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/reopen",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.spawnThread",group:"cases",command:"spawn-thread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads/spawn",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.subscribe",group:"cases",command:"subscribe",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.transfer",group:"cases",command:"transfer",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/transfer",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.unlinkRelation",group:"cases",command:"unlink-relation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations/{relationId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"relationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.unsubscribe",group:"cases",command:"unsubscribe",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.updateCase",group:"cases",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.uploadAttachment",group:"cases",command:"upload-attachment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.createAdminPortalLink",group:"directory",command:"create-admin-portal-link",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/admin-portal-link",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.list",group:"directory",command:"list",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/directory",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"groupMembersLimit",in:"query",required:!1},{name:"groupsCursor",in:"query",required:!1},{name:"groupsLimit",in:"query",required:!1},{name:"userId",in:"query",required:!1},{name:"usersCursor",in:"query",required:!1},{name:"usersLimit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.listGroupMembers",group:"directory",command:"list-group-members",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/groups/{groupId}/members",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"groupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.sync",group:"directory",command:"sync",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/sync",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"identity.getCurrentPrincipal",group:"identity",command:"get-current-principal",mutation:!1,idempotent:!1,path:"/v1/me",method:"get",binaryResponse:!1,parameters:[{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"identity.listSpaces",group:"identity",command:"list-spaces",mutation:!1,idempotent:!1,path:"/v1/spaces",method:"get",binaryResponse:!1,parameters:[{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveFolder",group:"knowledge",command:"archive-folder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveSubfolder",group:"knowledge",command:"archive-subfolder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"folderId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveUpload",group:"knowledge",command:"archive-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.browseGithubKnowledgeRepoFile",group:"knowledge",command:"browse-github-knowledge-repo-file",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/file",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"path",in:"query",required:!0},{name:"repo",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.browseGithubKnowledgeRepoTree",group:"knowledge",command:"browse-github-knowledge-repo-tree",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/tree",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"repo",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateConfluenceConnectorDocuments",group:"knowledge",command:"bulk-update-confluence-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateGoogleDriveConnectorDocuments",group:"knowledge",command:"bulk-update-google-drive-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateNotionConnectorDocuments",group:"knowledge",command:"bulk-update-notion-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateSharePointConnectorDocuments",group:"knowledge",command:"bulk-update-share-point-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.createUpload",group:"knowledge",command:"create-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.deleteConnectorKnowledge",group:"knowledge",command:"delete-connector-knowledge",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/knowledge",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listConfluenceConnectorDocuments",group:"knowledge",command:"list-confluence-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listFolders",group:"knowledge",command:"list-folders",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGithubConnectorRepos",group:"knowledge",command:"list-github-connector-repos",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGithubKnowledgeRepos",group:"knowledge",command:"list-github-knowledge-repos",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGoogleDriveConnectorDocuments",group:"knowledge",command:"list-google-drive-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGoogleDriveConnectorDrives",group:"knowledge",command:"list-google-drive-connector-drives",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/drives",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listNotionConnectorDocuments",group:"knowledge",command:"list-notion-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listOrganizationDocuments",group:"knowledge",command:"list-organization-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"provider",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listOrganizationKnowledgeProviderCounts",group:"knowledge",command:"list-organization-knowledge-provider-counts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/provider-counts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSharePointConnectorDocuments",group:"knowledge",command:"list-share-point-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSharePointConnectorSites",group:"knowledge",command:"list-share-point-connector-sites",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-sites",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSlackConnectorChannels",group:"knowledge",command:"list-slack-connector-channels",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listUploads",group:"knowledge",command:"list-uploads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"folder",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.readOrganizationUpload",group:"knowledge",command:"read-organization-upload",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/uploads/{documentId}/content",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.readUpload",group:"knowledge",command:"read-upload",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/content",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.reindexUpload",group:"knowledge",command:"reindex-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/reindex",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.renameFolder",group:"knowledge",command:"rename-folder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.renameSubfolder",group:"knowledge",command:"rename-subfolder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"folderId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.replaceGithubKnowledgeRepos",group:"knowledge",command:"replace-github-knowledge-repos",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.searchNotionConnectorDocuments",group:"knowledge",command:"search-notion-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/search",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncConfluenceConnectorDocument",group:"knowledge",command:"sync-confluence-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncGoogleDriveConnectorDocument",group:"knowledge",command:"sync-google-drive-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncNotionConnectorDocument",group:"knowledge",command:"sync-notion-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.triggerGithubKnowledgeSync",group:"knowledge",command:"trigger-github-knowledge-sync",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateConfluenceConnectorDocument",group:"knowledge",command:"update-confluence-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateFolderDocuments",group:"knowledge",command:"update-folder-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGithubConnectorRepos",group:"knowledge",command:"update-github-connector-repos",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGoogleDriveConnectorDocument",group:"knowledge",command:"update-google-drive-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGoogleDriveConnectorSelection",group:"knowledge",command:"update-google-drive-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateNotionConnectorDocument",group:"knowledge",command:"update-notion-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateNotionConnectorSelection",group:"knowledge",command:"update-notion-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSharePointConnectorDocument",group:"knowledge",command:"update-share-point-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSharePointConnectorSelection",group:"knowledge",command:"update-share-point-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorAvailability",group:"knowledge",command:"update-slack-connector-availability",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/availability",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorBackfill",group:"knowledge",command:"update-slack-connector-backfill",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-backfill",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorChannelAvailability",group:"knowledge",command:"update-slack-connector-channel-availability",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channel-availability",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorSelection",group:"knowledge",command:"update-slack-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateUpload",group:"knowledge",command:"update-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.acceptQuarantine",group:"organization-email",command:"accept-quarantine",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/accept",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"eventId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.deleteSuppression",group:"organization-email",command:"delete-suppression",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/suppressions/{suppressionId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"suppressionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.disableInstallation",group:"organization-email",command:"disable-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.enableInstallation",group:"organization-email",command:"enable-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.getInstallation",group:"organization-email",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.listQuarantine",group:"organization-email",command:"list-quarantine",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.listSuppressions",group:"organization-email",command:"list-suppressions",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/suppressions",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.rejectQuarantine",group:"organization-email",command:"reject-quarantine",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/reject",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"eventId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.confirmInstall",group:"organization-github",command:"confirm-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation/confirm",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.disconnectInstallation",group:"organization-github",command:"disconnect-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.getInstallation",group:"organization-github",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.getInstallationDetails",group:"organization-github",command:"get-installation-details",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation/details",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"repoPage",in:"query",required:!1},{name:"repoPageSize",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.startInstall",group:"organization-github",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.createChannelSettingsRoute",group:"organization-slack",command:"create-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.deleteChannelSettingsRoute",group:"organization-slack",command:"delete-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes/{routeId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"routeId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.disconnectInstallation",group:"organization-slack",command:"disconnect-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.getInstallation",group:"organization-slack",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.listChannelSettings",group:"organization-slack",command:"list-channel-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.startInstall",group:"organization-slack",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/install",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.syncChannelSettings",group:"organization-slack",command:"sync-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/sync",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.updateChannelEmojis",group:"organization-slack",command:"update-channel-emojis",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/emojis",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.updateChannelSettings",group:"organization-slack",command:"update-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.archive",group:"organization-spaces",command:"archive",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.create",group:"organization-spaces",command:"create",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.join",group:"organization-spaces",command:"join",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/join",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.list",group:"organization-spaces",command:"list",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setEscalationMessage",group:"organization-spaces",command:"set-escalation-message",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-message",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setEscalationMute",group:"organization-spaces",command:"set-escalation-mute",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-mute",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setOrganizationRequestRouting",group:"organization-spaces",command:"set-organization-request-routing",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/request-routing",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.createChannelSettingsRoute",group:"organization-teams",command:"create-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.createGraphSubscription",group:"organization-teams",command:"create-graph-subscription",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.deleteChannelSettingsRoute",group:"organization-teams",command:"delete-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes/{routeId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"routeId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.disconnectConnection",group:"organization-teams",command:"disconnect-connection",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connection",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getAppPackage",group:"organization-teams",command:"get-app-package",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/app-package/content",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getAppPackageStatus",group:"organization-teams",command:"get-app-package-status",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/app-package",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getConnection",group:"organization-teams",command:"get-connection",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connection",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.listChannelSettings",group:"organization-teams",command:"list-channel-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.renewGraphSubscriptions",group:"organization-teams",command:"renew-graph-subscriptions",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions/renew",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.startInstall",group:"organization-teams",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connect",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.updateChannelEmojis",group:"organization-teams",command:"update-channel-emojis",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/emojis",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.updateChannelSettings",group:"organization-teams",command:"update-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.createInvite",group:"organizations",command:"create-invite",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/invites",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.createMembership",group:"organizations",command:"create-membership",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.getPerson",group:"organizations",command:"get-person",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/{personId}",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"personId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.getSettings",group:"organizations",command:"get-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listGroups",group:"organizations",command:"list-groups",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/groups",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"spaceId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"identityId",in:"query",required:!1},{name:"includeMembershipLastObserved",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"sourceId",in:"query",required:!1},{name:"sourceType",in:"query",required:!1},{name:"scope",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listGroupSources",group:"organizations",command:"list-group-sources",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/group-sources",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"sourceType",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listInvites",group:"organizations",command:"list-invites",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/invites",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"role",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listMembershipLabels",group:"organizations",command:"list-membership-labels",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships/labels",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"userId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listMemberships",group:"organizations",command:"list-memberships",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listPeople",group:"organizations",command:"list-people",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"groupId",in:"query",required:!1},{name:"groupSourceId",in:"query",required:!1},{name:"groupSourceType",in:"query",required:!1},{name:"directory",in:"query",required:!1},{name:"includeTotal",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"role",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listPersonApplications",group:"organizations",command:"list-person-applications",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/{personId}/applications",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"personId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listProvisionableLinkedGroups",group:"organizations",command:"list-provisionable-linked-groups",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/provisionable-linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"scope",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listRoles",group:"organizations",command:"list-roles",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/roles",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.revokeInvite",group:"organizations",command:"revoke-invite",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/invites/{inviteId}/revoke",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"inviteId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.searchPeople",group:"organizations",command:"search-people",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/search",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"spaceId",in:"query",required:!1},{name:"includeAllDirectoryPeople",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"excludeCurrentSpace",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"membersOnly",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.updateMembership",group:"organizations",command:"update-membership",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships/{membershipId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.updateSettings",group:"organizations",command:"update-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/settings",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.archive",group:"sessions",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createOrganizationRequestSession",group:"sessions",command:"create-organization-request-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/organization-request-sessions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createOrganizationRequestSessionAndSubmit",group:"sessions",command:"create-organization-request-session-and-submit",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/organization-request-sessions/submit",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createSession",group:"sessions",command:"create-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createSessionAndSubmit",group:"sessions",command:"create-session-and-submit",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/submit",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createWorkflowSuggestionSession",group:"sessions",command:"create-workflow-suggestion-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/session-builders/workflow-suggestions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.deleteArtifact",group:"sessions",command:"delete-artifact",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.downloadArtifact",group:"sessions",command:"download-artifact",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}/download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"version",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.downloadFile",group:"sessions",command:"download-file",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"path",in:"query",required:!0},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.forceResponse",group:"sessions",command:"force-response",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages/{messageId}/respond",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"messageId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.fork",group:"sessions",command:"fork",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/fork",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.get",group:"sessions",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getArtifact",group:"sessions",command:"get-artifact",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getCase",group:"sessions",command:"get-case",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases/{caseId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getFilePreview",group:"sessions",command:"get-file-preview",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-preview",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"path",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getOrganizationRequestDestination",group:"sessions",command:"get-organization-request-destination",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/session-request-destinations/{destinationSpaceId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"destinationSpaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getRuntime",group:"sessions",command:"get-runtime",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getSubagentSnapshot",group:"sessions",command:"get-subagent-snapshot",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/subagents/{toolCallId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"toolCallId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"beforeSeq",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getWorkflowApproval",group:"sessions",command:"get-workflow-approval",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/workflow-approvals/{approvalId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"runId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.list",group:"sessions",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"excludeCustomAutomationSessions",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"purpose",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"triggeredByKind",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"createdBy",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listArtifacts",group:"sessions",command:"list-artifacts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"createdByUserId",in:"query",required:!1},{name:"createdByAutomationId",in:"query",required:!1},{name:"sessionId",in:"query",required:!1},{name:"createdAtFrom",in:"query",required:!1},{name:"createdAtTo",in:"query",required:!1},{name:"updatedAtFrom",in:"query",required:!1},{name:"updatedAtTo",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listCases",group:"sessions",command:"list-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listFileChildren",group:"sessions",command:"list-file-children",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-children",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"path",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listFiles",group:"sessions",command:"list-files",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/files",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listMessages",group:"sessions",command:"list-messages",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listOrganizationRequestDestinations",group:"sessions",command:"list-organization-request-destinations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/session-request-destinations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listParticipants",group:"sessions",command:"list-participants",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/participants",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listTasks",group:"sessions",command:"list-tasks",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/tasks",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listUploads",group:"sessions",command:"list-uploads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.muteAutomation",group:"sessions",command:"mute-automation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/mute",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.prewarmRuntime",group:"sessions",command:"prewarm-runtime",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime/prewarm",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.rename",group:"sessions",command:"rename",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.setVisibility",group:"sessions",command:"set-visibility",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/visibility",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.startBrowser",group:"sessions",command:"start-browser",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/browser",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.statusCounts",group:"sessions",command:"status-counts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/status-counts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"excludeCustomAutomationSessions",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"purpose",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"triggeredByKind",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"createdBy",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.submitMessage",group:"sessions",command:"submit-message",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.unarchive",group:"sessions",command:"unarchive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unarchive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.unmuteAutomation",group:"sessions",command:"unmute-automation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unmute",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.updateFileVisibility",group:"sessions",command:"update-file-visibility",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-visibility",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.uploadFiles",group:"sessions",command:"upload-files",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.archiveSkill",group:"skills",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.createSkill",group:"skills",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.createSkillVersion",group:"skills",command:"create-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.discardSkillDraft",group:"skills",command:"discard-draft",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/draft/discard",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.getSkill",group:"skills",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.getSkillVersion",group:"skills",command:"get-version",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"skillVersionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.listSkillAutomations",group:"skills",command:"list-automations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.listSkills",group:"skills",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.publishSkillVersion",group:"skills",command:"publish-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"skillVersionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.updateSkillTags",group:"skills",command:"update-tags",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/tags",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.archive",group:"space-access-roles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.create",group:"space-access-roles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.discard",group:"space-access-roles",command:"discard",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/discard",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.duplicate",group:"space-access-roles",command:"duplicate",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/duplicate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.get",group:"space-access-roles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.list",group:"space-access-roles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"excludeRoleId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.publish",group:"space-access-roles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.update",group:"space-access-roles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listBlockedActions",group:"space-action-grants",command:"list-blocked-actions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/blocked-actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listCatalog",group:"space-action-grants",command:"list-catalog",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listGrants",group:"space-action-grants",command:"list-grants",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listPermissions",group:"space-action-grants",command:"list-permissions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.replaceGrants",group:"space-action-grants",command:"replace-grants",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.replaceRoles",group:"space-action-grants",command:"replace-roles",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions/{actionSlug}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"actionSlug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.addGroupMembers",group:"spaces",command:"add-group-members",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/group-members",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.addMember",group:"spaces",command:"add-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.getSemanticAssignmentRouting",group:"spaces",command:"get-semantic-assignment-routing",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.leave",group:"spaces",command:"leave",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/leave",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.listMembers",group:"spaces",command:"list-members",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/members",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"accessRoleId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"eligibleForAssignment",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"roleSlug",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"userId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.removeMember",group:"spaces",command:"remove-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/{membershipId}/remove",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.setDefaultAssignment",group:"spaces",command:"set-default-assignment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/default-assignment",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.setSemanticAssignmentRouting",group:"spaces",command:"set-semantic-assignment-routing",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.updateMember",group:"spaces",command:"update-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/{membershipId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.updateProfile",group:"spaces",command:"update-profile",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/profile",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.archiveWorkflow",group:"workflows",command:"archive",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.cancelWorkflowRun",group:"workflow-runs",command:"cancel",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/cancel",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.createWorkflow",group:"workflows",command:"create",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.createWorkflowRun",group:"workflow-runs",command:"create",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflow-runs",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflow",group:"workflows",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflowRevision",group:"workflows",command:"get-revision",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflowRun",group:"workflow-runs",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowCapabilities",group:"workflow-capabilities",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-capabilities",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRevisions",group:"workflows",command:"list-revisions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRunEvents",group:"workflow-runs",command:"list-events",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/events",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"waitSeconds",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRuns",group:"workflow-runs",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"workflowId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflows",group:"workflows",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.publishWorkflowRevision",group:"workflows",command:"publish-revision",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.testWorkflowRevision",group:"workflows",command:"test-revision",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/test",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.updateWorkflow",group:"workflows",command:"update",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.validateWorkflowRevision",group:"workflows",command:"validate-revision",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/validate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.waitForWorkflowRun",group:"workflow-runs",command:"wait",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/wait",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"timeoutSeconds",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]}];var Mt=gs;function Cs(e){let r=Mt.find((i)=>i.id===e);if(!r)throw Error(`Unknown generated operation: ${e}`);return r}var Rs=67108864;class or extends Error{exitCode;envelope;constructor(e,r){super("The generated Action CLI command failed.");this.exitCode=e;this.envelope=r;this.name="GeneratedCommandError"}}async function bI(e){let r=process.platform==="win32"?"windows":process.platform;if(!["darwin","linux","windows"].includes(r)||!["arm64","x64"].includes(process.arch))throw Error("This platform has no packaged Action API binary.");let i=process.platform==="win32"?"action-api.exe":"action-api",n=`${r}-${process.arch}`,t=bs(kI(import.meta.url)),a=e?[CI(e)]:[ni(bs(process.execPath),"bin",n,i),ni(t,"bin",n,i),ni(t,"..","..","dist","bin",n,i),ni(t,"..","..","generated","target","release",i),ni(t,"..","generated","target","release",i)];for(let o of a)try{return await gI(o,process.platform==="win32"?ks.F_OK:ks.X_OK),o}catch(s){if(!["ENOENT","EACCES"].includes(s.code??""))throw s}throw Error("The generated Action API binary is missing. Build or reinstall the complete Action CLI package.")}function RI(e){let r={...e.env??process.env};for(let i of Object.keys(r))if(i.startsWith("ACTION_API_"))delete r[i];if(r.ACTION_API_TOKEN=e.token??"",r.ACTION_API_OUTPUT="json",r.ACTION_API_PAGER="",r.ACTION_API_INSECURE="0",r.ACTION_API_ALLOW_CROSS_HOST_REDIRECTS="0",r.ACTION_API_ALLOW_CROSS_HOST_PAGINATION="0",e.timeoutInSeconds!==void 0)r.ACTION_API_TIMEOUT_SECS=String(e.timeoutInSeconds);return r}async function Yt(e){let r=AbortSignal.any([Je,...e.abortSignal?[e.abortSignal]:[]]);if(r.aborted)throw new DOMException("The operation was aborted.","AbortError");let i=await bI(e.binaryPath);return await new Promise((n,t)=>{let a=AI(i,[...e.args],{cwd:e.cwd??process.cwd(),env:RI(e),shell:!1,stdio:[e.input===void 0&&!e.capture?"inherit":"pipe","pipe","pipe"],windowsHide:!0}),o="",s="",u=0,l=!1,d=()=>{a.kill("SIGTERM")},c=()=>{a.kill("SIGINT")},p=()=>{a.kill("SIGTERM")};if(r.addEventListener("abort",d,{once:!0}),r.aborted)d();process.on("SIGINT",c),process.on("SIGTERM",p);let I=()=>{r.removeEventListener("abort",d),process.off("SIGINT",c),process.off("SIGTERM",p)};if(a.stdout?.setEncoding("utf8"),a.stderr?.setEncoding("utf8"),a.stdout?.on("data",(f)=>{if(Je.aborted)return;if(e.capture)if(u+=Buffer.byteLength(f),u>Rs)l=!0,a.kill();else o+=f;else(e.stdout??process.stdout).write(f)}),a.stderr?.on("data",(f)=>{if(Je.aborted)return;if(e.capture)if(u+=Buffer.byteLength(f),u>Rs)l=!0,a.kill();else s+=f;else(e.stderr??process.stderr).write(f)}),a.on("error",()=>{I(),t(Error("Could not start the packaged Action API binary."))}),a.on("close",(f,m)=>{if(I(),r.aborted)return t(new DOMException("The operation was aborted.","AbortError"));if(l)return t(Error("The generated API response exceeded the capture limit."));n({exitCode:f??(m==="SIGINT"?130:1),stdout:o,stderr:s})}),a.stdin?.on("error",()=>{return}),a.stdin)a.stdin.end(e.input)})}async function on(e){let r=(await e.tokenProvider()).replace(/^Bearer\s+/u,"").trim();if(!r||/[\r\n]/u.test(r))throw new or(2,{error:{message:"A valid credential is required."}});let i=e.version??H;if(!/^[A-Za-z0-9.+_-]{1,64}$/u.test(i))throw new or(3,{error:{message:"The CLI version is invalid."}});let n=Cs(e.operation),t=[n.group,n.command,"--base-url",e.baseUrl,"--format","json","--no-retry","--user-agent-suffix",`action-cli/${e.version??H}`,"--x-action-c-l-i-version",i,"--params",JSON.stringify(e.parameters??{}),"--x-action-correlation-id",e.correlationId??crypto.randomUUID()],a=e.body===void 0?void 0:JSON.stringify(e.body);if(a!==void 0)t.push("--json","-");let o=await Yt({...e,args:t,...a===void 0?{}:{input:a},token:r,capture:!0}),s=(l)=>{try{return JSON.parse(l)}catch{return}};if(o.exitCode!==0)throw new or(o.exitCode,s(o.stderr)??s(o.stdout));if(!o.stdout.trim())return null;let u=s(o.stdout);if(u===void 0)throw new or(1,{error:{message:"The generated API response was not JSON."}});return u}var XI="[redacted]",LI=5,Xs=50,Ss=2000,WI=/^(?:authorization(?:[_-]?header)?|cookie(?:[_-]?header)?|credentials?|passwords?|passphrases?|private|secrets?|secret[_-]?keys?|tokens?|source|content|api[_-]?(?:keys?|secrets?)|client[_-]?secrets?|private[_-]?keys?|signing[_-]?keys?|webhook[_-]?secrets?|(?:access|auth|bearer|github|id|oauth|personal[_-]?access|refresh|session|slack|stripe)[_-]?tokens?)$/iu,zs=new Set(["authentication_required","invalid_credential","insufficient_scope","forbidden","feature_disabled","content_too_large","unsupported_media_type","invalid_request","validation_failed","not_found","stale_revision","idempotency_mismatch","operation_in_progress","conflict","rate_limited","upstream_unavailable","internal_error"]),SI=new Set(["__proto__","constructor","prototype"]);class j extends Error{code;correlationId;details;retryable;status;constructor(e){super(e.message);this.name="CliApiError",this.code=e.code,this.correlationId=e.correlationId??null,this.details=e.details,this.retryable=e.retryable,this.status=e.status??null}toJSON(){return{code:this.code,correlationId:this.correlationId,...this.details?{details:this.details}:{},message:this.message,retryable:this.retryable,status:this.status}}}function Ve(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)}function zI(e,r){if(typeof e!=="string")return r;let i=e.trim();return i?i.slice(0,Ss):r}function vI(e){return typeof e==="string"&&zs.has(e)?e:"api_error"}function Bt(e,r,i){if(i&&WI.test(i))return XI;if(r>=LI)return"[truncated]";if(typeof e==="string")return e.slice(0,Ss);if(e===null||typeof e==="boolean"||typeof e==="number")return e;if(Array.isArray(e))return e.slice(0,Xs).map((t)=>Bt(t,r+1));if(!Ve(e))return;let n=Object.create(null);for(let[t,a]of Object.entries(e).slice(0,Xs)){if(SI.has(t))continue;let o=Bt(a,r+1,t);if(o!==void 0)n[t]=o}return n}function Ls(e){if(!Ve(e)||!Ve(e.error))return null;let r=e.error,i=typeof r.correlationId==="string"?r.correlationId.slice(0,128):null,n=Ve(r.details)?Bt(r.details,0):void 0;return{code:vI(r.code),correlationId:i,...Ve(n)?{details:n}:{},message:zI(r.message,"The Action API rejected the request.")}}function Ws(e,r){return e==="operation_in_progress"||e==="rate_limited"||e==="upstream_unavailable"||r===408||r===425||r===429||r!==null&&r>=500}function Ft(e,r){return e!==null&&(typeof e==="object"||typeof e==="function")&&"name"in e&&e.name===r}function PI(e){return Ft(e,"AbortError")}function OI(e){let r=Ve(e.envelope)&&Ve(e.envelope.error)?e.envelope.error:null,i=r?.code,n=typeof i==="number"&&Number.isInteger(i)&&i>=100&&i<=599?i:null,t=r?.details,a=Ve(t)&&Ve(t.error)?t.error:null,o=Ls(a?{error:{...a,message:a.message??r?.message}}:t)??(typeof i==="string"&&zs.has(i)?Ls(e.envelope):null);if(o)return new j({code:o.code,correlationId:o.correlationId,...o.details?{details:o.details}:{},message:o.message,retryable:Ws(o.code,n),status:n});if(r?.reason==="networkError")return new j({code:"transport_error",message:"Unable to reach the Action API.",retryable:!0});if(e.exitCode===3)return le("The request does not match the generated Action API contract.");if(e.exitCode!==1)return new j({code:e.exitCode===2?"authentication_required":"api_error",message:e.exitCode===2?"The Action API requires authentication.":"The generated Action CLI could not complete the request.",retryable:!1});if(n!==null&&n>=200&&n<400)return new j({code:"invalid_response",message:"The Action API returned an invalid response.",retryable:!1,status:n});if(n!==null)return new j({code:"api_error",message:`The Action API request failed with HTTP ${n}.`,retryable:Ws("api_error",n),status:n});return new j({code:"api_error",message:"The generated Action CLI could not complete the request.",retryable:!1})}function Me(e){if(e instanceof j)return e;if(e instanceof or)return OI(e);if(Ft(e,"JsonError"))return le("The request does not match the Action API contract.");if(Ft(e,"ParseError"))return Ae("The Action API returned an invalid response.");if(PI(e))return new j({code:"request_aborted",message:"The Action API request was cancelled.",retryable:!1});return new j({code:"unknown_error",message:"The Action API request could not be completed.",retryable:!1})}function le(e){return new j({code:"invalid_request",message:e,retryable:!1})}function Ae(e){return new j({code:"invalid_response",message:e,retryable:!1})}import{setTimeout as VI}from"node:timers/promises";var $I=1e4;async function ti(e){let r=[],i=new Set,n;for(let t=0;t<$I;t+=1){let a=await e(n);if(!Array.isArray(a.items))throw Ae("The Action API returned an invalid page.");if(r.push(...a.items),a.nextCursor===null)return r;if(typeof a.nextCursor!=="string"||!a.nextCursor)throw Ae("The Action API returned an invalid pagination cursor.");if(i.has(a.nextCursor))throw Ae("The Action API repeated a pagination cursor.");i.add(a.nextCursor),n=a.nextCursor}throw Ae("The Action API returned too many pages.")}var TI=/^[A-Za-z0-9._:-]{1,128}$/u,EI=/^[A-Za-z0-9._:-]{8,200}$/u,NI=100,vs=100,DI=2,jI=50,Ps=5;function GI(e){let r;try{r=new URL(e)}catch{throw le("The Action API base URL is invalid.")}if(r.protocol!=="https:"&&r.protocol!=="http:")throw le("The Action API base URL must use HTTP or HTTPS.");return r.origin}function Rr(e){if(e===void 0)return NI;if(!Number.isInteger(e)||e<1||e>vs)throw le(`The page size must be between 1 and ${vs}.`);return e}function UI(e){let r=e.trim();if(!EI.test(r))throw le("The idempotency key contains unsupported characters.");return r}function Os(e,r){let i=e??r.defaultValue;if(!Number.isInteger(i)||i<r.minimum||i>r.maximum)throw le(`${r.name} must be an integer between ${r.minimum} and ${r.maximum}.`);return i}function $s(e){if(e===void 0)return;let r=e.trim();if(!r||r.length>1000)throw le("cursor must contain 1 to 1000 characters.");return r}function Es(e){let r=e.trim();if(/^W\//u.test(r))throw le("ifMatch must be a generation-aware strong ETag.");let i=r.startsWith('"')&&r.endsWith('"')?r:`"${r}"`,n=i.match(/^"([^"\\]{1,200}):([0-9]{1,10})"$/u),t=Number(n?.[2]);if(!n?.[1]||!Number.isSafeInteger(t)||t<0||t>2147483647)throw le("ifMatch must be a generation-aware strong ETag.");return i}function JI(e){return Es(e).slice(1,-1).replace(/:\d+$/u,"")}async function Vs(e,r){let i=(r??await e()).trim();if(!TI.test(i))throw le("The correlation ID contains unsupported characters.");return i}function Ts(e,r){let i=new Map(e.map((n)=>[n.name,n]));for(let n of r){let t=i.get(n.name);i.set(n.name,{...t??n,...n.inputSchema!==null?{inputSchema:n.inputSchema}:{},...n.outputSchema!==null?{outputSchema:n.outputSchema}:{}})}return[...i.values()]}function MI(e){let r=new Map;for(let i of e){let n=r.get(i.slug);if(!n){r.set(i.slug,{...i,connectorInstances:[...i.connectorInstances]});continue}let t=new Map(n.connectorInstances.map((a)=>[a.id,a]));for(let a of i.connectorInstances)t.set(a.id,a);r.set(i.slug,{...n,actions:Ts(n.actions,i.actions),connectionStatus:n.connectionStatus==="connected"||i.connectionStatus==="connected"?"connected":"not_connected",connectorInstances:[...t.values()],readActions:Ts(n.readActions,i.readActions)})}return[...r.values()]}async function YI(e,r={}){let i=r.maxRetries??0;if(!Number.isInteger(i)||i<0)throw le("maxRetries must be a non-negative integer.");for(let n=0;;n+=1){if(r.abortSignal?.aborted)throw Me({name:"AbortError"});try{return await e()}catch(t){if(r.preserveError?.(t))throw t;let a=Me(t);if(r.abortSignal?.aborted)throw Me({name:"AbortError"});let o=a.status;if(!(a.code==="transport_error"||o===408||o===425||o===429||o!==null&&o>=500)||n>=i)throw a;try{await VI(jI*(n+1),void 0,r.abortSignal?{signal:r.abortSignal}:void 0)}catch(u){throw Me(u)}}}}class Kt{options;correlationIdProvider;constructor(e){this.options={...e,baseUrl:GI(e.baseUrl)},this.correlationIdProvider=e.correlationIdProvider??(()=>crypto.randomUUID())}async getIdentity(e={}){return await this.invoke("identity.getCurrentPrincipal",{},e)}async listSpaces(e={}){let r=Rr(e.pageSize),i=await this.paginated(e);return await ti(async(n)=>{let t=await this.invoke("identity.listSpaces",{...n?{cursor:n}:{},limit:r},i);return{items:t.spaces,nextCursor:t.nextCursor}})}async listWorkflows(e,r={}){let i=Rr(r.pageSize),n=await this.paginated(r);return await ti(async(t)=>{let a=await this.invoke("workflows.listWorkflows",{...e,...t?{cursor:t}:{},limit:i},n);return{items:a.data,nextCursor:a.nextCursor}})}async getWorkflow(e,r={}){return await this.invoke("workflows.getWorkflow",{...e},r)}async listWorkflowRevisions(e,r={}){let i=Rr(r.pageSize),n=await this.paginated(r);return await ti(async(t)=>{let a=await this.invoke("workflows.listWorkflowRevisions",{...e,...t?{cursor:t}:{},limit:i},n);return{items:a.data,nextCursor:a.nextCursor}})}async getWorkflowRevision(e,r={}){return await this.invoke("workflows.getWorkflowRevision",{...e},r)}async listWorkflowCapabilities(e,r={}){let i=Rr(r.pageSize),n=await this.paginated(r),t=await ti(async(a)=>{let o=await this.invoke("workflows.listWorkflowCapabilities",{spaceId:e,...a?{cursor:a}:{},...r.query?{q:r.query}:{},limit:i},n);return{items:o.applications,nextCursor:o.nextCursor}});return MI(t)}async createWorkflow(e,r){let{spaceId:i,...n}=e;return await this.invoke("workflows.createWorkflow",{spaceId:i,...this.mutationParameters(r)},r,n)}async updateWorkflow(e,r){let{spaceId:i,workflowId:n,ifMatch:t,...a}=e;return await this.invoke("workflows.updateWorkflow",{spaceId:i,workflowId:n,...this.mutationParameters(r,t)},r,{...a,baseRevisionId:JI(t)})}async validateWorkflowRevision(e,r={}){return await this.invoke("workflows.validateWorkflowRevision",{...e},r)}async testWorkflowRevision(e,r){let{spaceId:i,workflowId:n,revisionId:t,ifMatch:a,input:o}=e;return await this.invoke("workflows.testWorkflowRevision",{spaceId:i,workflowId:n,revisionId:t,...this.mutationParameters(r,a)},r,{input:o})}async createWorkflowRun(e,r){let{spaceId:i,...n}=e;return await this.invoke("workflows.createWorkflowRun",{spaceId:i,...this.mutationParameters(r)},r,n)}async listWorkflowRuns(e,r={}){let i=$s(r.cursor);return await this.invoke("workflows.listWorkflowRuns",{...e,...i?{cursor:i}:{},limit:Rr(r.pageSize)},r)}async getWorkflowRun(e,r={}){return await this.invoke("workflows.getWorkflowRun",{...e},r)}async waitForWorkflowRun(e,r={}){let i=Os(e.timeoutSeconds,{defaultValue:25,maximum:30,minimum:1,name:"timeoutSeconds"});return await this.invoke("workflows.waitForWorkflowRun",{runId:e.runId,spaceId:e.spaceId,timeoutSeconds:i},r,void 0,0,i+Ps)}async listWorkflowRunEvents(e,r={}){let i=$s(e.cursor),n=Os(e.waitSeconds,{defaultValue:25,maximum:30,minimum:0,name:"waitSeconds"});return await this.invoke("workflows.listWorkflowRunEvents",{...i?{cursor:i}:{},limit:Rr(e.pageSize),runId:e.runId,spaceId:e.spaceId,waitSeconds:n},r,void 0,0,n+Ps)}async cancelWorkflowRun(e,r){return await this.invoke("workflows.cancelWorkflowRun",{...e,...this.mutationParameters(r)},r)}async publishWorkflowRevision(e,r){let{ifMatch:i,...n}=e;return await this.invoke("workflows.publishWorkflowRevision",{...n,...this.mutationParameters(r,i)},r)}async archiveWorkflow(e,r){let{ifMatch:i,...n}=e;return await this.invoke("workflows.archiveWorkflow",{...n,...this.mutationParameters(r,i)},r)}mutationParameters(e,r){return{"Idempotency-Key":UI(e.idempotencyKey),...r===void 0?{}:{"If-Match":Es(r)}}}async paginated(e){return{...e,correlationId:await Vs(this.correlationIdProvider,e.correlationId)}}async invoke(e,r,i,n,t=DI,a){let o=await Vs(this.correlationIdProvider,i.correlationId);return await YI(async()=>await on({operation:e,parameters:r,...n===void 0?{}:{body:n},baseUrl:this.options.baseUrl,tokenProvider:this.options.tokenProvider,correlationId:o,version:this.options.version??H,...i.abortSignal?{abortSignal:i.abortSignal}:{},...a===void 0?{}:{timeoutInSeconds:a},...this.options.cwd===void 0?{}:{cwd:this.options.cwd},...this.options.env===void 0?{}:{env:this.options.env},...this.options.binaryPath===void 0?{}:{binaryPath:this.options.binaryPath}}),{...i.abortSignal?{abortSignal:i.abortSignal}:{},maxRetries:t,...this.options.preserveError?{preserveError:this.options.preserveError}:{}})}}function ai(e){return new Kt(e)}var W={success:0,internal:1,usage:2,authentication:3,notFound:4,conflict:5,validation:6,remote:7,partial:8};class $ extends Error{code;details;exitCode;constructor(e,r,i={}){super(r,i.cause===void 0?void 0:{cause:i.cause});this.name="CliError",this.code=e,this.details=i.details,this.exitCode=i.exitCode??W.internal}}function Ht(e){if(e instanceof $)return e;if(e instanceof Error){let r=e;return new $(typeof r.code==="string"?r.code:"internal_error",r.message,{cause:e,...r.details!==void 0?{details:r.details}:{},...typeof r.exitCode==="number"?{exitCode:r.exitCode}:{}})}return new $("internal_error","The command could not be completed.")}function Ns(e){let r=e.optsWithGlobals();return{...r.apiUrl?{apiUrl:r.apiUrl}:{},json:r.json??!1,nonInteractive:r.nonInteractive??!1,...r.profile?{profile:r.profile}:{},...r.organization?{organization:r.organization}:{},...r.space?{space:r.space}:{}}}async function M(e,r,i){return await r.createRuntime({globals:Ns(e),reporter:i.reporter})}function X(e){return new $("usage_error",e,{exitCode:W.usage})}function Zt(e,r="--input"){try{return JSON.parse(e)}catch{throw X(`${r} must be valid JSON.`)}}async function oi(e){if(e.yes)return!0;let r=Ns(e.command);if(r.nonInteractive||r.json)throw X("This command requires --yes in JSON or non-interactive mode.");if(!e.dependencies.confirm)throw X("This command requires --yes when confirmation is unavailable.");return await e.dependencies.confirm(e.message)}function si(){return{human:"Cancelled.",value:{cancelled:!0}}}function Qt(e,r,i){let n=e.command("auth").description("Authenticate the Action CLI");n.command("login").description("Sign in using the secure WorkOS device flow").option("--organization <id-or-key>","select an Action organization").action(async(t,a)=>{let o=i(a),s=await M(a,r,{reporter:o}),u=a.optsWithGlobals().organization,l=await s.auth.login(u?{organization:u}:{});o.result(l.value,l.human)}),n.command("logout").description("Remove the stored session for the selected profile").action(async(t,a)=>{let o=i(a),u=await(await M(a,r,{reporter:o})).auth.logout();o.result(u.value,u.human)}),n.command("status").description("Show authentication status for the selected profile").action(async(t,a)=>{let o=i(a),u=await(await M(a,r,{reporter:o})).auth.status();o.result(u.value,u.human)})}import{mkdir as js,mkdtemp as FI,readdir as KI,readFile as HI,rename as _t,rm as Gs,stat as ZI,writeFile as QI}from"node:fs/promises";import{dirname as Us,join as xI,relative as Js,resolve as sn,sep as Ms}from"node:path";var Ds=1200000,xt=200,BI=[{description:"Archive an access policy.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archivePolicy",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"none"},{description:"Archive an access profile.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archiveProfile",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"none"},{description:"Archive an access role so it can no longer be requested.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archiveRole",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"Create an access policy.",bodyProperties:["name","description","maxAccessMinutes","recommendedAccessMinutes","businessJustificationMode","requireBusinessJustification","businessJustificationSpec","businessJustificationApprovalMode","businessJustificationRejectionMode","allowSelfApproval","notifyApproversViaSlack","notifyApproversViaTeams","slackNotifyDelivery","slackEscalationIntervalMinutes","teamsNotifyDelivery","teamsEscalationIntervalMinutes","approvalStages","approvers","approverProvisioningImpactAcknowledged"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createPolicy",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies",queryParameters:[],requestBody:"json"},{description:"Create an access profile.",bodyProperties:["name","description","isDefault","matchingCriteria","roleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createProfile",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles",queryParameters:[],requestBody:"json"},{description:"Create an access role.",bodyProperties:["name","description","requestsEnabled","connectorInstanceId","accessProfileId","accessPolicyId","provisioningMethodType","provisioningConfig","externalId","externalData"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createRole",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles",queryParameters:[],requestBody:"json"},{description:"Read one access policy, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getPolicy",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"none"},{description:"Read one access profile, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getProfile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"none"},{description:"Read one access role, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getRole",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"List the access policies in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listPolicies",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-policies",queryParameters:["includeArchived","status","query","limit","cursor"],requestBody:"none"},{description:"List the access profiles in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listProfiles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-profiles",queryParameters:["includeArchived","status","query","limit","cursor"],requestBody:"none"},{description:"List the access roles in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listRoles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-roles",queryParameters:["includeArchived","status","connectorInstanceId","connectorSlug","provisioningMethodType","query","limit","cursor"],requestBody:"none"},{description:"Publish an access policy draft, or apply a draft edit to the published policy.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishPolicy",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}/publish",queryParameters:[],requestBody:"none"},{description:"Publish an access profile draft, or apply a draft edit to the published profile.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishProfile",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}/publish",queryParameters:[],requestBody:"none"},{description:"Publish an access role draft, or apply a draft edit to the published role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishRole",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}/publish",queryParameters:[],requestBody:"none"},{description:"Update an access policy's approvers, limits and justification handling.",bodyProperties:["name","description","maxAccessMinutes","recommendedAccessMinutes","businessJustificationMode","requireBusinessJustification","businessJustificationSpec","businessJustificationApprovalMode","businessJustificationRejectionMode","allowSelfApproval","notifyApproversViaSlack","notifyApproversViaTeams","slackNotifyDelivery","slackEscalationIntervalMinutes","teamsNotifyDelivery","teamsEscalationIntervalMinutes","approvalStages","approvers","approverProvisioningImpactAcknowledged"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updatePolicy",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"json"},{description:"Update an access profile's fields, group criteria and role set.",bodyProperties:["name","description","isDefault","matchingCriteria","roleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updateProfile",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"json"},{description:"Update an access role's fields and provisioning configuration.",bodyProperties:["name","description","requestsEnabled","connectorInstanceId","accessProfileId","accessPolicyId","provisioningMethodType","provisioningConfig","externalId","externalData"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updateRole",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"json"},{description:"Abandon a pending reconnect and restore the connector's prior status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.cancelApplicationReconnect",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect/cancel",queryParameters:[],requestBody:"none"},{description:"Confirm a connector authorization flow after the provider callback.",bodyProperties:["connectionId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.confirmApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/confirm",queryParameters:[],requestBody:"json"},{description:"Start a connector authorization flow.",bodyProperties:["label","connectionConfig","generateSuggestions"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.connectApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}/connect",queryParameters:[],requestBody:"json"},{description:"Connect a custom MCP server to the current space.",bodyProperties:["displayName","endpointUrl","headers","transport"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.createCustomIntegration",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/integrations",queryParameters:[],requestBody:"json"},{description:"Disconnect a connector instance and retire everything bound to its connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.disconnectApplication",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:[],requestBody:"none"},{description:"Disconnect an integration from the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.disconnectIntegration",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}",queryParameters:[],requestBody:"none"},{description:"Duplicate a connected connector instance into another authorized space.",bodyProperties:["targetSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.duplicateApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/duplicate",queryParameters:[],requestBody:"json"},{description:"Read one connector instance with its knowledge sources and sync status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplication",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:["providerSyncStatus"],requestBody:"none"},{description:"Read actions and syncs exposed by one connector catalog entry.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationCatalog",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}",queryParameters:[],requestBody:"none"},{description:"Read an application's inbound and outbound issue sync settings.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationIssueSyncSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",queryParameters:[],requestBody:"none"},{description:"Report whether the Jira Forge app is installed on the connector's Jira site.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationJiraForgeStatus",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/jira-forge",queryParameters:[],requestBody:"none"},{description:"List automations that use this application connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationAutomations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/automations",queryParameters:["cursor","limit","q","sortBy","sortDirection"],requestBody:"none"},{description:"Report whether requested connector types have connected or enabled instances.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationAvailability",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/availability",queryParameters:["slug"],requestBody:"none"},{description:"List repositories available to GitHub connector.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationGithubRepositories",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/github/repositories",queryParameters:["cursor","q"],requestBody:"none"},{description:"List directory groups a provisioning connector can link roles to.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/linked-groups",queryParameters:["cursor","limit","search","selectedId"],requestBody:"none"},{description:"List available issue teams or assignment groups for an application.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationIssueTeams",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-teams",queryParameters:[],requestBody:"none"},{description:"List connector catalog entries and instances visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications",queryParameters:["attention","connectorInstanceId","cursor","limit","q"],requestBody:"none"},{description:"List connector synchronization runs.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationSyncRuns",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync-runs",queryParameters:["cursor","event","limit","q","status"],requestBody:"none"},{description:"List the provider's choices for an application trigger field, such as Linear teams.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationTriggerFieldOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/trigger-field-options",queryParameters:["field","q","cursor"],requestBody:"none"},{description:"List workflows that use this connector's application.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationWorkflows",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/workflows",queryParameters:["cursor","limit","q","sort","status","visibility"],requestBody:"none"},{description:"List connected instances for requested connector types.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listConnectedApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/connected",queryParameters:["slug"],requestBody:"none"},{description:"List integrations available in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listIntegrations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/integrations",queryParameters:["alias","cursor","id","includeDeleted","limit","nangoConnectionId","q","source"],requestBody:"none"},{description:"List tools exposed by one connected integration.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listIntegrationTools",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/tools",queryParameters:[],requestBody:"none"},{description:"Issue new Okta webhook credentials, invalidating the previous hook.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.provisionApplicationWebhook",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/okta-webhook",queryParameters:[],requestBody:"none"},{description:"Start a reconnect against the connector's existing auth connection.",bodyProperties:["connectionConfig"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.reconnectApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect",queryParameters:[],requestBody:"json"},{description:"Rename an integration connection.",bodyProperties:["displayName"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.renameIntegration",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}",queryParameters:[],requestBody:"json"},{description:"Choose whether a connector instance may perform write actions.",bodyProperties:["actionMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setApplicationActionMode",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/action-mode",queryParameters:[],requestBody:"json"},{description:"Turn a connector instance on or off across every surface that reads it.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setApplicationEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/enabled",queryParameters:[],requestBody:"json"},{description:"Enable or disable an integration connection.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setIntegrationEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}/enabled",queryParameters:[],requestBody:"json"},{description:"Request synchronization for an application connection.",bodyProperties:["initial"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.triggerApplicationSync",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/sync",queryParameters:[],requestBody:"json"},{description:"Update a connector instance label.",bodyProperties:["label"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.updateApplication",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:[],requestBody:"json"},{description:"Replace an application's issue sync settings and reconcile provider schedules.",bodyProperties:["agentPreferences","pull","push","autoAddress"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.updateApplicationIssueSyncSettings",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",queryParameters:[],requestBody:"json"},{description:"Archive an assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/archive",queryParameters:[],requestBody:"none"},{description:"Create a custom assignment group.",bodyProperties:["name","sources","kind","connectorInstanceId","externalProviderGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups",queryParameters:[],requestBody:"json"},{description:"Read one assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",queryParameters:[],requestBody:"none"},{description:"Read an assignment group's resolved membership.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.getMembership",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/membership",queryParameters:[],requestBody:"none"},{description:"Read the assignment-group import settings for the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.getSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/settings",queryParameters:[],requestBody:"none"},{description:"List assignment groups in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups",queryParameters:["cursor","includeArchived","kind","limit","offset","q","routableOnly","sortBy","sortDirection"],requestBody:"none"},{description:"List the people in an imported assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.listMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/members",queryParameters:["access","cursor","limit","q","sortBy","sortDirection"],requestBody:"none"},{description:"Enable or disable assignment-group import for one connection.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.setImportEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/connections/{connectorInstanceId}/import",queryParameters:[],requestBody:"json"},{description:"Set assignment-group import for several connections at once.",bodyProperties:["changes"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.setImportSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/import-selection",queryParameters:[],requestBody:"json"},{description:"Restore an archived assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.unarchive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/unarchive",queryParameters:[],requestBody:"none"},{description:"Rename a custom assignment group or replace its sources.",bodyProperties:["name","sources","kind","connectorInstanceId","externalProviderGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",queryParameters:[],requestBody:"json"},{description:"Create an assignment rule at the end of the evaluation order.",bodyProperties:["conditions","actions","matchMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules",queryParameters:[],requestBody:"json"},{description:"List the assignment rules in the active space, in evaluation order.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-rules",queryParameters:[],requestBody:"none"},{description:"Delete an assignment rule and clear the cases it routed.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.remove",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",queryParameters:[],requestBody:"none"},{description:"Reorder every assignment rule in the space.",bodyProperties:["ruleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.reorder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/reorder",queryParameters:[],requestBody:"json"},{description:"Update an assignment rule's conditions, actions, match mode or enabled state.",bodyProperties:["isEnabled","matchMode","conditions","actions"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",queryParameters:[],requestBody:"json"},{description:"Approve a proposed automation edit and publish its immutable version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.approveEditProposal",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/approve",queryParameters:[],requestBody:"none"},{description:"Archive a user-managed automation definition and disable its automations.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.archive",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"none"},{description:"List archived automation definitions in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.archived",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/archived",queryParameters:[],requestBody:"none"},{description:"Read the copilot automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.copilot",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/copilot",queryParameters:[],requestBody:"none"},{description:"Create an automation definition and its initial immutable version.",bodyProperties:["name","description","slugId","paused","runAsUserId","config"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations",queryParameters:[],requestBody:"json"},{description:"Create an automation for an automation definition.",bodyProperties:["displayName","triggerKind","userMessageTemplate","workflowInput","config","connectorInstanceId","connectorSlug","fieldValues","triggerSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",queryParameters:[],requestBody:"json"},{description:"Publish a new immutable version of an automation definition.",bodyProperties:["config"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",queryParameters:[],requestBody:"json"},{description:"Create an automation for a published workflow.",bodyProperties:["displayName","triggerKind","userMessageTemplate","workflowInput","config","connectorInstanceId","connectorSlug","fieldValues","triggerSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createWorkflowTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",queryParameters:[],requestBody:"json"},{description:"Delete an automation automation and tear down unused trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.deleteTrigger",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",queryParameters:[],requestBody:"none"},{description:"Delete a workflow automation and tear down unused trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.deleteWorkflowTrigger",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",queryParameters:[],requestBody:"none"},{description:"Disable an automation automation and its trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.disableTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/disable",queryParameters:[],requestBody:"none"},{description:"Read one automation definition visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"none"},{description:"Read an automation edit proposal.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.getEditProposal",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}",queryParameters:[],requestBody:"none"},{description:"Read the help desk automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.helpDesk",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/help-desk",queryParameters:[],requestBody:"none"},{description:"List automation definitions visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations",queryParameters:["cursor","limit","search","automationId"],requestBody:"none"},{description:"List automations for an automation definition.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listAutomationTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List pending automation edits proposed in a conversation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listEditProposals",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals",queryParameters:["threadId","cursor","limit"],requestBody:"none"},{description:"List automation automations visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List immutable versions of an automation definition.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listVersions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List automations for a workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listWorkflowTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Read aggregate automation management metrics for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.managementStats",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/management-stats",queryParameters:[],requestBody:"none"},{description:"Reject a proposed automation edit.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.rejectEditProposal",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/reject",queryParameters:[],requestBody:"none"},{description:"Restore an archived automation definition and the automations archived with it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.restore",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/restore",queryParameters:[],requestBody:"none"},{description:"Reveal the signing secret for an automation webhook automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.revealWebhookSecret",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/webhook-secret",queryParameters:[],requestBody:"none"},{description:"Reveal the signing secret for a workflow webhook automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.revealWorkflowWebhookSecret",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}/webhook-secret",queryParameters:[],requestBody:"none"},{description:"Read weekly automation activity for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.spaceStats",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/space-stats",queryParameters:[],requestBody:"none"},{description:"List automation summaries with their activity counters.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.summaries",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/summaries",queryParameters:["cursor","limit","search","sortBy","sortDirection","automationId"],requestBody:"none"},{description:"Update an automation definition's profile.",bodyProperties:["name","description","slugId","paused","runAsUserId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"json"},{description:"Update an automation automation.",bodyProperties:["integrationId","triggerSlug","displayName","triggerConfig","userMessageTemplate","workflowInput"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.updateTrigger",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",queryParameters:[],requestBody:"json"},{description:"Update a workflow automation.",bodyProperties:["integrationId","triggerSlug","displayName","triggerConfig","userMessageTemplate","workflowInput"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.updateWorkflowTrigger",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",queryParameters:[],requestBody:"json"},{description:"Archive a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/archive",queryParameters:[],requestBody:"none"},{description:"Archive one approval inbox row for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveInboxApproval",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/archive",queryParameters:[],requestBody:"none"},{description:"Archive one case inbox row for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveInboxCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/archive",queryParameters:[],requestBody:"none"},{description:"Create a case in the current space.",bodyProperties:["title","summary","statusId","priority","categoryId","requesterUserId","assigneeUserId","assignmentGroupId","dueAt","primaryThreadId","parentCaseId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases",queryParameters:[],requestBody:"json"},{description:"Create a category in the active case space.",bodyProperties:["name","description"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createCategory",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-categories",queryParameters:[],requestBody:"json"},{description:"Create a label in the current case space.",bodyProperties:["name","color"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createLabel",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-labels",queryParameters:[],requestBody:"json"},{description:"Remove an attachment from a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.deleteAttachment",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}",queryParameters:[],requestBody:"none"},{description:"Download an attachment from a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.downloadAttachment",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}/download",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Read one case with the first page of everything hanging off it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.getCase",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",queryParameters:["workflowRunId","space"],requestBody:"none"},{description:"Get the current actor's subscription to a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.getSubscription",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Link a writable case as a subcase of another writable case. Requires a signed-in user credential.",bodyProperties:["targetCaseIdOrIdentifier","type"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.linkRelation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations",queryParameters:[],requestBody:"json"},{description:"Link an existing automation thread to a writable case. Requires a signed-in user credential.",bodyProperties:["threadId","relationship","purpose","metadata","automationId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.linkThread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",queryParameters:[],requestBody:"json"},{description:"List visible activity for a case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listActivity",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/activity",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Search people who can be assigned to a case in the current space. Requires space_member:read in addition to the public cases:read scope.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listAssigneeCandidates",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-assignee-candidates",queryParameters:["assignmentGroupId","cursor","limit","q"],requestBody:"none"},{description:"List file attachments for a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listAttachments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List cases in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of cases in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List the active categories in the current case space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCategories",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-categories",queryParameters:[],requestBody:"none"},{description:"List assignment groups available as case-inbox filters. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listInboxCaseGroupOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-inbox/group-options",queryParameters:["inboxState","statusType","priority","assigneeUserId","presetAssigneeMode","q","limit","cursor","groupQ"],requestBody:"none"},{description:"List the current actor's case inbox rows. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listInboxCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-inbox",queryParameters:["inboxState","statusType","priority","assigneeUserId","presetAssigneeMode","q","limit","cursor","assignmentGroupId","sortBy","sortDir"],requestBody:"none"},{description:"List the labels attached to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listLabels",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/labels",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the filter values still worth offering over the current actor's cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCaseFilterOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine/filter-options",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","kind","q"],requestBody:"none"},{description:"List the cases the current actor is involved in, across spaces. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of the current actor's cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List statuses, categories, or labels in the current case space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listReferenceData",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-reference-data",queryParameters:["kind","cursor","limit"],requestBody:"none"},{description:"List the source links attached to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSourceLinks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/source-links",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the filter values still worth offering over subscribed cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCaseFilterOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/filter-options",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","kind","q"],requestBody:"none"},{description:"List the cases the current actor subscribes to. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of the current actor's subscribed cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List the sessions linked to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listThreads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Mark a visible case and its notifications read for the current actor. Requires a signed-in user credential.",bodyProperties:["mode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.markRead",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/read",queryParameters:[],requestBody:"json"},{description:"Mark a visible case unread for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.markUnread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/unread",queryParameters:[],requestBody:"none"},{description:"Mark one approval inbox row read for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readInboxApproval",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/read",queryParameters:[],requestBody:"none"},{description:"Mark one case inbox row read for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readInboxCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/read",queryParameters:[],requestBody:"none"},{description:"Reopen a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.reopenCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/reopen",queryParameters:[],requestBody:"none"},{description:"Start and link a new automation thread for a writable case. Requires a signed-in user credential.",bodyProperties:["id","relationship","purpose","metadata","startMuted","automationId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.spawnThread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads/spawn",queryParameters:[],requestBody:"json"},{description:"Subscribe the current actor to a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.subscribe",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Transfer a writable case to another active space. Requires a signed-in user credential.",bodyProperties:["destinationSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.transfer",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/transfer",queryParameters:[],requestBody:"json"},{description:"Remove a writable subcase relation. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.unlinkRelation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations/{relationId}",queryParameters:[],requestBody:"none"},{description:"Unsubscribe the current actor from a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.unsubscribe",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Update a writable case.",bodyProperties:["title","summary","statusId","statusType","priority","categoryId","requesterUserId","assigneeUserId","assigneeActorType","assignmentGroupId","assigneeGroupId","dueAt","labelIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.updateCase",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",queryParameters:[],requestBody:"json"},{description:"Upload files to a writable case using the same file restrictions as the web app.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.uploadAttachment",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",queryParameters:[],requestBody:"multipart"},{description:"Create a provider-hosted directory setup link.",bodyProperties:["returnUrl","successUrl"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.createAdminPortalLink",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/admin-portal-link",queryParameters:[],requestBody:"json"},{description:"List the organization's directory snapshot.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/directory",queryParameters:["groupMembersLimit","groupsCursor","groupsLimit","userId","usersCursor","usersLimit"],requestBody:"none"},{description:"List the members of one directory group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.listGroupMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/directory/groups/{groupId}/members",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Schedule a fresh organization directory snapshot.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.sync",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/sync",queryParameters:[],requestBody:"none"},{description:"Get the principal and organization the supplied credential resolves to.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"identity.getCurrentPrincipal",idempotent:!1,method:"get",mutation:!1,path:"/v1/me",queryParameters:[],requestBody:"none"},{description:"List the spaces the supplied credential can reach.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"identity.listSpaces",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Archive an uploaded-knowledge folder and all of its documents.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveFolder",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",queryParameters:[],requestBody:"none"},{description:"Archive an uploaded-knowledge subfolder and its documents.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveSubfolder",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",queryParameters:[],requestBody:"none"},{description:"Archive an uploaded knowledge document.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveUpload",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",queryParameters:[],requestBody:"none"},{description:"Read a GitHub knowledge repository file.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.browseGithubKnowledgeRepoFile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/file",queryParameters:["path","repo"],requestBody:"none"},{description:"Browse GitHub knowledge repository tree.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.browseGithubKnowledgeRepoTree",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/tree",queryParameters:["repo"],requestBody:"none"},{description:"Update visibility and availability for all documents in the Confluence source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateConfluenceConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the Google Drive source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateGoogleDriveConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the Notion source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateNotionConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the SharePoint source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateSharePointConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Upload and index a knowledge document. The folder and subfolders are created as needed.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.createUpload",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads",queryParameters:[],requestBody:"multipart"},{description:"Remove this connector's knowledge and prevent its source from being recreated by sync.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.deleteConnectorKnowledge",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/knowledge",queryParameters:[],requestBody:"none"},{description:"List indexed Confluence documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listConfluenceConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List upload folders in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listFolders",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/folders",queryParameters:[],requestBody:"none"},{description:"List repositories available to GitHub connector.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGithubConnectorRepos",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",queryParameters:["cursor","query"],requestBody:"none"},{description:"List GitHub knowledge repositories.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGithubKnowledgeRepos",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",queryParameters:[],requestBody:"none"},{description:"List indexed Google Drive documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGoogleDriveConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List Google Drive corpora available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGoogleDriveConnectorDrives",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/drives",queryParameters:[],requestBody:"none"},{description:"List indexed Notion documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listNotionConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List the knowledge catalog visible to organization administrators.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listOrganizationDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/documents",queryParameters:["cursor","limit","provider","q","sort","sortDirection"],requestBody:"none"},{description:"List provider totals for the organization knowledge catalog.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listOrganizationKnowledgeProviderCounts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/provider-counts",queryParameters:[],requestBody:"none"},{description:"List indexed SharePoint documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSharePointConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"Discover SharePoint sites available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSharePointConnectorSites",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-sites",queryParameters:["cursor","query"],requestBody:"none"},{description:"List Slack knowledge channels and their indexing settings. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSlackConnectorChannels",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channels",queryParameters:["cursor","search","limit"],requestBody:"none"},{description:"List uploaded knowledge documents in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listUploads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",queryParameters:["cursor","folder","limit"],requestBody:"none"},{description:"Download an organization knowledge document. Requires a signed-in organization administrator.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.readOrganizationUpload",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/uploads/{documentId}/content",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Download a document owned by the selected space or shared with the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.readUpload",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/content",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Reindex an uploaded knowledge document.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.reindexUpload",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/reindex",queryParameters:[],requestBody:"none"},{description:"Rename an uploaded-knowledge folder.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.renameFolder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",queryParameters:[],requestBody:"json"},{description:"Rename an uploaded-knowledge subfolder.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.renameSubfolder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",queryParameters:[],requestBody:"json"},{description:"Replace GitHub knowledge repositories.",bodyProperties:["repos"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.replaceGithubKnowledgeRepos",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",queryParameters:[],requestBody:"json"},{description:"Search connected Notion pages and data sources available for selection.",bodyProperties:["cursor","query","limit"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.searchNotionConnectorDocuments",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/search",queryParameters:[],requestBody:"json"},{description:"Refresh one Confluence document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncConfluenceConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Refresh one Google Drive document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncGoogleDriveConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Refresh one Notion document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncNotionConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Trigger GitHub knowledge synchronization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.triggerGithubKnowledgeSync",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/sync",queryParameters:[],requestBody:"none"},{description:"Update visibility and availability for one Confluence document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateConfluenceConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update visibility for every uploaded document in a folder.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateFolderDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/documents",queryParameters:[],requestBody:"json"},{description:"Update GitHub connector repository selection.",bodyProperties:["repos"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGithubConnectorRepos",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one Google Drive document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGoogleDriveConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Google Drive knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGoogleDriveConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one Notion document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateNotionConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Notion knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateNotionConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one SharePoint document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSharePointConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the SharePoint knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSharePointConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update who can access knowledge from this Slack connector. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["availability"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorAvailability",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/availability",queryParameters:[],requestBody:"json"},{description:"Update the amount of Slack history included in knowledge. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["depth"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorBackfill",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-backfill",queryParameters:[],requestBody:"json"},{description:"Update who can access knowledge from a Slack channel. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["channelId","availability"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorChannelAvailability",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channel-availability",queryParameters:[],requestBody:"json"},{description:"Update the Slack knowledge selection and reconcile its indexed documents. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["excludedChannelIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update an uploaded knowledge document's visibility.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateUpload",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",queryParameters:[],requestBody:"json"},{description:"Accept and re-inject a quarantined inbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.acceptQuarantine",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/accept",queryParameters:[],requestBody:"none"},{description:"Remove an address from outbound email suppression.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.deleteSuppression",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/email/suppressions/{suppressionId}",queryParameters:[],requestBody:"none"},{description:"Disable hosted email for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.disableInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"Enable hosted email for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.enableInstallation",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"Get the organization's email installation and channel diagnostics.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"List recently quarantined inbound email events.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.listQuarantine",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/quarantine",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List addresses suppressed from outbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.listSuppressions",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/suppressions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Reject a quarantined inbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.rejectQuarantine",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/reject",queryParameters:[],requestBody:"none"},{description:"Confirm the organization's GitHub App connection after the provider handoff.",bodyProperties:["connectionId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.confirmInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation/confirm",queryParameters:[],requestBody:"json"},{description:"Disconnect the organization's GitHub App and disable its connected spaces.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.disconnectInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Read the organization's GitHub App installation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Read GitHub App repository access and connected spaces for this organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.getInstallationDetails",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/github-app/installation/details",queryParameters:["repoPage","repoPageSize"],requestBody:"none"},{description:"Start the organization's GitHub App connection handoff. The returned session token is short-lived authorization material.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Attach a space to a Slack channel setting.",bodyProperties:["spaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.createChannelSettingsRoute",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes",queryParameters:[],requestBody:"json"},{description:"Remove one route from a Slack channel setting.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.deleteChannelSettingsRoute",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes/{routeId}",queryParameters:[],requestBody:"none"},{description:"Disconnect the active Slack installation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.disconnectInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/slack/installation",queryParameters:[],requestBody:"none"},{description:"Read the active Slack installation and its channel diagnostics.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/slack/installation",queryParameters:[],requestBody:"none"},{description:"List Slack channel settings for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.listChannelSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings",queryParameters:[],requestBody:"none"},{description:"Start the Slack OAuth installation flow for the active organization.",bodyProperties:["returnTo"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/install",queryParameters:[],requestBody:"json"},{description:"Synchronize Slack channel settings from the connected workspace.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.syncChannelSettings",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/sync",queryParameters:[],requestBody:"none"},{description:"Update status reaction emojis for one Slack channel setting.",bodyProperties:["emojis"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.updateChannelEmojis",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/emojis",queryParameters:[],requestBody:"json"},{description:"Update the response behavior for one Slack channel setting.",bodyProperties:["responseMode","threadReplyMode","ambientInstruction","ambientRules"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.updateChannelSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}",queryParameters:[],requestBody:"json"},{description:"Archive a space and revoke its active memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/archive",queryParameters:[],requestBody:"none"},{description:"Create a space and its default roles and statuses.",bodyProperties:["description","name","organizationRequestRoutingEnabled","slug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces",queryParameters:[],requestBody:"json"},{description:"Join an active space as an organization administrator.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.join",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/join",queryParameters:[],requestBody:"none"},{description:"List active spaces in the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/spaces",queryParameters:[],requestBody:"none"},{description:"Set the message the help desk sends a requester when it hands a case to a human.",bodyProperties:["escalationClosingMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setEscalationMessage",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-message",queryParameters:[],requestBody:"json"},{description:"Enable or disable muting the help desk on this space's cases after a handoff.",bodyProperties:["escalationMuteEnabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setEscalationMute",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-mute",queryParameters:[],requestBody:"json"},{description:"Enable or disable organization request routing for a space.",bodyProperties:["organizationRequestRoutingEnabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setOrganizationRequestRouting",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/request-routing",queryParameters:[],requestBody:"json"},{description:"Route a Teams channel to a space in this organization.",bodyProperties:["spaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.createChannelSettingsRoute",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes",queryParameters:[],requestBody:"json"},{description:"Create a Teams message subscription for this organization.",bodyProperties:["scope","teamId","channelId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.createGraphSubscription",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions",queryParameters:[],requestBody:"json"},{description:"Remove one organization-wide Teams channel route.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.deleteChannelSettingsRoute",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes/{routeId}",queryParameters:[],requestBody:"none"},{description:"Disconnect the organization's Microsoft Teams tenant.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.disconnectConnection",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/connection",queryParameters:[],requestBody:"none"},{description:"Build the Teams app package as base64-encoded ZIP content.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getAppPackage",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/app-package/content",queryParameters:[],requestBody:"none"},{description:"Read whether the Teams app package can be downloaded.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getAppPackageStatus",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/app-package",queryParameters:[],requestBody:"none"},{description:"Read the organization's Microsoft Teams connection and subscription status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getConnection",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/connection",queryParameters:[],requestBody:"none"},{description:"List organization-wide Teams channel behavior and routes.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.listChannelSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings",queryParameters:[],requestBody:"none"},{description:"Renew due Teams subscriptions belonging to this organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.renewGraphSubscriptions",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions/renew",queryParameters:[],requestBody:"none"},{description:"Create a Microsoft Teams administrator consent URL for the organization.",bodyProperties:["returnTo","force"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/connect",queryParameters:[],requestBody:"json"},{description:"Update status reaction emojis for a Teams channel.",bodyProperties:["emojis"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.updateChannelEmojis",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/emojis",queryParameters:[],requestBody:"json"},{description:"Update organization-wide Teams channel response behavior.",bodyProperties:["responseMode","threadReplyMode","ambientInstruction","ambientRules"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.updateChannelSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}",queryParameters:[],requestBody:"json"},{description:"Create an organization invitation with compensating provider rollback.",bodyProperties:["email","expiresInDays","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.createInvite",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/invites",queryParameters:[],requestBody:"json"},{description:"Provision an organization membership when direct provisioning is enabled.",bodyProperties:["email","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.createMembership",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/memberships",queryParameters:[],requestBody:"json"},{description:"Read one organization person.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.getPerson",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/{personId}",queryParameters:[],requestBody:"none"},{description:"Read organization presentation settings.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.getSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/settings",queryParameters:[],requestBody:"none"},{description:"List the organization's groups. Pass scope=space with a spaceId to return only the groups that space can use.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/groups",queryParameters:["spaceId","cursor","identityId","includeMembershipLastObserved","limit","q","sort","direction","selectedId","sourceId","sourceType","scope"],requestBody:"none"},{description:"List where groups come from: directory sync and each connected app.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listGroupSources",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/group-sources",queryParameters:["sourceType"],requestBody:"none"},{description:"List organization invitations.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listInvites",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/invites",queryParameters:["cursor","direction","limit","role","search","sort","status"],requestBody:"none"},{description:"List membership labels for a bounded set of users.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listMembershipLabels",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/memberships/labels",queryParameters:["userId"],requestBody:"none"},{description:"List organization memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listMemberships",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/memberships",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the organization people roster.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listPeople",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people",queryParameters:["cursor","groupId","groupSourceId","groupSourceType","directory","includeTotal","limit","role","search","sort","direction"],requestBody:"none"},{description:"List applications observed for one organization person.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listPersonApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/{personId}/applications",queryParameters:["cursor","limit","q"],requestBody:"none"},{description:"List linked groups that can provision the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listProvisionableLinkedGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/provisionable-linked-groups",queryParameters:["scope","cursor","limit","search","selectedId"],requestBody:"none"},{description:"List roles available to organization memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listRoles",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/roles",queryParameters:[],requestBody:"none"},{description:"Revoke an organization invitation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.revokeInvite",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/invites/{inviteId}/revoke",queryParameters:[],requestBody:"none"},{description:"Search organization people available to a picker.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.searchPeople",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/search",queryParameters:["spaceId","includeAllDirectoryPeople","cursor","excludeCurrentSpace","limit","membersOnly","q","selectedId"],requestBody:"none"},{description:"Update an organization membership and synchronize its identity-provider state.",bodyProperties:["roleSlug","status","statusReason"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.updateMembership",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/memberships/{membershipId}",queryParameters:[],requestBody:"json"},{description:"Update organization presentation settings.",bodyProperties:["showProfilePictures"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.updateSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/settings",queryParameters:[],requestBody:"json"},{description:"Archive a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/archive",queryParameters:[],requestBody:"none"},{description:"Create an organization request session. Requires a signed-in user credential.",bodyProperties:["id","caseId","reuseExisting","destinationSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createOrganizationRequestSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/organization-request-sessions",queryParameters:[],requestBody:"json"},{description:"Create an organization request session and submit its initial message. Requires a signed-in user credential.",bodyProperties:["prewarmOnly","id","caseId","reuseExisting","destinationSpaceId","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createOrganizationRequestSessionAndSubmit",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/organization-request-sessions/submit",queryParameters:[],requestBody:"json"},{description:"Create a conversation session. Requires a signed-in user credential.",bodyProperties:["id","automation","visibility"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions",queryParameters:[],requestBody:"json"},{description:"Create a conversation session and submit its first message. Requires a signed-in user credential.",bodyProperties:["id","automation","visibility","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createSessionAndSubmit",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/submit",queryParameters:[],requestBody:"json"},{description:"Create a workflow-suggestion session. Requires a signed-in user credential.",bodyProperties:["id"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createWorkflowSuggestionSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/session-builders/workflow-suggestions",queryParameters:[],requestBody:"json"},{description:"Delete an artifact in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.deleteArtifact",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",queryParameters:[],requestBody:"none"},{description:"Download an accessible session artifact as a file; defaults to the current version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.downloadArtifact",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}/download",queryParameters:["version"],requestBody:"none",binaryResponse:!0},{description:"Download a file inside an accessible session's uploads or workspace directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.downloadFile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-download",queryParameters:["path","workflowRunId"],requestBody:"none",binaryResponse:!0},{description:"Request an automation response to an eligible existing message. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.forceResponse",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages/{messageId}/respond",queryParameters:[],requestBody:"none"},{description:"Copy a session and its runtime state into a new session. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:128,minLength:1,type:"string"}}],id:"sessions.fork",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/fork",queryParameters:[],requestBody:"none"},{description:"Get a session and its initial transcript window.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get an artifact in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getArtifact",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",queryParameters:[],requestBody:"none"},{description:"Read a case linked to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getCase",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases/{caseId}",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get a preview of a session runtime file.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getFilePreview",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-preview",queryParameters:["workflowRunId","path"],requestBody:"none"},{description:"Get an organization request destination. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getOrganizationRequestDestination",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/session-request-destinations/{destinationSpaceId}",queryParameters:[],requestBody:"none"},{description:"Probe the live runtime state for a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getRuntime",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get the live transcript snapshot for a session-owned subagent.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getSubagentSnapshot",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/subagents/{toolCallId}",queryParameters:["beforeSeq"],requestBody:"none"},{description:"Read a workflow approval belonging to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getWorkflowApproval",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/workflow-approvals/{approvalId}",queryParameters:["workflowRunId","runId"],requestBody:"none"},{description:"List sessions visible to the actor.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions",queryParameters:["limit","cursor","mine","includeArchived","excludeCustomAutomationSessions","includeTotalCount","search","purpose","after","before","updatedAfter","updatedBefore","sortBy","sortDir","status","triggeredByKind","automationId","createdBy"],requestBody:"none"},{description:"List artifacts in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listArtifacts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts",queryParameters:["limit","cursor","mine","createdByUserId","createdByAutomationId","sessionId","createdAtFrom","createdAtTo","updatedAtFrom","updatedAtTo"],requestBody:"none"},{description:"List readable cases linked to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List children of a session runtime directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listFileChildren",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-children",queryParameters:["workflowRunId","path"],requestBody:"none"},{description:"List files owned by a session runtime.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listFiles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/files",queryParameters:["workflowRunId"],requestBody:"none"},{description:"List a session transcript page.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listMessages",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List spaces that can receive an organization request. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listOrganizationRequestDestinations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/session-request-destinations",queryParameters:["cursor","q"],requestBody:"none"},{description:"List participants in a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listParticipants",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/participants",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List background tasks owned by a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listTasks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/tasks",queryParameters:["limit","cursor","status"],requestBody:"none"},{description:"List files uploaded to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listUploads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Pause the automation assigned to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.muteAutomation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/mute",queryParameters:[],requestBody:"none"},{description:"Prewarm a session runtime before an interaction.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.prewarmRuntime",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime/prewarm",queryParameters:[],requestBody:"none"},{description:"Rename a session.",bodyProperties:["title"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.rename",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",queryParameters:[],requestBody:"json"},{description:"Set who can open a session: the whole space, or only its creator. Requires a signed-in user credential.",bodyProperties:["visibility"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.setVisibility",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/visibility",queryParameters:[],requestBody:"json"},{description:"Start the browser attached to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.startBrowser",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/browser",queryParameters:[],requestBody:"none"},{description:"Count visible sessions by inbox status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.statusCounts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/status-counts",queryParameters:["limit","cursor","mine","includeArchived","excludeCustomAutomationSessions","includeTotalCount","search","purpose","after","before","updatedAfter","updatedBefore","sortBy","sortDir","status","triggeredByKind","automationId","createdBy"],requestBody:"none"},{description:"Submit a message to a conversation session. Requires a signed-in user credential.",bodyProperties:["clientMessageId","content","mode","model","thinkingLevel","timezone","page","mentions","skills","suppressAutomationWake"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.submitMessage",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",queryParameters:[],requestBody:"json"},{description:"Restore an archived session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.unarchive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unarchive",queryParameters:[],requestBody:"none"},{description:"Resume the automation assigned to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.unmuteAutomation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unmute",queryParameters:[],requestBody:"none"},{description:"Update the file browser state visible for a session.",bodyProperties:["directories","previewPath"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.updateFileVisibility",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-visibility",queryParameters:[],requestBody:"json"},{description:"Upload files into a writable session's uploads directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.uploadFiles",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",queryParameters:[],requestBody:"multipart"},{description:"Archive an organization skill while retaining its versions.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.archiveSkill",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}",queryParameters:[],requestBody:"none"},{description:"Create a skill definition.",bodyProperties:["description","scope","slug","title"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.createSkill",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills",queryParameters:[],requestBody:"json"},{description:"Create a draft version of a skill bundle.",bodyProperties:["files"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.createSkillVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions",queryParameters:[],requestBody:"json"},{description:"Delete a skill's open draft version, leaving the published version in place.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.discardSkillDraft",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/draft/discard",queryParameters:[],requestBody:"none"},{description:"Get a visible skill and its available versions.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.getSkill",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",queryParameters:[],requestBody:"none"},{description:"Get one visible skill version and its bundle files.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.getSkillVersion",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}",queryParameters:[],requestBody:"none"},{description:"List automations that currently use this skill.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.listSkillAutomations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/automations",queryParameters:["cursor","limit","search"],requestBody:"none"},{description:"List skills visible in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.listSkills",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills",queryParameters:[],requestBody:"none"},{description:"Publish a draft skill version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.publishSkillVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}/publish",queryParameters:[],requestBody:"none"},{description:"Replace a skill's tags.",bodyProperties:["tags","expectedTags"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.updateSkillTags",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/tags",queryParameters:[],requestBody:"json"},{description:"Archive a space role, reassigning members to a replacement role when required.",bodyProperties:["replacementRoleId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/archive",queryParameters:[],requestBody:"json"},{description:"Create a published space access role. Requires role write and publish permissions.",bodyProperties:["name","description","permissionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles",queryParameters:[],requestBody:"json"},{description:"Discard an unpublished space role draft.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.discard",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/discard",queryParameters:[],requestBody:"none"},{description:"Duplicate a role and its application capabilities into a published role.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.duplicate",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/duplicate",queryParameters:[],requestBody:"json"},{description:"Get a space access role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"List access roles in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles",queryParameters:["cursor","excludeRoleId","limit","search","sortBy","sortDir","type"],requestBody:"none"},{description:"Publish a space role draft.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.publish",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/publish",queryParameters:[],requestBody:"none"},{description:"Update a space access role. Updating a published role also requires publish permission.",bodyProperties:["name","description","permissionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",queryParameters:[],requestBody:"json"},{description:"Count blocked application actions for a space role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listBlockedActions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/blocked-actions",queryParameters:[],requestBody:"none"},{description:"List configurable application actions for a space connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listCatalog",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"none"},{description:"List application action grants for a space role and connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listGrants",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"none"},{description:"List application actions and the active roles blocked from each action.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listPermissions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions",queryParameters:[],requestBody:"none"},{description:"Replace a role's allowed application actions. Live roles require publish permission.",bodyProperties:["actionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.replaceGrants",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"json"},{description:"Replace the active roles blocked from an application action.",bodyProperties:["blockedRoleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.replaceRoles",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions/{actionSlug}",queryParameters:[],requestBody:"json"},{description:"Add every eligible member of a directory group to the current space.",bodyProperties:["accessRoleId","roleSlug","groupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.addGroupMembers",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/group-members",queryParameters:[],requestBody:"json"},{description:"Add or reactivate an organization member in the current space.",bodyProperties:["accessRoleId","roleSlug","email"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.addMember",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members",queryParameters:[],requestBody:"json"},{description:"Get semantic assignment-group routing settings for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.getSemanticAssignmentRouting",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",queryParameters:[],requestBody:"none"},{description:"Leave the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.leave",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members/leave",queryParameters:[],requestBody:"none"},{description:"List active members of the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.listMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/members",queryParameters:["accessRoleId","cursor","eligibleForAssignment","limit","roleSlug","search","userId"],requestBody:"none"},{description:"Revoke a member from the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.removeMember",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members/{membershipId}/remove",queryParameters:[],requestBody:"none"},{description:"Set the space's default routing assignment group.",bodyProperties:["defaultRoutingAssignmentGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.setDefaultAssignment",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/default-assignment",queryParameters:[],requestBody:"json"},{description:"Update semantic assignment-group routing for the current space.",bodyProperties:["allowUnassigned","assigneeMode","assignmentGroupIds","mode","skillIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.setSemanticAssignmentRouting",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",queryParameters:[],requestBody:"json"},{description:"Change a member's access role in the current space.",bodyProperties:["accessRoleId","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.updateMember",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/members/{membershipId}",queryParameters:[],requestBody:"json"},{description:"Update the current space profile.",bodyProperties:["agentPreferences","description","name","slug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.updateProfile",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/profile",queryParameters:[],requestBody:"json"},{description:"Archive a workflow at an explicit base revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.archiveWorkflow",idempotent:!0,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",precondition:"if-match",queryParameters:[],requestBody:"none"},{description:"Cancel a public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.cancelWorkflowRun",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/cancel",queryParameters:[],requestBody:"none"},{description:"Create a workflow and its initial revision.",bodyProperties:["description","key","metadata","name","source"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.createWorkflow",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows",queryParameters:[],requestBody:"json"},{description:"Queue a production run for a published workflow.",bodyProperties:["input","workflowId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.createWorkflowRun",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflow-runs",queryParameters:[],requestBody:"json"},{description:"Get one workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflow",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",queryParameters:[],requestBody:"none"},{description:"Get one workflow revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflowRevision",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}",queryParameters:[],requestBody:"none"},{description:"Get one public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflowRun",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}",queryParameters:[],requestBody:"none"},{description:"List workflow applications and action capabilities available in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowCapabilities",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-capabilities",queryParameters:["cursor","limit","q"],requestBody:"none"},{description:"List revisions of one workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRevisions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List or briefly wait for status events for one public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRunEvents",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/events",queryParameters:["cursor","limit","waitSeconds"],requestBody:"none"},{description:"List public workflow runs in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRuns",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs",queryParameters:["cursor","limit","status","workflowId"],requestBody:"none"},{description:"List workflows in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflows",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows",queryParameters:["cursor","includeArchived","limit"],requestBody:"none"},{description:"Publish a validated workflow revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.publishWorkflowRevision",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/publish",queryParameters:[],requestBody:"none"},{description:"Execute a draft workflow revision in the test environment.",bodyProperties:["input"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.testWorkflowRevision",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/test",queryParameters:[],requestBody:"json"},{description:"Update a workflow by creating a revision from an explicit base revision.",bodyProperties:["baseRevisionId","description","metadata","name","source"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.updateWorkflow",idempotent:!0,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",queryParameters:[],requestBody:"json"},{description:"Validate one workflow revision without executing it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.validateWorkflowRevision",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/validate",queryParameters:[],requestBody:"none"},{description:"Wait briefly for one public workflow run to change state.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.waitForWorkflowRun",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/wait",queryParameters:["timeoutSeconds"],requestBody:"none"}],FL=new Map(BI.map((e)=>[e.id,e]));var _I=4096,eq=new Set([".git",".DS_Store","node_modules"]);function rq(e,r){return Js(e,r).split(Ms).join("/")}async function Ys(e,r,i){let n=await KI(r,{withFileTypes:!0});for(let t of n){if(eq.has(t.name))continue;let a=xI(r,t.name);if(t.isDirectory())await Ys(e,a,i);else if(t.isFile())i.push(a)}}async function Bs(e){let r=sn(e),i=[];try{await Ys(r,r,i)}catch{throw X(`Could not read the bundle directory ${e}.`)}if(i.length===0)throw X(`${e} contains no files to push.`);if(i.length>xt)throw X(`${e} holds ${i.length} files, more than the ${xt} a push sends. Point --dir at the skill bundle itself.`);let n=[];for(let o of i.sort()){let s=await HI(o);n.push({contentBase64:s.toString("base64"),path:rq(r,o)})}let t=Buffer.byteLength(JSON.stringify(n),"utf8"),a=Ds-_I;if(t>a)throw X(`${e} encodes to ${t} bytes, over the ${a} a push can send. Point --dir at the skill bundle itself, or split the bundle.`);return n}function iq(e){throw X(`The bundle contains a path that escapes the output directory: ${e}.`)}function nq(e,r){let i=sn(e,r),n=Js(e,i),t=n===".."||n.startsWith(`..${Ms}`);if(n===""||t||sn(e,n)!==i)iq(r);return i}async function Fs(e,r,i){let n=sn(e);await js(Us(n),{recursive:!0});let t=await ZI(n).catch(()=>null);if(t&&!i.force)throw X(`${e} already exists. Pass --force to replace its contents with this version's bundle.`);let a=await FI(`${n}.pull-`),o=null;try{for(let s of r){let u=nq(a,s.path);await js(Us(u),{recursive:!0}),await QI(u,Buffer.from(s.contentBase64,"base64"))}if(t)await _t(n,`${a}.replaced`),o=`${a}.replaced`;try{await _t(a,n)}catch(s){let u=o;if(o=null,u)await _t(u,n).catch(()=>{throw X(`${e} could not be restored after a failed pull. The previous bundle is at ${u}.`)});throw s}if(o)await Gs(o,{force:!0,recursive:!0}).catch(()=>{});return o=null,r.map((s)=>s.path).sort()}finally{await Gs(a,{force:!0,recursive:!0})}}function ea(e,r){return[...r,e]}async function Ks(e,r){return(await e.get({skillId:r})).value.definition.tags}async function tq(e,r,i){let n=i.add.length>0||i.remove.length>0,t=i.set.length>0||i.clear;if(n&&t)throw X("Use --add/--remove to change tags, or --set/--clear to replace them.");if(i.clear&&i.set.length>0)throw X("--clear removes every tag, so it cannot be combined with --set.");if(i.clear)return{tags:[]};if(i.set.length>0)return{tags:[...new Set(i.set)]};if(!n)return null;let a=await Ks(e,r),o=new Set(i.remove),s=a.filter((u)=>!o.has(u));return{expectedTags:a,tags:[...new Set([...s,...i.add])]}}function aq(e){let r=e.files;if(!(Array.isArray(r)&&r.length>0&&r.every((n)=>typeof n.path==="string"&&typeof n.contentBase64==="string")))throw Ae("The Action API returned a skill version with no bundle files.");if(!r.some((n)=>n.path.trim().replace(/\\/gu,"/")==="SKILL.md"))throw Ae("The Action API returned a bundle with no SKILL.md.");return r}async function oq(e,r,i){let a=(await e.get({skillId:r})).value.versions.filter((o)=>o.status===i).sort((o,s)=>s.versionNumber-o.versionNumber)[0];if(!a)throw X(`Skill ${r} has no ${i} version. Pass --version to pull a specific one.`);return a.id}function ra(e,r,i){let n=e.command("skill-project").description("Author skill bundles and merge tags safely"),t=async(o,s)=>{let u=i(o),l=(await M(o,r,{reporter:u})).skills,d=await s(l);u.result(d.value,d.human)},a=async(o,s,u)=>{if(await oi({command:o,dependencies:r,message:s,yes:u}))return!0;let l=si();return i(o).result(l.value,l.human),!1};n.command("tags").description("Show or change a skill's tags").argument("<id>","skill ID").option("--add <tag>","add a tag, keeping the rest, repeatable",ea,[]).option("--remove <tag>","remove a tag, keeping the rest, repeatable",ea,[]).option("--set <tag>","replace every tag with these, repeatable",ea,[]).option("--clear","remove every tag",!1).option("--yes","confirm the tag mutation",!1).action(async(o,s,u)=>{let l=i(u),d=(await M(u,r,{reporter:l})).skills,c=await tq(d,o,s);if(!c){let I=await Ks(d,o);l.result({skillId:o,tags:I},I.join(", ")||"No tags.");return}if(!await a(u,`Update tags for skill ${o}?`,s.yes))return;let p=await d.updateTags({skillId:o,...c});l.result(p.value,p.human)}),n.command("pull").description("Write a skill version's bundle files into a directory").argument("<id>","skill ID").option("--dir <path>","directory to write the bundle into").option("--version <id>","skill version to pull; defaults to the published one").option("--draft","pull the open draft instead of the published version",!1).option("--force","replace the directory's contents if it already exists",!1).action(async(o,s,u)=>{let l=i(u),d=(await M(u,r,{reporter:l})).skills,c=s.dir??o,p=s.version??await oq(d,o,s.draft?"draft":"published"),I=await d.getVersion({skillId:o,skillVersionId:p}),f=await Fs(c,aq(I.value),{force:s.force});l.result({directory:c,files:f,skillId:o,skillVersionId:p},`Wrote ${f.length} file${f.length===1?"":"s"} to ${c}.`)}),n.command("push").description("Create a draft version from a directory of bundle files").argument("<id>","skill ID").option("--dir <path>","directory holding the bundle").option("--yes","confirm draft creation",!1).action(async(o,s,u)=>{let l=await Bs(s.dir??o);if(!await a(u,`Create a draft bundle for skill ${o}?`,s.yes))return;await t(u,async(d)=>await d.createVersion({body:{files:l},skillId:o}))})}function ia(e,r,i){let n=e.command("context").description("Manage the active organization and space");n.command("list").description("List spaces available to the selected principal").action(async(t,a)=>{let o=i(a),u=await(await M(a,r,{reporter:o})).context.list();o.result(u.value,u.human)}),n.command("show").description("Show the active profile, organization, and space").action(async(t,a)=>{let o=i(a),u=await(await M(a,r,{reporter:o})).context.show();o.result(u.value,u.human)}),n.command("use").description("Select a space by ID or key for the active profile").argument("<space>","space ID or key").action(async(t,a,o)=>{let s=i(o),l=await(await M(o,r,{reporter:s})).context.use(t);s.result(l.value,l.human)})}import{open as sq}from"node:fs/promises";var sr=262144;function Hs(e,r){if(Buffer.byteLength(e,"utf8")>sr)throw X(`${r} must be ${sr} bytes or smaller.`)}async function uq(e){let r=[],i=0;for await(let n of process.stdin){let t=Buffer.isBuffer(n)?n:Buffer.from(String(n));if(i+=t.byteLength,i>sr)throw X(`${e} must be ${sr} bytes or smaller.`);r.push(t)}return Buffer.concat(r).toString("utf8")}async function lq(e,r){if(e==="-")return await uq(r);let i=await sq(e,"r");try{let n=Buffer.alloc(sr+1),t=0;while(t<n.byteLength){let{bytesRead:a}=await i.read(n,t,n.byteLength-t,t);if(a===0)break;t+=a}if(t>sr)throw X(`${r} must be ${sr} bytes or smaller.`);return n.subarray(0,t).toString("utf8")}finally{await i.close()}}async function un(e,r,i="Workflow input"){if(e.input!==void 0===(e.inputFile!==void 0))throw X("Specify exactly one of --input or --input-file.");if(e.input!==void 0)return Hs(e.input,i),Zt(e.input);let n=e.inputFile,t;try{t=n==="-"&&r.readStdin?await r.readStdin():await lq(n,i)}catch(a){if(a instanceof $)throw a;throw X(`Could not read ${i.toLowerCase()} from ${n}.`)}return Hs(t,i),Zt(t,"--input-file")}var Zs=new Set(["queued","running","waiting","succeeded","failed","cancelled"]);function dq(e){if(e===void 0)return;if(!/^\d+$/u.test(e))throw X("--limit must be an integer between 1 and 100.");let r=Number(e);if(!Number.isInteger(r)||r<1||r>100)throw X("--limit must be an integer between 1 and 100.");return r}function cq(e){if(e===void 0)return;if(!Zs.has(e))throw X(`--status must be one of: ${[...Zs].join(", ")}.`);return e}function fq(e){return`${e.createdAt} ${e.type} ${e.id} ${JSON.stringify(e.data)}`}async function mq(e){let r=new AbortController,i=()=>r.abort();process.once("SIGINT",i);try{return await e(r.signal)}finally{process.removeListener("SIGINT",i)}}async function ui(e,r,i){return(await M(e,r,{reporter:i})).workflows}function pq(e,r,i){if(!i){e.result(r.value,r.human);return}let n=r.value;e.stream({eventCount:n.eventCount,nextCursor:n.nextCursor,run:n.run,stopped:n.stopped,type:"summary"},"",!0)}function na(e,r,i){e.command("run").description("Run the published workflow revision in production").argument("<key>","workflow key").option("--input <json>","JSON workflow input (visible in process arguments)").option("--input-file <path>","read JSON workflow input from a file, or - for stdin").option("--wait","wait for a terminal run state",!1).action(async(t,a,o)=>{let s=i(o),u=await(await ui(o,r,s)).run({input:await un(a,r),key:t,wait:a.wait??!1});s.result(u.value,u.human)});let n=e.command("runs").description("Inspect and control production workflow runs");n.command("list").description("List a cursor-bounded page of workflow runs").option("--cursor <cursor>","opaque resume cursor").option("--limit <number>","page size from 1 to 100").option("--status <status>","filter by run status").option("--workflow <key>","filter by workflow key").action(async(t,a)=>{let o=i(a),s=dq(t.limit),u=cq(t.status),l=await(await ui(a,r,o)).runsList({...t.cursor?{cursor:t.cursor}:{},...s?{limit:s}:{},...u?{status:u}:{},...t.workflow?{workflowKey:t.workflow}:{}});o.result(l.value,l.human)}),n.command("get").description("Get one workflow run").argument("<run-id>","workflow run ID").action(async(t,a,o)=>{let s=i(o),u=await(await ui(o,r,s)).runGet({runId:t});s.result(u.value,u.human)}),n.command("watch").description("Watch durable workflow-run events until completion or Ctrl-C").argument("<run-id>","workflow run ID").option("--cursor <cursor>","opaque event resume cursor").option("--jsonl","stream one stable JSON object per line",!1).action(async(t,a,o)=>{let s=i(o),u=a.jsonl??!1;if(u&&s.json)throw X("--jsonl cannot be combined with the global --json option.");let l=await mq(async(d)=>(await ui(o,r,s)).runWatch({captureEvents:s.json,...a.cursor?{cursor:a.cursor}:{},...!s.json?{onEvent:(c)=>s.stream({event:c,type:"event"},fq(c),u)}:{},runId:t,signal:d}));pq(s,l,u)}),n.command("cancel").description("Request cancellation of one workflow run").argument("<run-id>","workflow run ID").action(async(t,a,o)=>{let s=i(o),u=await(await ui(o,r,s)).runCancel({runId:t});s.result(u.value,u.human)})}async function fe(e,r,i){return(await M(e,r,{reporter:i})).workflows}function ta(e,r,i){let n=e.command("workflow-project").description("Author and manage workflows as code");na(n,r,i),n.command("init").description("Initialize a local Action workflow project").argument("[directory]","project directory").action(async(t,a,o)=>{let s=i(o),u=await(await fe(o,r,s)).init({...t?{directory:t}:{}});s.result(u.value,u.human)}),n.command("capabilities").description("Discover workflow application actions and connected accounts").argument("[application]","application slug or name; include it to fetch full action schemas").action(async(t,a,o)=>{let s=i(o),u=await(await fe(o,r,s)).capabilities({...t?{application:t}:{}});s.result(u.value,u.human)}),n.command("list").description("List workflows in the active space").option("--include-archived","include archived workflows",!1).action(async(t,a)=>{let o=i(a),s=await(await fe(a,r,o)).list({includeArchived:t.includeArchived===!0});o.result(s.value,s.human)}),n.command("pull").description("Pull latest workflow revisions into the local project").argument("[key]","workflow key").option("--published","pull published revisions for inspection",!1).option("--output <directory>","output directory for --published").option("--force","overwrite local divergence",!1).action(async(t,a,o)=>{let s=i(o);if(a.published&&!a.output)throw X("--published requires --output so inspection files cannot replace the authoring base.");if(a.output&&!a.published)throw X("--output can only be used with --published.");let u=await(await fe(o,r,s)).pull({force:a.force??!1,...t?{key:t}:{},...a.output?{outputDirectory:a.output}:{},published:a.published??!1});s.result(u.value,u.human)}),n.command("status").description("Compare local workflows with their lockfile and remote revisions").option("--offline","compare only local state and the lockfile",!1).action(async(t,a)=>{let o=i(a),s=await(await fe(a,r,o)).status({offline:t.offline??!1});o.result(s.value,s.human)}),n.command("diff").description("Show canonical metadata and source differences").argument("<key>","workflow key").action(async(t,a,o)=>{let s=i(o),u=await(await fe(o,r,s)).diff({key:t});s.result(u.value,u.human)}),n.command("validate").description("Validate local workflow files and optionally the remote draft").argument("[key]","workflow key").option("--remote","also validate the matching remote revision",!1).action(async(t,a,o)=>{let s=i(o),u=await(await fe(o,r,s)).validate({...t?{key:t}:{},remote:a.remote??!1});s.result(u.value,u.human)}),n.command("push").description("Create or update workflow drafts without publishing").argument("[key]","workflow key").action(async(t,a,o)=>{let s=i(o),u=await(await fe(o,r,s)).push({...t?{key:t}:{}});s.result(u.value,u.human)}),n.command("test").description("Start a real test run for one unpublished workflow draft").addHelpText("after",`
201
+ This is not a simulated dry run. Connector actions may change external systems.`).argument("<key>","workflow key").option("--input <json>","JSON test input (visible in process arguments)").option("--input-file <path>","read JSON test input from a file, or - for stdin").option("--wait","wait for the test run to finish",!1).action(async(t,a,o)=>{let s=i(o),u=await(await fe(o,r,s)).test({input:await un(a,r),key:t,wait:a.wait??!1});s.result(u.value,u.human)}),n.command("publish").description("Publish one exact workflow revision").argument("<key>","workflow key").option("--revision <revision-id>","revision to publish; defaults to the locked latest revision").option("--yes","confirm the production change",!1).action(async(t,a,o)=>{let s=i(o);if(!await oi({command:o,dependencies:r,message:`Publish workflow "${t}" to production?`,yes:a.yes??!1})){let d=si();s.result(d.value,d.human);return}let l=await(await fe(o,r,s)).publish({confirmed:!0,key:t,...a.revision?{revisionId:a.revision}:{}});s.result(l.value,l.human)}),n.command("archive").description("Archive one workflow without deleting its history").argument("<key>","workflow key").option("--yes","confirm the production change",!1).action(async(t,a,o)=>{let s=i(o);if(!await oi({command:o,dependencies:r,message:`Archive workflow "${t}"?`,yes:a.yes??!1})){let d=si();s.result(d.value,d.human);return}let l=await(await fe(o,r,s)).archive({confirmed:!0,key:t});s.result(l.value,l.human)}),n.command("revisions").description("List immutable revisions for one workflow").argument("<key>","workflow key").action(async(t,a,o)=>{let s=i(o),u=await(await fe(o,r,s)).revisions({key:t});s.result(u.value,u.human)})}import{homedir as Iq}from"node:os";import{posix as qq,win32 as hq}from"node:path";function aa(e={}){let r=e.env??process.env,i=e.homeDir?.trim()||r.HOME?.trim()||Iq();if(!i)throw Error("The Action CLI could not determine the current user's home directory.");let n=e.platform??process.platform,t=r.XDG_CONFIG_HOME?.trim(),a=n==="win32"?hq:qq,o=n==="win32"?a.join(r.APPDATA?.trim()||a.join(i,"AppData","Roaming"),"action"):n==="darwin"?a.join(i,"Library","Application Support","action"):a.join(t||a.join(i,".config"),"action");return{configDir:o,profilesFile:a.join(o,"profiles.json")}}import{closeSync as Lr,chmodSync as wq,constants as Te,mkdirSync as yq,openSync as ln,readFileSync as ua,renameSync as Aq,unlinkSync as li,writeSync as xs,fsyncSync as oa,fchmodSync as _s,lstatSync as la}from"node:fs";import{randomUUID as eu}from"node:crypto";var gq=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/u,dn=384,Qs=448,sa=1,Cq=5000,kq=300000,bq=25,Rq=new Int32Array(new SharedArrayBuffer(4));class k extends Error{constructor(e){super(e);this.name="ProfileConfigError"}}function Xq(){return{currentProfile:null,profiles:Object.create(null),version:sa}}function Be(e,r){return Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0}function Wr(e,r,i=500){if(typeof e!=="string"||!e.trim()||e.length>i)throw new k(`${r} must be a non-empty string.`);return e.trim()}function Lq(e,r){if(e===void 0)return;if(e===null)return null;return Wr(e,r,300)}function ge(e){let r=e.trim();if(!gq.test(r))throw new k("Profile names must start with a letter or number and contain at most 64 letters, numbers, dots, underscores, or hyphens.");return r}function Wq(e,r){let i=Wr(e,r,2000),n;try{n=new URL(i)}catch{throw new k(`${r} must be a valid URL.`)}if(n.protocol!=="https:")throw new k(`${r} must use HTTPS.`);if(n.username||n.password||n.search||n.hash)throw new k(`${r} cannot contain credentials, a query, or a fragment.`);if(n.pathname!=="/")throw new k(`${r} must be an HTTPS origin without a path.`);return n.origin}function Sq(e){let r=Wr(e,"apiUrl",2000),i;try{i=new URL(r)}catch{throw new k("apiUrl must be a valid URL.")}let n=i.hostname==="localhost"||i.hostname==="127.0.0.1"||i.hostname==="[::1]";if(i.protocol!=="https:"&&!(i.protocol==="http:"&&n))throw new k("apiUrl must use HTTPS, except for a local loopback URL.");if(i.username||i.password||i.search||i.hash)throw new k("apiUrl cannot contain credentials, a query, or a fragment.");return i.pathname=i.pathname.replace(/\/+$/u,""),i.toString().replace(/\/$/u,"")}function Xr(e,r){if(e===null)return null;if(!e||typeof e!=="object"||Array.isArray(e))throw new k(`${r} must be an object or null.`);let i=e,n=Lq(i.name,`${r}.name`);return{id:Wr(i.id,`${r}.id`,300),...n!==void 0?{name:n}:{}}}function ru(e){if(!e||typeof e!=="object"||Array.isArray(e))throw new k("Each profile must be an object.");let r=e;if(!r.auth||typeof r.auth!=="object"||Array.isArray(r.auth))throw new k("profile.auth must be an object.");let i=r.auth;return{apiUrl:Sq(r.apiUrl),auth:{clientId:Wr(i.clientId,"profile.auth.clientId",300),issuer:Wq(i.issuer,"profile.auth.issuer")},organization:Xr(r.organization,"profile.organization"),space:Xr(r.space,"profile.space")}}function zq(e){let r;try{r=JSON.parse(e)}catch{throw new k("The Action CLI profile configuration is not valid JSON.")}if(!r||typeof r!=="object"||Array.isArray(r))throw new k("The Action CLI profile configuration must be an object.");let i=r;if(i.version!==sa)throw new k("The Action CLI profile configuration version is unsupported.");if(!i.profiles||typeof i.profiles!=="object"||Array.isArray(i.profiles))throw new k("profiles must be an object.");let n=Object.create(null);for(let[a,o]of Object.entries(i.profiles))n[ge(a)]=ru(o);let t=i.currentProfile===null?null:ge(Wr(i.currentProfile,"currentProfile",64));if(t&&!Be(n,t))throw new k(`The current profile "${t}" does not exist.`);return{currentProfile:t,profiles:n,version:sa}}function vq(e){try{let i=la(e);if(i.isSymbolicLink()||!i.isFile())throw new k("The profile configuration must be a regular file, not a link.")}catch(i){if(i.code==="ENOENT")return null;throw i}let r;try{r=ln(e,Te.O_RDONLY|(Te.O_NOFOLLOW??0))}catch(i){if(i.code==="ENOENT")return null;if(i.code==="ELOOP")throw new k("The profile configuration must not be a symbolic link.");throw i}try{return _s(r,dn),ua(r,"utf8")}finally{Lr(r)}}function da(e){yq(e.configDir,{mode:Qs,recursive:!0});let r=la(e.configDir);if(r.isSymbolicLink()||!r.isDirectory())throw new k("The Action CLI configuration directory must be a real directory, not a link.");wq(e.configDir,Qs)}function Pq(e){let r;try{r=la(e)}catch(n){if(n.code==="ENOENT")return!0;throw n}if(r.isSymbolicLink()||!r.isFile())throw new k("The Action CLI profile lock must be a regular file.");let i={};try{i=JSON.parse(ua(e,"utf8"))}catch{}if(typeof i.pid==="number")try{return process.kill(i.pid,0),!1}catch(n){if(n.code!=="ESRCH")return!1;return li(e),!0}if(Date.now()-r.mtimeMs<=kq)return!1;return li(e),!0}function Oq(e,r){try{if(JSON.parse(ua(e,"utf8")).token===r)li(e)}catch(i){if(i.code!=="ENOENT")throw i}}function ur(e,r){da(e);let i=`${e.profilesFile}.lock`,n=Date.now()+Cq,t=eu();while(!0){let a=null,o=!1;try{a=ln(i,Te.O_CREAT|Te.O_EXCL|Te.O_WRONLY,dn),o=!0,xs(a,JSON.stringify({pid:process.pid,token:t})),oa(a),Lr(a),a=null;break}catch(s){if(a!==null)Lr(a);if(o)try{li(i)}catch{}if(s.code!=="EEXIST")throw s;if(Pq(i))continue;if(Date.now()>=n)throw new k("Another Action CLI process is updating the profile file.");Atomics.wait(Rq,0,0,bq)}}try{return r()}finally{Oq(i,t)}}function lr(e,r){da(e);let i=`${e.profilesFile}.${process.pid}.${eu()}.tmp`,n=null;try{n=ln(i,Te.O_CREAT|Te.O_EXCL|Te.O_WRONLY,dn);let t=`${JSON.stringify(r,null,2)}
202
+ `;if(xs(n,t,void 0,"utf8"),_s(n,dn),oa(n),Lr(n),n=null,Aq(i,e.profilesFile),process.platform!=="win32"){let a=ln(e.configDir,Te.O_RDONLY);try{oa(a)}finally{Lr(a)}}}catch(t){if(n!==null)Lr(n);try{li(i)}catch{}throw t}}function Ye(e,r){return{name:e,apiUrl:r.apiUrl,auth:{...r.auth},organization:r.organization?{...r.organization}:null,space:r.space?{...r.space}:null}}class cn{paths;constructor(e=aa()){this.paths=e}loadDocument(){da(this.paths);let e=vq(this.paths.profilesFile);return e===null?Xq():zq(e)}list(){let e=this.loadDocument();return Object.entries(e.profiles).sort(([r],[i])=>r.localeCompare(i)).map(([r,i])=>Ye(r,i))}currentName(){return this.loadDocument().currentProfile}get(e){let r=this.loadDocument(),i=e?ge(e):r.currentProfile;if(!i)throw new k("No Action CLI profile is selected.");let n=Be(r.profiles,i);if(!n)throw new k(`Action CLI profile "${i}" does not exist.`);return Ye(i,n)}upsert(e,r,i=!1){let n=ge(e),t=ru(r);if(t.space&&!t.organization)throw new k("A space cannot be selected without an organization.");return ur(this.paths,()=>{let a=this.loadDocument();if(a.profiles[n]=t,i||!a.currentProfile)a.currentProfile=n;return lr(this.paths,a),Ye(n,t)})}use(e){let r=ge(e);return ur(this.paths,()=>{let i=this.loadDocument(),n=Be(i.profiles,r);if(!n)throw new k(`Action CLI profile "${r}" does not exist.`);return i.currentProfile=r,lr(this.paths,i),Ye(r,n)})}remove(e){let r=ge(e);ur(this.paths,()=>{let i=this.loadDocument();if(!Be(i.profiles,r))throw new k(`Action CLI profile "${r}" does not exist.`);if(delete i.profiles[r],i.currentProfile===r)i.currentProfile=Object.keys(i.profiles).sort()[0]??null;lr(this.paths,i)})}selectOrganization(e,r){let i=ge(e),n=Xr(r,"organization");return ur(this.paths,()=>{let t=this.loadDocument(),a=Be(t.profiles,i);if(!a)throw new k(`Action CLI profile "${i}" does not exist.`);return a.organization=n,a.space=null,lr(this.paths,t),Ye(i,a)})}selectSpace(e,r){let i=ge(e),n=Xr(r,"space");return ur(this.paths,()=>{let t=this.loadDocument(),a=Be(t.profiles,i);if(!a)throw new k(`Action CLI profile "${i}" does not exist.`);if(!a.organization)throw new k("Select an organization before selecting a space.");return a.space=n,lr(this.paths,t),Ye(i,a)})}selectContext(e,r,i){let n=ge(e),t=Xr(r,"organization"),a=Xr(i,"space");return ur(this.paths,()=>{let o=this.loadDocument(),s=Be(o.profiles,n);if(!s)throw new k(`Action CLI profile "${n}" does not exist.`);return s.organization=t,s.space=a,lr(this.paths,o),Ye(n,s)})}clearContext(e){let r=ge(e);return ur(this.paths,()=>{let i=this.loadDocument(),n=Be(i.profiles,r);if(!n)throw new k(`Action CLI profile "${r}" does not exist.`);return n.organization=null,n.space=null,lr(this.paths,i),Ye(r,n)})}}function fn(e,r){e.write(r.endsWith(`
203
+ `)?r:`${r}
204
+ `)}function mn(e){let r=e.stdout??process.stdout,i=e.stderr??process.stderr;return{json:e.json,error(n){let t={error:{code:n.code,message:n.message,...n.details!==void 0?{details:n.details}:{}}};fn(i,e.json?JSON.stringify(t):`${n.code}: ${n.message}`)},info(n){if(!e.json)fn(i,n)},result(n,t){fn(r,e.json?JSON.stringify(n):typeof t==="string"?t:t())},stream(n,t,a){fn(r,a?JSON.stringify(n):t)}}}import{createHash as $q}from"node:crypto";class di extends Error{constructor(e){super(e);this.name="NonCanonicalJsonValueError"}}function G(e,r){return e<r?-1:e>r?1:0}function ca(e,r){if(e===null||typeof e==="string"||typeof e==="boolean")return e;if(typeof e==="number"){if(!Number.isFinite(e))throw new di("Canonical JSON does not support non-finite numbers.");return e}if(typeof e!=="object")throw new di(`Canonical JSON does not support ${typeof e} values.`);if(r.has(e))throw new di("Canonical JSON does not support cyclic values.");r.add(e);try{if(Array.isArray(e))return e.map((n)=>ca(n,r));let i=Object.getPrototypeOf(e);if(i!==Object.prototype&&i!==null)throw new di("Canonical JSON requires plain objects.");return Object.fromEntries(Object.entries(e).sort(([n],[t])=>G(n,t)).map(([n,t])=>[n,ca(t,r)]))}finally{r.delete(e)}}function Z(e){return`${JSON.stringify(ca(e,new Set),null,2)}
205
+ `}function We(e){let r=e.replace(/\r\n?/gu,`
206
+ `);return r.endsWith(`
207
+ `)?r:`${r}
208
+ `}function dr(e){return $q("sha256").update(e).digest("hex")}function pn(e){return dr(We(e))}function In(e,r){return dr(Z({source:We(r),workflow:e}))}class qn{diff(e,r,i={}){let n;if(typeof i==="function")n=i,i={};else if("callback"in i)n=i.callback;let t=this.castInput(e,i),a=this.castInput(r,i),o=this.removeEmpty(this.tokenize(t,i)),s=this.removeEmpty(this.tokenize(a,i));return this.diffWithOptionsObj(o,s,i,n)}diffWithOptionsObj(e,r,i,n){var t;let a=(q)=>{if(q=this.postProcess(q,i),n){setTimeout(function(){n(q)},0);return}else return q},o=r.length,s=e.length,u=1,l=o+s;if(i.maxEditLength!=null)l=Math.min(l,i.maxEditLength);let d=(t=i.timeout)!==null&&t!==void 0?t:1/0,c=Date.now()+d,p=[{oldPos:-1,lastComponent:void 0}],I=this.extractCommon(p[0],r,e,0,i);if(p[0].oldPos+1>=s&&I+1>=o)return a(this.buildValues(p[0].lastComponent,r,e));let f=-1/0,m=1/0,h=()=>{for(let q=Math.max(f,-u);q<=Math.min(m,u);q+=2){let w,A=p[q-1],b=p[q+1];if(A)p[q-1]=void 0;let g=!1;if(b){let _=b.oldPos-q;g=b&&0<=_&&_<o}let N=A&&A.oldPos+1<s;if(!g&&!N){p[q]=void 0;continue}if(!N||g&&A.oldPos<b.oldPos)w=this.addToPath(b,!0,!1,0,i);else w=this.addToPath(A,!1,!0,1,i);if(I=this.extractCommon(w,r,e,q,i),w.oldPos+1>=s&&I+1>=o)return a(this.buildValues(w.lastComponent,r,e))||!0;else{if(p[q]=w,w.oldPos+1>=s)m=Math.min(m,q-1);if(I+1>=o)f=Math.max(f,q+1)}}u++};if(n)(function q(){setTimeout(function(){if(u>l||Date.now()>c)return n(void 0);if(!h())q()},0)})();else while(u<=l&&Date.now()<=c){let q=h();if(q)return q}}addToPath(e,r,i,n,t){let a=e.lastComponent;if(a&&!t.oneChangePerToken&&a.added===r&&a.removed===i)return{oldPos:e.oldPos+n,lastComponent:{count:a.count+1,added:r,removed:i,previousComponent:a.previousComponent}};else return{oldPos:e.oldPos+n,lastComponent:{count:1,added:r,removed:i,previousComponent:a}}}extractCommon(e,r,i,n,t){let a=r.length,o=i.length,s=e.oldPos,u=s-n,l=0;while(u+1<a&&s+1<o&&this.equals(i[s+1],r[u+1],t))if(u++,s++,l++,t.oneChangePerToken)e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1};if(l&&!t.oneChangePerToken)e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1};return e.oldPos=s,u}equals(e,r,i){if(i.comparator)return i.comparator(e,r);else return e===r||!!i.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){let r=[];for(let i=0;i<e.length;i++)if(e[i])r.push(e[i]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,i){let n=[],t;while(e)n.push(e),t=e.previousComponent,delete e.previousComponent,e=t;n.reverse();let a=n.length,o=0,s=0,u=0;for(;o<a;o++){let l=n[o];if(!l.removed){if(!l.added&&this.useLongestToken){let d=r.slice(s,s+l.count);d=d.map(function(c,p){let I=i[u+p];return I.length>c.length?I:c}),l.value=this.join(d)}else l.value=this.join(r.slice(s,s+l.count));if(s+=l.count,!l.added)u+=l.count}else l.value=this.join(i.slice(u,u+l.count)),u+=l.count}return n}}class iu extends qn{constructor(){super(...arguments);this.tokenize=Tq}equals(e,r,i){if(i.ignoreWhitespace){if(!i.newlineIsToken||!e.includes(`
209
+ `))e=e.trim();if(!i.newlineIsToken||!r.includes(`
210
+ `))r=r.trim()}else if(i.ignoreNewlineAtEof&&!i.newlineIsToken){if(e.endsWith(`
211
+ `))e=e.slice(0,-1);if(r.endsWith(`
212
+ `))r=r.slice(0,-1)}return super.equals(e,r,i)}}var Vq=new iu;function fa(e,r,i){return Vq.diff(e,r,i)}function Tq(e,r){if(r.stripTrailingCr)e=e.replace(/\r\n/g,`
213
+ `);let i=[],n=e.split(/(\n|\r\n)/);if(!n[n.length-1])n.pop();for(let t=0;t<n.length;t++){let a=n[t];if(t%2&&!r.newlineIsToken)i[i.length-1]+=a;else i.push(a)}return i}var nu={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function ma(e,r,i,n,t,a,o){let s;if(!o)s={};else if(typeof o==="function")s={callback:o};else s=o;if(typeof s.context>"u")s.context=4;let u=s.context;if(s.newlineIsToken)throw Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!s.callback)return l(fa(i,n,s));else{let{callback:d}=s;fa(i,n,Object.assign(Object.assign({},s),{callback:(c)=>{let p=l(c);d(p)}}))}function l(d){if(!d)return;d.push({value:"",lines:[]});function c(w){return w.map(function(A){return" "+A})}let p=[],I=0,f=0,m=[],h=1,q=1;for(let w=0;w<d.length;w++){let A=d[w],b=A.lines||Eq(A.value);if(A.lines=b,A.added||A.removed){if(!I){let g=d[w-1];if(I=h,f=q,g)m=u>0?c(g.lines.slice(-u)):[],I-=m.length,f-=m.length}for(let g of b)m.push((A.added?"+":"-")+g);if(A.added)q+=b.length;else h+=b.length}else{if(I)if(b.length<=u*2&&w<d.length-2)for(let g of c(b))m.push(g);else{let g=Math.min(b.length,u);for(let _ of c(b.slice(0,g)))m.push(_);let N={oldStart:I,oldLines:h-I+g,newStart:f,newLines:q-f+g,lines:m};p.push(N),I=0,f=0,m=[]}h+=b.length,q+=b.length}}for(let w of p)for(let A=0;A<w.lines.length;A++)if(w.lines[A].endsWith(`
214
+ `))w.lines[A]=w.lines[A].slice(0,-1);else w.lines.splice(A+1,0,"\"),A++;return{oldFileName:e,newFileName:r,oldHeader:t,newHeader:a,hunks:p}}}function hn(e,r){if(!r)r=nu;if(Array.isArray(e)){if(e.length>1&&!r.includeFileHeaders)throw Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map((n)=>hn(n,r)).join(`
215
+ `)}let i=[];if(r.includeIndex&&e.oldFileName==e.newFileName)i.push("Index: "+e.oldFileName);if(r.includeUnderline)i.push("===================================================================");if(r.includeFileHeaders)i.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":"\t"+e.oldHeader)),i.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":"\t"+e.newHeader));for(let n=0;n<e.hunks.length;n++){let t=e.hunks[n];if(t.oldLines===0)t.oldStart-=1;if(t.newLines===0)t.newStart-=1;i.push("@@ -"+t.oldStart+","+t.oldLines+" +"+t.newStart+","+t.newLines+" @@");for(let a of t.lines)i.push(a)}return i.join(`
217
216
  `)+`
218
- `}function RW(i,f,w,l,t,n,W){if(typeof W==="function")W={callback:W};if(!(W===null||W===void 0?void 0:W.callback)){let A=$W(i,f,w,l,t,n,W);if(!A)return;return tt(A,W===null||W===void 0?void 0:W.headerOptions)}else{let{callback:A}=W;$W(i,f,w,l,t,n,Object.assign(Object.assign({},W),{callback:($)=>{if(!$)A(void 0);else A(tt($,W.headerOptions))}}))}}function Dz(i){let f=i.endsWith(`
219
- `),w=i.split(`
220
- `).map((l)=>l+`
221
- `);if(f)w.pop();else w.push(w.pop().slice(0,-1));return w}function qI(i){let f=_i(i.before),w=_i(i.after);if(f===w)return"";return RW(`a/${i.path}`,`b/${i.path}`,f,w,"","",{context:i.context??3})??""}function uW(i){let f=`workflows/${i.key}`,w=qI({after:i.after?ui(i.after.manifest):"",before:i.before?ui(i.before.manifest):"",path:`${f}/workflow.json`}),l=qI({after:i.after?.source??"",before:i.before?.source??"",path:`${f}/index.mjs`});return[w,l].filter(Boolean).join(`
222
- `)}import{randomUUID as mN}from"node:crypto";import{mkdir as SA,lstat as cl,open as Ju,readFile as Tl,readdir as qN,rename as gN,stat as CA,unlink as dN}from"node:fs/promises";import{basename as _N,dirname as Pl,join as pi,parse as sN,resolve as Uu}from"node:path";var Lu=FA(Cu(),1);var zu=Sn.source,AA="^[0-9a-f]{64}$",Xi={minLength:1,type:"string"},Su={properties:{type:{const:"object"}},required:["type"],type:"object"},MN={$id:Uw,additionalProperties:!1,properties:{$schema:{const:Uw},schemaVersion:{const:rf}},required:["$schema","schemaVersion"],type:"object"},JN={$id:Yw,additionalProperties:!1,properties:{$schema:{const:Yw},description:{anyOf:[{maxLength:2000,type:"string"},{type:"null"}]},inputs:Su,key:{maxLength:120,pattern:zu,type:"string"},name:{maxLength:200,minLength:1,pattern:"\\S",type:"string"},outputs:{anyOf:[Su,{type:"null"}]}},required:["$schema","inputs","key","name"],type:"object"},UN={additionalProperties:!1,properties:{commitSha:Xi,path:Xi,ref:Xi,repo:Xi},required:["commitSha","path","ref","repo"],type:"object"},YN={additionalProperties:!1,properties:{idempotencyKey:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"},revisionId:Xi},required:["idempotencyKey","revisionId"],type:"object"},FN={additionalProperties:!1,properties:{description:{anyOf:[{maxLength:2000,type:"string"},{type:"null"}]},name:{maxLength:200,minLength:1,pattern:"\\S",type:"string"}},required:["description","name"],type:"object"},XN={additionalProperties:!1,properties:{codeRef:UN,contentDigest:{pattern:AA,type:"string"},latestRevisionId:Xi,mutableLabels:FN,pendingPublication:YN,publishedRevisionId:{anyOf:[Xi,{type:"null"}]},remoteContentDigest:{pattern:AA,type:"string"},sourceDigest:{pattern:AA,type:"string"},validatedRevisionId:Xi,workflowId:Xi},required:["contentDigest","latestRevisionId","publishedRevisionId","sourceDigest","workflowId"],type:"object"},GN={$id:Fw,additionalProperties:!1,properties:{$schema:{const:Fw},organizationId:Xi,origin:Xi,schemaVersion:{const:rf},spaceId:Xi,workflows:{additionalProperties:XN,propertyNames:{maxLength:120,pattern:zu},type:"object"}},required:["$schema","organizationId","origin","schemaVersion","spaceId","workflows"],type:"object"},IA=new Lu.default({allErrors:!0,strict:!0}),ZN=IA.compile(MN),KN=IA.compile(JN),QN=IA.compile(GN);class H extends Error{issues;constructor(i,f){super(`${i} is invalid:
223
- ${f.map((w)=>`- ${w}`).join(`
224
- `)}`);this.name="ProjectValidationError",this.issues=f}}function BN(i){return(i??[]).map((f)=>{return`${f.instancePath||"/"} ${f.message??"is invalid"}`})}function kA(i,f,w){if(!f(i))throw new H(w,BN(f.errors))}function yu(i,f){try{return JSON.parse(i)}catch(w){let l=w instanceof Error?w.message:"Invalid JSON";throw new H(f,[l])}}function $A(i,f="action.json"){return kA(i,ZN,f),i}function Sl(i,f={}){let w=f.document??"workflow.json";if(kA(i,KN,w),f.expectedKey!==void 0&&i.key!==f.expectedKey)throw new H(w,[`/key must match its workflows/${f.expectedKey} directory`]);return i}function cw(i,f=".action/lock.json"){return kA(i,QN,f),i}function Ei(i){if(!Sn.test(i))throw new H("workflow key",["must be a portable lowercase, dash-separated identifier with at most 120 characters"])}function Ll(i,f="index.mjs"){if(Buffer.byteLength(i,"utf8")>1e6)throw new H(f,["must be 1000000 UTF-8 bytes or fewer"]);return i}import{randomUUID as VN}from"node:crypto";import{lstat as Tu,mkdir as cu,open as Pu,readFile as HN,readdir as uA,rename as jN,rm as vN}from"node:fs/promises";import{hostname as Eu}from"node:os";import{dirname as jt,join as Gi,resolve as zl}from"node:path";var ou="owner.json",Nu="ready",hN=50,xN=30000;function af(i,f){return i instanceof Error&&"code"in i&&i.code===f}function xt(i){return Gi(zl(i),".action","workflow-transactions")}function Du(i,f){Ei(f);let w=xt(i),l=Gi(w,f);return{directory:l,next:Gi(l,"next"),owner:Gi(l,ou),previous:Gi(l,"previous"),ready:Gi(l,Nu),root:w,target:Gi(zl(i),"workflows",f)}}async function mf(i){let f;try{f=await Pu(i,"r"),await f.sync()}catch(w){if(!af(w,"EINVAL")&&!af(w,"ENOTSUP")&&!af(w,"EISDIR")&&!af(w,"EPERM"))throw w}finally{await f?.close()}}async function ht(i,f){if(await jN(i,f),await mf(jt(i)),jt(i)!==jt(f))await mf(jt(f))}async function bu(i){try{let f=await Tu(i);if(f.isSymbolicLink()||!f.isFile())throw new H(i,["path must be a regular file, not a link"]);return!0}catch(f){if(af(f,"ENOENT"))return!1;throw f}}async function Nf(i){try{let f=await Tu(i);if(f.isSymbolicLink()||!f.isDirectory())throw new H(i,["path must be a real directory, not a link"]);return!0}catch(f){if(af(f,"ENOENT"))return!1;throw f}}async function Tw(i,f={}){if(!await Nf(i))return!1;let w=await uA(i,{withFileTypes:!0}),l=new Set(["workflow.json",lf]),t=w.filter((W)=>l.has(W.name)&&!W.isFile()).map((W)=>W.name).sort(ii);if(t.length>0)throw new H(i,[`required paths must be regular files: ${t.join(", ")}`]);let n=w.map((W)=>W.name).filter((W)=>!l.has(W)).sort(ii);if(n.length>0)throw new H(i,[`unsupported files for the v1 layout: ${n.join(", ")}`]);if(f.complete!==!1){let W=new Set(w.map(($)=>$.name)),A=[...l].filter(($)=>!W.has($));if(A.length>0)throw new H(i,[`required files are missing: ${A.join(", ")}`])}return!0}async function ON(i){if(!await bu(i))return null;let f;try{f=JSON.parse(await HN(i,"utf8"))}catch{return null}if(typeof f.createdAt!=="string"||typeof f.hostname!=="string"||!Number.isInteger(f.pid)||(f.pid??0)<=0||typeof f.token!=="string")return null;return f}function aN(i){let f=Date.parse(i.createdAt),w=Date.now()-f;if(!Number.isFinite(f)||w<0||w>xN)return!1;if(i.hostname!==Eu())return!0;try{return process.kill(i.pid,0),!0}catch(l){return!af(l,"ESRCH")}}async function RA(i){await vN(i.directory,{recursive:!0}),await mf(i.root)}async function yl(i,f,w){let l=Gi(zl(i),".action");if(!await Nf(l))return;let t=Du(i,f);if(!await Nf(t.root))return;let n=Gi(zl(i),"workflows");if(!await Nf(n))throw new H(n,["workflows path is missing during transaction recovery"]);for(let W=0;W<hN;W+=1){if(!await Nf(t.directory))return;let A=await uA(t.directory,{withFileTypes:!0}),$=new Set([ou,Nu,"next","previous"]),I=A.filter((y)=>!$.has(y.name)).map((y)=>y.name).sort(ii);if(I.length>0)throw new H(t.directory,[`unsupported transaction paths: ${I.join(", ")}`]);let k=await ON(t.owner),R=await Nf(t.target);if(k&&k.token!==w&&aN(k)){if(R)return;await new Promise((y)=>setTimeout(y,10));continue}if(R){await Tw(t.target),await RA(t);return}let C=await bu(t.ready),L=await Tw(t.next,{complete:C});if(await Tw(t.previous))await ht(t.previous,t.target);else if(L&&C)await ht(t.next,t.target);await RA(t);return}throw new H(t.directory,["workflow update is still in progress; retry"])}async function ru(i){let f=Gi(zl(i),".action");if(!await Nf(f))return;let w=xt(i);if(!await Nf(w))return;let l=await uA(w,{withFileTypes:!0});for(let t of l.sort((n,W)=>ii(n.name,W.name))){if(!t.isDirectory())throw new H(w,[`transaction path must be a real directory: ${t.name}`]);Ei(t.name),await yl(i,t.name)}}async function vt(i,f,w=420){let l=await Pu(i,"wx",w);try{await l.writeFile(f),await l.sync()}finally{await l.close()}}async function Mu(i){let f=Du(i.projectRoot,i.key),w=VN();await cu(f.directory),await mf(f.root);try{if(await vt(f.owner,`${JSON.stringify({createdAt:new Date().toISOString(),hostname:Eu(),pid:process.pid,token:w})}
225
- `,384),await cu(f.next),await mf(f.directory),await Promise.all([vt(Gi(f.next,"workflow.json"),i.manifest),vt(Gi(f.next,lf),i.source)]),await mf(f.next),await vt(f.ready,"",384),await mf(f.directory),i.currentExists)await ht(f.target,f.previous);await ht(f.next,f.target),await RA(f)}catch(l){try{await yl(i.projectRoot,i.key,w)}catch(t){let n=l instanceof Error?l.message:String(l);throw Error(`Workflow write failed (${n}) and recovery also failed.`,{cause:t})}throw l}}class Ot extends Error{constructor(i){super(`No action.json project was found at or above ${i}.`);this.name="ActionProjectNotFoundError"}}function oi(i,f){return i instanceof Error&&"code"in i&&i.code===f}async function pN(i){try{return await CA(i),!0}catch(f){if(oi(f,"ENOENT"))return!1;throw f}}async function ei(i){try{let f=await cl(i);if(f.isSymbolicLink()||!f.isDirectory())throw new H(i,["path must be a real directory, not a link"])}catch(f){if(!oi(f,"ENOENT"))throw f;try{await SA(i)}catch(w){if(!oi(w,"EEXIST"))throw w;await ei(i)}}}function $i(i){let f=Uu(i),w=pi(f,".action");return{actionDirectory:w,lockfile:pi(w,"lock.json"),manifest:pi(f,"action.json"),mutationLock:pi(w,"mutation.lock"),root:f,workflows:pi(f,"workflows")}}function Yu(i,f){Ei(f);let w=pi($i(i).workflows,f);return{directory:w,manifest:pi(w,"workflow.json"),source:pi(w,lf)}}async function eN(i=process.cwd()){let f=Uu(i);try{if(!(await CA(f)).isDirectory())f=Pl(f)}catch(w){if(!oi(w,"ENOENT"))throw w}while(!0){let w=pi(f,"action.json");try{if((await CA(w)).isFile())return f}catch(t){if(!oi(t,"ENOENT"))throw t}let l=Pl(f);if(l===f||f===sN(f).root)return null;f=l}}async function Fu(i=process.cwd()){let f=await eN(i);if(!f)throw new Ot(i);return f}async function iD(i){let f;try{f=await Ju(i,"r"),await f.sync()}catch(w){if(!oi(w,"EINVAL")&&!oi(w,"ENOTSUP")&&!oi(w,"EISDIR")&&!oi(w,"EPERM"))throw w}finally{await f?.close()}}async function fD(i){await iD(Pl(i))}async function wD(i,f,w={}){await SA(Pl(i),{recursive:!0});let l=pi(Pl(i),`.${_N(i)}.${process.pid}.${mN()}.tmp`),t;try{t=await Ju(l,"wx",w.mode??420),await t.writeFile(f),await t.sync(),await t.close(),t=void 0,await w.beforeRename?.(l,i),await gN(l,i),await fD(i)}catch(n){throw await t?.close().catch(()=>{}),await dN(l).catch((W)=>{if(!oi(W,"ENOENT"))throw W}),n}}async function Xu(i,f,w={}){let l=typeof f==="string"?Buffer.from(f):Buffer.from(f);try{if((await Tl(i)).equals(l))return!1}catch(t){if(!oi(t,"ENOENT"))throw t}return await wD(i,l,w),!0}async function LA(i,f){try{let w=await cl(i);if(w.isSymbolicLink()||!w.isFile())throw new H(f,["file must be a regular file, not a link"]);return yu(await Tl(i,"utf8"),f)}catch(w){if(oi(w,"ENOENT"))throw new H(f,["file is missing"]);throw w}}async function at(i){let f=$i(i);return $A(await LA(f.manifest,f.manifest),f.manifest)}async function ri(i){let f=$i(i);if(!await pN(f.lockfile))return null;return cw(await LA(f.lockfile,f.lockfile),f.lockfile)}async function Pw(i,f){let w=Yu(i,f);for(let l=0;l<3;l+=1){if(await yl(i,f),!await Tw(w.directory))return null;try{let t=await cl(w.directory);if(t.isSymbolicLink()||!t.isDirectory())throw new H(w.directory,["workflow path must be a real directory, not a link"]);let[n,W]=await Promise.all([LA(w.manifest,w.manifest),Tl(w.source,"utf8")]),A=await cl(w.directory);if(A.isSymbolicLink()||!A.isDirectory())throw new H(w.directory,["workflow path must be a real directory, not a link"]);if(t.dev!==A.dev||t.ino!==A.ino)continue;let $=Sl(n,{document:w.manifest,expectedKey:f}),I=_i(Ll(W,w.source));return{canonicalWorkflowJson:ui($),contentDigest:wt($,I),manifest:$,source:I,sourceDigest:ft(I)}}catch(t){if(oi(t,"ENOENT"))continue;throw t}}throw new H(w.directory,["workflow changed while it was read; retry"])}async function Ew(i){await ru(i);let f=$i(i).workflows,w;try{let n=await cl(f);if(n.isSymbolicLink()||!n.isDirectory())throw new H(f,["workflows path must be a real directory, not a link"]);w=await qN(f,{withFileTypes:!0})}catch(n){if(oi(n,"ENOENT"))return new Map;throw n}let l=w.filter((n)=>n.isDirectory()).map((n)=>n.name).sort(ii),t=new Map;for(let n of l){Ei(n);let W=await Pw(i,n);if(W)t.set(n,W)}return t}async function lD(i,f){return $A(f),await ei($i(i).root),await Xu($i(i).manifest,ui(f))}async function Rf(i,f){return cw(f),await ei($i(i).actionDirectory),await Xu($i(i).lockfile,ui(f))}async function mt(i,f,w){Sl(f);let l=Yu(i,f.key),t=_i(Ll(w,l.source)),n=ui(f),W=$i(i);await yl(i,f.key),await ei(W.actionDirectory),await ei(xt(i)),await ei(W.workflows);let A=await Tw(l.directory),[$,I]=A?await Promise.all([Tl(l.manifest),Tl(l.source)]):[null,null],k=!$?.equals(Buffer.from(n)),R=!I?.equals(Buffer.from(t));if(!k&&!R)return{manifestChanged:k,sourceChanged:R};return await Mu({currentExists:A,key:f.key,manifest:n,projectRoot:i,source:t}),{manifestChanged:k,sourceChanged:R}}async function Gu(i,f){let w=$i(i);if(await SA(w.root,{recursive:!0}),await Promise.all([ei(w.actionDirectory),ei(w.workflows)]),await lD(i,{$schema:Uw,schemaVersion:rf}),f)await Rf(i,_f(f))}class qt extends Error{constructor(i){super(`Another Action CLI process is mutating this project (${i}).`);this.name="ProjectMutationLockedError"}}async function tD(i,f={}){let l=$i(i).mutationLock,t=f.timeoutMs??5000;return await Xl({ensureParent:()=>ei($i(i).actionDirectory),invalidFileError:(n)=>new H(n,["mutation lock must be a regular file, not a link"]),path:l,timeoutError:(n)=>new qt(n),timeoutMs:t})}async function El(i,f,w){let l=await tD(i,w);try{return await f()}finally{await l.release()}}function gt(i){let{base:f,key:w,local:l,remote:t}=i;if(!f&&!l&&!t)return null;if(!f){let I=Boolean(l&&t&&l.contentDigest===t.contentDigest),k=l?t?I?"remote_only":"conflict":"new":"remote_only";return Zu({base:f,key:w,local:l,localModified:Boolean(l)&&!I,remote:t,remoteModified:Boolean(t),status:k})}let n=l?l.contentDigest!==f.contentDigest:!0,W=t?t.workflowId!==f.workflowId||t.latestRevisionId!==f.latestRevisionId||t.contentDigest!==f.contentDigest:!0,A=Boolean(W&&l&&t&&l.contentDigest===t.contentDigest);return Zu({base:f,key:w,local:l,localModified:A?!1:n,remote:t,remoteModified:W,status:!l?"missing":A?"remote_only":n&&W?"conflict":n?"local_only":W?"remote_only":"clean"})}function Zu(i){return{baseDigest:i.base?.contentDigest??null,baseRevisionId:i.base?.latestRevisionId??null,key:i.key,localDigest:i.local?.contentDigest??null,localModified:i.localModified,remoteDigest:i.remote?.contentDigest??null,remoteModified:i.remoteModified,remoteRevisionId:i.remote?.latestRevisionId??null,status:i.status}}class _t extends Error{refusals;constructor(i){super(`Pull would overwrite local divergence in: ${i.map((f)=>f.key).join(", ")}.`);this.name="PullRefusedError",this.refusals=i}}class ol extends Error{constructor(i){super(i);this.name="PullPlanStaleError"}}function zA(i){let f=Sl(i.manifest),w=_i(Ll(i.source));return{canonicalWorkflowJson:ui(f),...i.codeRef?{codeRef:i.codeRef}:{},contentDigest:wt(f,w),latestRevisionId:i.latestRevisionId,manifest:f,publishedRevisionId:i.publishedRevisionId,...i.remoteContentDigest?{remoteContentDigest:i.remoteContentDigest}:{},source:w,sourceDigest:ft(w),workflowId:i.workflowId}}function nD(i){return{...i.codeRef?{codeRef:i.codeRef}:{},contentDigest:i.contentDigest,latestRevisionId:i.latestRevisionId,mutableLabels:{description:i.manifest.description??null,name:i.manifest.name},publishedRevisionId:i.publishedRevisionId,...i.remoteContentDigest?{remoteContentDigest:i.remoteContentDigest}:{},sourceDigest:i.sourceDigest,workflowId:i.workflowId}}function dt(i,f){return{...nD(i),...f?.pendingPublication&&i.publishedRevisionId!==f.pendingPublication.revisionId?{pendingPublication:f.pendingPublication}:{},...f?.validatedRevisionId===i.latestRevisionId?{validatedRevisionId:f.validatedRevisionId}:{}}}function WD(i){if(i==="local_only")return"local_changes";if(i==="conflict")return"local_and_remote_changes";if(i==="missing")return"missing_local";return null}function Ku(i){let f=df(i.context);if(i.lockfile)cw(i.lockfile),Bi(i.lockfile,f);let w=i.lockfile?{...i.lockfile,workflows:{...i.lockfile.workflows}}:_f(f),l=new Map;for(let k of i.remote){let R=zA({...k.codeRef?{codeRef:k.codeRef}:{},latestRevisionId:k.latestRevisionId,manifest:k.manifest,publishedRevisionId:k.publishedRevisionId,...k.remoteContentDigest?{remoteContentDigest:k.remoteContentDigest}:{},source:k.source,workflowId:k.workflowId}),C=R.manifest.key;if(l.has(C))throw Error(`Remote pull contained duplicate workflow key ${C}.`);l.set(C,R)}let t=i.keys?new Set(i.keys):null,n=[...new Set([...i.local.keys(),...l.keys(),...Object.keys(w.workflows)])].filter((k)=>t?.has(k)??!0).sort(ii),W=[],A=[],$=[],I=[];for(let k of n){let R=Ri(i.lockfile,k)??null,C=i.local.get(k)??null,L=l.get(k)??null,z=gt({base:R,key:k,local:C,remote:L});if(!z)continue;if(I.push(z),C&&L&&C.contentDigest===L.contentDigest){w.workflows[k]=dt(L,R);continue}if(z.status==="clean"){if(L)w.workflows[k]=dt(L,R);continue}if(z.status==="remote_only"&&L){W.push({expectedLocalDigest:C?.contentDigest??null,key:k,manifest:L.manifest,source:L.source}),w.workflows[k]=dt(L,R);continue}let y=WD(z.status);if(L&&y&&i.overwriteDiverged===!0){W.push({expectedLocalDigest:C?.contentDigest??null,key:k,manifest:L.manifest,source:L.source}),w.workflows[k]=dt(L,R);continue}if(L&&y)A.push({key:k,reason:y,status:z.status});else $.push(k)}return cw(w),{baseLockDigest:i.lockfile?Bf(ui(i.lockfile)):null,context:f,nextLockfile:w,preserved:$,refusals:A,statuses:I,writes:W}}function AD(i){if(i.refusals.length>0)throw new _t(i.refusals)}async function Qu(i,f){AD(f),await El(i,async()=>{await at(i);let w=await ri(i);if(w)Bi(w,f.context);if((w?Bf(ui(w)):null)!==f.baseLockDigest)throw new ol("The project lockfile changed after pull planning.");for(let t of f.writes)if(((await Pw(i,t.key))?.contentDigest??null)!==t.expectedLocalDigest)throw new ol(`Workflow ${t.key} changed locally after pull planning; no files were overwritten.`);for(let t of f.writes)await mt(i,t.manifest,t.source);await Rf(i,f.nextLockfile)})}function Bu(i,f){if(i.type!=="object")throw TypeError(`workflow.json ${f} must be a JSON object schema with type "object".`);return i}function st(i){let f=i.manifest.outputs;return{...i.manifest.description!==void 0?{description:i.manifest.description}:{},metadata:{inputs:Bu(i.manifest.inputs,"inputs"),...f!==void 0?{outputs:f===null?null:Bu(f,"outputs")}:{}},name:i.manifest.name,source:{files:[{content:i.source,path:lf}]}}}function Df(i,f,w={}){if(f.workflowId!==i.id)throw TypeError(`Revision ${f.id} does not belong to workflow ${i.id}.`);let l=f.source.files.length===1?f.source.files[0]:void 0;if(!l||l.path!==lf)throw TypeError(`Revision ${f.id} must contain exactly one ${lf} source file.`);return zA({latestRevisionId:f.id,manifest:{$schema:Yw,...w.mutableLabels==="omit"?{}:{description:i.description},inputs:f.metadata.inputs,key:i.key,name:w.mutableLabels==="omit"?i.key:i.name,...f.metadata.outputs!==void 0?{outputs:f.metadata.outputs}:{}},publishedRevisionId:i.publishedRevisionId,remoteContentDigest:f.contentDigest,source:l.content,workflowId:i.id})}class Wi extends Error{key;constructor(i,f){super(f==="lockfile"?"The project workflow lockfile is missing. Run `action workflows pull` or `action workflows push` first.":f==="available"?`Workflow ${i} was not found locally, in the project lockfile, or remotely.`:`Workflow ${i} was not found ${f==="tracked"?"in the project lockfile":f}.`);this.name="WorkflowNotFoundError",this.key=i}}class Nl extends Error{key;constructor(i,f){super(`Workflow ${i} does not have a ${f} revision.`);this.name="WorkflowRevisionUnavailableError",this.key=i}}class ow extends Error{operation;polls;constructor(i,f){super(`Workflow run ${i} exceeded the bounded polling limit (${f}).`);this.name="WorkflowRunPollingLimitError",this.operation=i,this.polls=f}}class Dl extends Error{limit;constructor(i){super(`Workflow run watch exceeded the JSON capture limit (${i} events); use --jsonl to stream bounded-memory output.`);this.name="WorkflowRunCaptureLimitError",this.limit=i}}class bl extends Error{keys;constructor(i){super(`Published pull would overwrite local files for: ${i.join(", ")}.`);this.name="PublishedPullRefusedError",this.keys=i}}import{setTimeout as $D}from"node:timers/promises";import{randomUUID as ID}from"node:crypto";var kD=/^[a-z][a-z0-9-]{0,39}$/u;function yA(i){if(!kD.test(i.operation))throw TypeError("The idempotency operation must be a lowercase dash-separated name.");let f=Bf(ui({operation:i.operation,origin:i.origin,payload:i.payload,spaceId:i.spaceId,workflowKey:i.workflowKey}));return`action-cli-${i.operation}-${f}`}function Vu(i){return yA({...i,payload:{invocationId:ID(),value:i.payload}})}function Hu(i){return{api:i.api,context:df(i.context),projectRoot:i.projectRoot}}function rl(i,f,w,l){return yA({operation:f,origin:i.context.origin,payload:l,spaceId:i.context.spaceId,workflowKey:w})}function Ml(i,f,w,l){return Vu({operation:f,origin:i.context.origin,payload:l,spaceId:i.context.spaceId,workflowKey:w})}async function cA(i){let f=await ri(i.projectRoot);if(!f)throw new Wi("project","lockfile");return Bi(f,i.context),f}async function pt(i,f){Ei(f);let w=await cA(i),l=Ri(w,f);if(!l)throw new Wi(f,"tracked");return l}var ju=25,RD=100,uD=1440,CD=1440,SD=1e4,LD=1e4,zD=new Set(["succeeded","failed","cancelled"]);function TA(i){return zD.has(i.status)}function vu(i){let f=i??LD;if(!Number.isInteger(f)||f<0)throw TypeError("requestIntervalMs must be a non-negative integer.");return f}async function hu(i,f){if(i<=0)return!f?.aborted;try{return await $D(i,void 0,f?{signal:f}:void 0),!0}catch(w){if(f?.aborted)return!1;throw w}}async function xu(i,f,w,l){if(l?.aborted)return!1;if(i===null||f===0)return!0;let t=f-(Date.now()-i);return t<=0?!0:await w(t,l)}async function Ou(i,f){Ei(f);let l=(await i.api.listWorkflows({spaceId:i.context.spaceId})).find((t)=>t.key===f&&!t.archivedAt);if(!l)throw new Wi(f,"remote");return l.id}async function au(i,f,w){let l=await Ou(i,f);return await i.api.createWorkflowRun({input:w,spaceId:i.context.spaceId,workflowId:l},{idempotencyKey:Ml(i,"run",f,{input:w})})}async function mu(i,f={}){let w=f.workflowKey?await Ou(i,f.workflowKey):void 0;return await i.api.listWorkflowRuns({spaceId:i.context.spaceId,...f.status?{status:f.status}:{},...w?{workflowId:w}:{}},{...f.cursor?{cursor:f.cursor}:{},...f.pageSize?{pageSize:f.pageSize}:{}})}async function PA(i,f){return await i.api.getWorkflowRun({runId:f,spaceId:i.context.spaceId})}async function qu(i,f,w={}){let l=f,t=w.maxPolls??uD,n=vu(w.requestIntervalMs),W=w.requestDelay??hu,A=null;for(let $=0;$<t&&!TA(l);$+=1){if(!await xu(A,n,W,w.signal))return l;A=Date.now();try{l=await i.api.waitForWorkflowRun({runId:l.id,spaceId:i.context.spaceId,timeoutSeconds:ju},w.signal?{abortSignal:w.signal}:{})}catch(I){if(w.signal?.aborted)return l;throw I}}if(!TA(l)&&!w.signal?.aborted)throw new ow("wait",t);return l}function yD(i,f){return i.nextCursor??i.data.at(-1)?.cursor??f}async function gu(i,f){let w=f.maxPages??CD,l=f.maxCapturedEvents??SD,t=f.captureEvents??!0,n=vu(f.requestIntervalMs),W=f.requestDelay??hu;if(!Number.isInteger(l)||l<1)throw TypeError("maxCapturedEvents must be a positive integer.");let A=[],$=0,I=new Set,k=new Set(f.cursor?[f.cursor]:[]),R=f.cursor,C=await PA(i,f.runId),L=null;for(let z=0;z<w;z+=1){if(!await xu(L,n,W,f.signal))return{eventCount:$,events:A,nextCursor:R??null,run:C,stopped:!0};L=Date.now();let y;try{y=await i.api.listWorkflowRunEvents({...R?{cursor:R}:{},pageSize:RD,runId:f.runId,spaceId:i.context.spaceId,waitSeconds:ju},f.signal?{abortSignal:f.signal}:{})}catch(S){if(f.signal?.aborted)return{eventCount:$,events:A,nextCursor:R??null,run:C,stopped:!0};throw S}C=y.run;for(let S of y.data){if(I.has(S.id))continue;if(I.add(S.id),$+=1,t){if(A.length>=l)throw new Dl(l);A.push(S)}await f.onEvent?.(S)}let T=yD(y,R);if(T&&T!==R){if(k.has(T))throw nf("The Action API repeated a workflow-run event cursor.");k.add(T),R=T}let u=y.nextCursor===null;if(TA(C)&&u)return{eventCount:$,events:A,nextCursor:R??null,run:C,stopped:!1}}throw new ow("watch",w)}async function du(i,f){return await i.api.cancelWorkflowRun({runId:f,spaceId:i.context.spaceId},{idempotencyKey:rl(i,"run-cancel",f,{runId:f})})}function Jl(i){if(i===void 0)return null;let f=new Set;for(let w of i)Ei(w),f.add(w);return f}function et(i,f){let w=Jl(f);if(w){for(let l of w)if(!i.has(l))throw new Wi(l,"local")}return[...i.entries()].filter(([l])=>w?.has(l)??!0).sort(([l],[t])=>ii(l,t))}function _u(i,f){return[...new Set([...i.keys(),...Object.keys(f?.workflows??{})])].sort(ii).map((l)=>{let t=Ri(f,l)??null,n=i.get(l)??null,W=t?n?.contentDigest!==t.contentDigest:Boolean(n);return{baseDigest:t?.contentDigest??null,baseRevisionId:t?.latestRevisionId??null,key:l,localDigest:n?.contentDigest??null,localModified:W,remoteDigest:t?.contentDigest??null,remoteModified:!1,remoteRevisionId:t?.latestRevisionId??null,status:!t?"new":!n?"missing":W?"local_only":"clean"}})}function EA(i,f){return i.map((w)=>{let l=Ri(f,w.manifest.key),t=l?.mutableLabels!==void 0&&l.mutableLabels.name===w.manifest.name&&l.mutableLabels.description===(w.manifest.description??null);if(!(l?.workflowId===w.workflowId&&l.latestRevisionId===w.latestRevisionId&&l.remoteContentDigest!==void 0&&l.remoteContentDigest===w.remoteContentDigest&&t))return w;return{...w,contentDigest:l.contentDigest}})}function su(i){let f={...i};return delete f.pendingPublication,f}function cD(i){return i instanceof Ii&&i.status!==null&&!i.retryable}async function pu(i,f={}){return await El(i.projectRoot,async()=>{await at(i.projectRoot);let w=await Ew(i.projectRoot),l=et(w,f.keys),t=new Map(l.map(([I,k])=>[I,st(k)])),n=await ri(i.projectRoot)??_f(i.context);Bi(n,i.context);let W={failures:[],items:[],skipped:[],validationFailures:[]},A=async(I)=>{try{return await i.api.validateWorkflowRevision({revisionId:I.revisionId,spaceId:i.context.spaceId,workflowId:I.workflowId})}catch(k){return W.validationFailures.push({error:k,...I}),null}},$=async(I,k)=>{let R=Ri(n,I);if(!R||R.latestRevisionId!==k)throw Error(`Cannot record validation for stale workflow revision ${k}.`);n={...n,workflows:{...n.workflows,[I]:{...R,validatedRevisionId:k}}},await Rf(i.projectRoot,n)};for(let[I,k]of l){let R=Ri(n,I);if(R?.contentDigest===k.contentDigest){if(R.validatedRevisionId===R.latestRevisionId){W.skipped.push(I);continue}let C=await A({key:I,revisionId:R.latestRevisionId,workflowId:R.workflowId});if(!C)continue;if(C.ok){await $(I,R.latestRevisionId),W.skipped.push(I);continue}W.items.push({created:!1,key:I,revisionId:R.latestRevisionId,validation:C,workflowId:R.workflowId});continue}try{let C=t.get(I);if(!C)throw Error(`Missing validated payload for ${I}.`);let L=rl(i,R?"update":"create",I,{baseRevisionId:R?.latestRevisionId??null,contentDigest:k.contentDigest,workflowId:R?.workflowId??null}),z=R?await i.api.updateWorkflow({...C,baseRevisionId:R.latestRevisionId,ifMatch:R.latestRevisionId,spaceId:i.context.spaceId,workflowId:R.workflowId},{idempotencyKey:L}):await i.api.createWorkflow({...C,key:I,spaceId:i.context.spaceId},{idempotencyKey:L}),y=Df(z.workflow,z.revision);n={...n,workflows:{...n.workflows,[I]:{contentDigest:k.contentDigest,latestRevisionId:y.latestRevisionId,mutableLabels:{description:y.manifest.description??null,name:y.manifest.name},...R?.pendingPublication&&y.publishedRevisionId!==R.pendingPublication.revisionId?{pendingPublication:R.pendingPublication}:{},publishedRevisionId:y.publishedRevisionId,remoteContentDigest:z.revision.contentDigest,sourceDigest:k.sourceDigest,workflowId:y.workflowId}}},await Rf(i.projectRoot,n);let T=await A({key:I,revisionId:z.revision.id,workflowId:z.workflow.id});if(!T)continue;if(T.ok)await $(I,z.revision.id);W.items.push({created:!R,key:I,revisionId:z.revision.id,validation:T,workflowId:z.workflow.id})}catch(C){W.failures.push({error:C,key:I})}}return W})}async function eu(i,f,w,l){let t=await pt(i,f),n=l??t.latestRevisionId;return await i.api.testWorkflowRevision({input:w,revisionId:n,spaceId:i.context.spaceId,workflowId:t.workflowId},{idempotencyKey:Ml(i,"test",f,{input:w,revisionId:n,workflowId:t.workflowId})})}async function iC(i,f,w){return await El(i.projectRoot,async()=>{let l=await cA(i),t=Ri(l,f);if(!t)throw new Wi(f,"tracked");let n=w??t.latestRevisionId;if(!n)throw new Nl(f,"base");let W=t.pendingPublication?.revisionId===n?t.pendingPublication.idempotencyKey:Ml(i,"publish",f,{revisionId:n,workflowId:t.workflowId}),A={...t,pendingPublication:{idempotencyKey:W,revisionId:n}},$={...l,workflows:{...l.workflows,[f]:A}};await Rf(i.projectRoot,$);let I;try{I=await i.api.publishWorkflowRevision({revisionId:n,spaceId:i.context.spaceId,workflowId:t.workflowId},{idempotencyKey:W})}catch(k){if(cD(k))await Rf(i.projectRoot,{...$,workflows:{...$.workflows,[f]:su(A)}});throw k}return await Rf(i.projectRoot,{...$,workflows:{...$.workflows,[f]:{...su(A),publishedRevisionId:I.revisionId}}}),I})}async function fC(i,f){let w=await pt(i,f);return await i.api.archiveWorkflow({ifMatch:w.latestRevisionId,spaceId:i.context.spaceId,workflowId:w.workflowId},{idempotencyKey:rl(i,"archive",f,{revisionId:w.latestRevisionId,workflowId:w.workflowId})})}async function wC(i,f){let w=await pt(i,f);return await i.api.listWorkflowRevisions({spaceId:i.context.spaceId,workflowId:w.workflowId})}var Nw=8;async function Dw(i,f,w){if(!Number.isInteger(f)||f<1)throw TypeError("concurrency must be a positive integer");let l=Array(i.length),t=0,n=async()=>{while(t<i.length){let W=t;t+=1,l[W]=await w(i[W],W)}};return await Promise.all(Array.from({length:Math.min(f,i.length)},async()=>n())),l}async function lC(i,f){return await i.api.listWorkflowCapabilities(i.context.spaceId,{...f?{query:f}:{}})}async function Ul(i,f={}){return await i.api.listWorkflows({...f.includeArchived!==void 0?{includeArchived:f.includeArchived}:{},spaceId:i.context.spaceId})}function oA(i,f){let w=Jl(f);if(w){let l=new Set(i.map((t)=>t.key));for(let t of w)if(!l.has(t))throw new Wi(t,"remote")}return i.filter((l)=>w?.has(l.key)??!0).sort((l,t)=>ii(l.key,t.key))}async function NA(i,f){let w=await Ul(i,{...f.includeArchived!==void 0?{includeArchived:f.includeArchived}:{}}),l=Jl(f.archivedKeys),t=Jl(f.keys),n=l?w.filter((A)=>A.archivedAt===null||l.has(A.key)):w,W=f.allowMissingKeys?n.filter((A)=>t?.has(A.key)??!0).sort((A,$)=>ii(A.key,$.key)):oA(n,f.keys);return await Dw(W,Nw,async(A)=>Df(A,await i.api.getWorkflowRevision({revisionId:A.latestRevisionId,spaceId:i.context.spaceId,workflowId:A.id})))}async function tC(i,f={}){let[w,l]=await Promise.all([Ew(i.projectRoot),ri(i.projectRoot)]),t=[...new Set([...w.keys(),...Object.keys(l?.workflows??{}),...f.keys??[]])],n=await NA(i,{allowMissingKeys:!0,archivedKeys:t,includeArchived:!0,...f.keys?{keys:f.keys}:{}});if(f.keys){let $=new Set([...w.keys(),...Object.keys(l?.workflows??{}),...n.map((I)=>I.manifest.key)]);for(let I of f.keys)if(!$.has(I))throw new Wi(I,"available")}let W=EA(n,l),A=Ku({context:i.context,...f.keys?{keys:f.keys}:{},local:w,lockfile:l,...f.force!==void 0?{overwriteDiverged:f.force}:{},remote:W});return await Qu(i.projectRoot,A),A}async function nC(i,f){let w=oA(await Ul(i),f.keys),l=w.filter((I)=>I.publishedRevisionId===null).map((I)=>I.key),t=w.filter((I)=>I.publishedRevisionId!==null),n=await Dw(t,Nw,async(I)=>Df(I,await i.api.getWorkflowRevision({revisionId:I.publishedRevisionId,spaceId:i.context.spaceId,workflowId:I.id}),{mutableLabels:"omit"})),W=await Dw(n,Nw,async(I)=>({local:await Pw(f.outputRoot,I.manifest.key),snapshot:I})),A=W.filter(({local:I,snapshot:k})=>I!==null&&I.contentDigest!==k.contentDigest&&!f.force).map(({snapshot:I})=>I.manifest.key);if(A.length>0)throw new bl(A);let $=[];for(let{local:I,snapshot:k}of W){if(I?.contentDigest===k.contentDigest)continue;await mt(f.outputRoot,k.manifest,k.source),$.push(k.manifest.key)}return{skippedUnpublished:l,workflows:n,written:$}}async function WC(i,f={}){let[w,l]=await Promise.all([Ew(i.projectRoot),ri(i.projectRoot)]);if(l)Bi(l,i.context);if(f.offline)return _u(w,l);let t=EA(await NA(i,{archivedKeys:[...w.keys(),...Object.keys(l?.workflows??{})],includeArchived:!0}),l),n=new Map(t.map((A)=>[A.manifest.key,A]));return[...new Set([...w.keys(),...n.keys(),...Object.keys(l?.workflows??{})])].sort(ii).flatMap((A)=>{let $=gt({base:Ri(l,A)??null,key:A,local:w.get(A)??null,remote:n.get(A)??null});return $?[$]:[]})}async function AC(i,f){Ei(f);let[w,l]=await Promise.all([Pw(i.projectRoot,f),ri(i.projectRoot)]);if(l)Bi(l,i.context);let t=Ri(l,f);if(!t&&!w)throw new Wi(f,"local");if(!t)return{baseRevisionId:null,diff:uW({after:w,before:null,key:f}),key:f};if(w?.contentDigest===t.contentDigest)return{baseRevisionId:t.latestRevisionId,diff:"",key:f};let[n,W]=await Promise.all([i.api.getWorkflow({spaceId:i.context.spaceId,workflowId:t.workflowId}),i.api.getWorkflowRevision({revisionId:t.latestRevisionId,spaceId:i.context.spaceId,workflowId:t.workflowId})]),A=t.mutableLabels?Df({...n,description:t.mutableLabels.description,name:t.mutableLabels.name},W):Df(n,W,{mutableLabels:"omit"}),{description:$,outputs:I,...k}=A.manifest,R={...A,manifest:{...k,...$!==void 0&&($!==null||w?.manifest.description!==void 0)?{description:$}:{},...I!==void 0&&(I!==null||w?.manifest.outputs!==void 0)?{outputs:I}:{}}};return{baseRevisionId:t.latestRevisionId,diff:uW({after:w,before:R,key:f}),key:f}}async function IC(i,f={}){let[w,l]=await Promise.all([Ew(i.projectRoot),ri(i.projectRoot)]);if(l)Bi(l,i.context);let t=et(w,f.keys);for(let[,n]of t)st(n);return await Dw(t,Nw,async([n,W])=>{if(!f.remote)return{key:n,localValid:!0};let A=Ri(l,n);if(!A)return{key:n,localValid:!0,remote:{reason:"not-pushed",state:"skipped"}};if(W.contentDigest!==A.contentDigest)return{key:n,localValid:!0,remote:{reason:"locally-modified",state:"skipped"}};return{key:n,localValid:!0,remote:{result:await i.api.validateWorkflowRevision({revisionId:A.latestRevisionId,spaceId:i.context.spaceId,workflowId:A.workflowId}),revisionId:A.latestRevisionId,state:"validated"}}})}class DA{scope;constructor(i){this.scope=Hu(i)}async list(i={}){return await Ul(this.scope,i)}async capabilities(i){return await lC(this.scope,i)}async pull(i={}){return await tC(this.scope,i)}async pullPublished(i){return await nC(this.scope,i)}async status(i={}){return await WC(this.scope,i)}async diff(i){return await AC(this.scope,i)}async validate(i={}){return await IC(this.scope,i)}async push(i={}){return await pu(this.scope,i)}async test(i,f,w){return await eu(this.scope,i,f,w)}async run(i,f){return await au(this.scope,i,f)}async runs(i={}){return await mu(this.scope,i)}async getRun(i){return await PA(this.scope,i)}async waitForRun(i,f={}){return await qu(this.scope,i,f)}async watchRun(i){return await gu(this.scope,i)}async cancelRun(i){return await du(this.scope,i)}async publish(i,f){return await iC(this.scope,i,f)}async archive(i){return await fC(this.scope,i)}async revisions(i){return await wC(this.scope,i)}}var TD=new Set(["authentication_required","invalid_credential"]),PD=new Set(["conflict","idempotency_mismatch","operation_in_progress","stale_revision"]);function kC(i){return i.includes("--json")}function ED(i){let f=B.remote;if(TD.has(i.code))f=B.authentication;else if(i.code==="not_found")f=B.notFound;else if(PD.has(i.code))f=B.conflict;else if(i.code==="invalid_request")f=B.validation;return new Q(i.code,i.message,{cause:i,details:{...i.correlationId?{correlationId:i.correlationId}:{},...i.details?{fields:i.details}:{},retryable:i.retryable,...i.status!==null?{status:i.status}:{}},exitCode:f})}function $C(i){if(i instanceof Q)return i;if(i instanceof Ii)return ED(i);if(Uf(i))return new Q("authentication_failed",i.message,{cause:i,exitCode:B.authentication});if(i instanceof Ot)return new Q("project_not_found",i.message,{cause:i,exitCode:B.notFound});if(i instanceof Wi||i instanceof Nl)return new Q("workflow_not_found",i.message,{cause:i,exitCode:B.notFound});if(i instanceof ow)return new Q("polling_limit_exceeded",i.message,{cause:i,details:{operation:i.operation,polls:i.polls},exitCode:B.remote});if(i instanceof Dl)return new Q("capture_limit_exceeded",i.message,{cause:i,details:{limit:i.limit},exitCode:B.remote});if(i instanceof M)return new Q("profile_error",i.message,{cause:i,exitCode:B.usage});if(i instanceof H)return new Q("validation_failed",i.message,{cause:i,exitCode:B.validation});if(i instanceof gf||i instanceof qt||i instanceof bl||i instanceof ol||i instanceof _t)return new Q("workflow_conflict",i.message,{cause:i,exitCode:B.conflict});let f=i;if(f?.code==="partial_failure"||f?.name==="WorkflowPartialFailureError"){let w=gn(i);return new Q("partial_failure",w.message,{cause:i,details:w.details,exitCode:B.partial})}return gn(i)}function RC(i){let f=new sA;f.name("action").description("Author and operate Action workflows from a terminal or coding agent").version(fw).option("--profile <name>","use a named CLI profile").option("--api-url <url>","override the selected profile's Action API URL").option("--space <id-or-key>","override the active space for this command").option("--json","emit one stable JSON result",!1).option("--non-interactive","disable prompts and browser-dependent choices",!1).showSuggestionAfterError(!0).allowExcessArguments(!1).exitOverride().configureOutput({outputError:()=>{return},writeErr:()=>{return},writeOut:(l)=>(i.stdout??process.stdout).write(l)});let w=(l)=>it({json:l.optsWithGlobals().json??!1,...i.stderr?{stderr:i.stderr}:{},...i.stdout?{stdout:i.stdout}:{}});return pn(f,i,w),en(f,i,w),fW(f,i,w),f}async function bA(i,f){let w=RC(f);try{return await w.parseAsync([...i],{from:"user"}),B.success}catch(l){if(l instanceof _A){if(l.code==="commander.helpDisplayed"||l.code==="commander.version")return B.success;return it({json:kC(i),...f.stderr?{stderr:f.stderr}:{},...f.stdout?{stdout:f.stdout}:{}}).error(new Q("usage_error",l.message.replace(/^error:\s*/u,""),{exitCode:B.usage})),B.usage}let t=$C(l);return it({json:kC(i),...f.stderr?{stderr:f.stderr}:{},...f.stdout?{stdout:f.stdout}:{}}).error(t),t.exitCode}}import{spawn as QD}from"node:child_process";import{createInterface as EC}from"node:readline/promises";function uC(i){return i.length>0?i.join(`
226
- `):"No results."}function CC(i,f){return{async login(w={}){if(i.globals.json||i.globals.nonInteractive)throw new Q("usage_error","Human login requires interactive mode.",{exitCode:B.usage});let l=await i.humanAuthProfile(),t={},n=await bn({apiOrigin:l.apiUrl,clientId:l.auth.clientId,credentialStore:i.credentialStore(),...f.fetch?{fetch:f.fetch}:{},finalizeSession:async(A)=>{let $=await Pn({apiOrigin:l.apiUrl,...f.fetch?{fetch:f.fetch}:{},...w.organization?{organization:w.organization}:{},profile:{apiOrigin:l.apiUrl,clientId:l.auth.clientId,issuer:l.auth.issuer},...f.selectOrganization?{selectOrganization:f.selectOrganization}:{},session:A});return t.organization=$.organization,$.session},issuer:l.auth.issuer,lockDirectory:i.profileStore.paths.configDir,onVerification:(A)=>{f.reporter.info(`Open ${A.verificationUri} and enter code ${A.userCode}.`)},...f.openBrowser?{openBrowser:f.openBrowser}:{},profileName:l.name}),W=t.organization;if(!W)throw Error("Action organization selection did not complete.");return i.profileStore.upsert(l.name,{...l,organization:{id:W.id,name:W.name},space:null},!0),{human:`Signed in to ${W.name} for profile ${l.name}.`,value:{authenticated:!0,expiresAt:new Date(n.expiresAt).toISOString(),organization:{id:W.id,key:W.key,name:W.name},profile:l.name}}},async logout(){let w=i.profileName();await yn(i.credentialStore(),i.profileStore.paths.configDir,w);let l=Boolean(i.env.ACTION_TOKEN?.trim()||i.env.ACTION_API_KEY?.trim());return{human:l?`Removed the stored session for ${w}; an environment credential is still active.`:`Signed out of profile ${w}.`,value:{environmentCredential:l,profile:w,signedOut:!0}}},async status(){let w=i.profileName();if(i.env.ACTION_TOKEN?.trim())return{human:"Authenticated with ACTION_TOKEN.",value:{authenticated:!0,profile:w,source:"environment_token"}};if(i.env.ACTION_API_KEY?.trim())return{human:"Authenticated with ACTION_API_KEY.",value:{authenticated:!0,profile:w,source:"environment_api_key"}};let l={authenticated:!1};if(i.selectedProfile(!1))try{await i.credential(),l=await cn(i.credentialStore(),w)}catch(t){if(!(t instanceof Hi)&&!(t instanceof Di))throw t}return l.authenticated?{human:`Authenticated with a stored human session for ${w}.`,value:{authenticated:!0,expiresAt:new Date(l.expiresAt).toISOString(),organizationId:l.organizationId,profile:w,source:"human_session"}}:{human:`Not authenticated for profile ${w}.`,value:{authenticated:!1,profile:w}}}}}function SC(i){return{async list(){let f=await i.api().listSpaces(),w=i.globals.space??i.env.ACTION_SPACE_ID?.trim()??i.selectedProfile(!1)?.space?.id??null,l={spaces:f.map((t)=>({active:t.id===w||t.key===w,id:t.id,key:t.key,name:t.name,organizationId:t.organizationId}))};return{human:uC(l.spaces.map((t)=>`${t.active?"*":" "} ${t.key} ${t.name} ${t.id}`)),value:l}},async show(){let f=i.selectedProfile(!1),w={apiUrl:i.apiUrl(),organization:f?.organization??null,profile:f?.name??i.profileName(),space:i.globals.space?{id:i.globals.space,override:!0}:f?.space??null};return{human:uC([`Profile: ${w.profile}`,`API: ${w.apiUrl}`,`Organization: ${w.organization?.name??w.organization?.id??"not selected"}`,`Space: ${w.space?.id??"not selected"}`]),value:w}},async use(f){let w=i.selectedProfile(),l=await i.remoteSelection(f),t=i.profileStore.selectContext(w.name,l.organization,l.space);return{human:`Using ${l.space.name} (${l.space.key}) for profile ${w.name}.`,value:{organization:t.organization,profile:w.name,space:{id:l.space.id,key:l.space.key,name:l.space.name}}}}}}import{resolve as oD}from"node:path";var ND="https://backend.action.so",DD="https://api.workos.com",bD={clientId:"machine-credential",issuer:"https://api.workos.com"},rD={delete:async()=>{return},get:async()=>null,set:async()=>{return}};function Zi(i){return i?.trim()||null}function rA(i){let f;try{f=Mf(i)}catch(t){throw new M(t instanceof Error?t.message:"The Action API URL is invalid.")}let w=new URL(f),l=w.hostname==="localhost"||w.hostname==="127.0.0.1"||w.hostname==="[::1]";if(w.protocol!=="https:"&&!(w.protocol==="http:"&&l))throw new M("The Action API URL must use HTTPS outside local development.");return f}class fn{env;globals;profileStore;cwdProvider;fetcher;credentialStoreValue;apiValue;constructor(i){this.env=i.env??process.env,this.globals=i.globals,this.profileStore=i.profileStore??new pl,this.cwdProvider=i.cwd??process.cwd,this.fetcher=i.fetch,this.credentialStoreValue=i.credentialStore}cwd(){return this.cwdProvider()}apiUrl(i){return rA(this.globals.apiUrl??this.selectedProfile(!1)?.apiUrl??Zi(this.env.ACTION_API_URL)??i??ND)}profileName(){return this.globals.profile??Zi(this.env.ACTION_PROFILE)??this.profileStore.currentName()??"default"}selectedProfile(i=!0){let f=this.globals.profile??Zi(this.env.ACTION_PROFILE)??this.profileStore.currentName();if(!f){if(i)throw new M("No Action CLI profile is selected.");return null}let w=this.profileStore.list().find((l)=>l.name===f)??null;if(!w&&i)throw new M(`Action CLI profile "${f}" does not exist.`);return w}async humanAuthProfile(){let i=this.selectedProfile(!1);if(i){if(rA(i.apiUrl)!==this.apiUrl())throw new M("Human login is bound to the selected profile's API URL. Use a matching profile before logging in.");return i}let f=Zi(this.env.ACTION_AUTHKIT_CLIENT_ID),w=f?null:await Tn({apiOrigin:this.apiUrl(),...this.fetcher?{fetch:this.fetcher}:{}}),l=f??w?.clientId,t=Zi(this.env.ACTION_AUTHKIT_ISSUER)??w?.issuer??DD;if(!l)throw new M("Human login is not configured.");return this.profileStore.upsert(this.profileName(),{apiUrl:this.apiUrl(),auth:{clientId:l,issuer:t},organization:null,space:null},!0)}credentialStore(){return this.credentialStoreValue??=Dn(),this.credentialStoreValue}async credential(){let i=this.selectedProfile(!1);return await this.credentialForProfile(i)}async credentialForProfile(i,f=this.apiUrl()){let w=Zi(this.env.ACTION_TOKEN)??Zi(this.env.ACTION_API_KEY);if(!i&&!w)throw new Hi;if(i&&!w&&rA(i.apiUrl)!==f)throw new Hi("The stored human session is bound to the selected profile's API URL. Use a matching profile or set ACTION_TOKEN or ACTION_API_KEY for an API override.");return await zn({credentialStore:w?rD:this.credentialStore(),env:{ACTION_API_KEY:this.env.ACTION_API_KEY,ACTION_TOKEN:this.env.ACTION_TOKEN},...this.fetcher?{fetch:this.fetcher}:{},lockDirectory:this.profileStore.paths.configDir,profile:{apiOrigin:f,name:i?.name??this.profileName(),...i?.auth??bD}})}api(){let i=this.apiUrl(),f=this.selectedProfile(!1);return this.apiValue??=qn({baseUrl:i,...this.fetcher?{fetch:this.fetcher}:{},preserveError:Uf,tokenProvider:async()=>{return(await this.credentialForProfile(f,i)).authorization.replace(/^Bearer\s+/u,"")},version:fw}),this.apiValue}async projectRoot(){return await Fu(this.cwd())}async initializationContext(){let i=this.selectedProfile(!1),f=Zi(this.env.ACTION_ORGANIZATION_ID),w=this.globals.space??Zi(this.env.ACTION_SPACE_ID);if(!f&&!w)return i?.organization&&i.space?{origin:this.apiUrl(),organizationId:i.organization.id,spaceId:i.space.id}:void 0;let l=w??i?.space?.id;if(!l)throw new M("ACTION_ORGANIZATION_ID requires --space or ACTION_SPACE_ID when initializing a project.");if(i?.organization&&i.space?.id===l&&(!f||f===i.organization.id))return{origin:this.apiUrl(),organizationId:i.organization.id,spaceId:i.space.id};let t=await this.remoteSelection(l);if(f&&t.organization.id!==f)throw new M(`Space "${l}" does not belong to organization ${f}.`);return{origin:this.apiUrl(),organizationId:t.organization.id,spaceId:t.space.id}}async remoteSelection(i){let f=this.api(),[w,l]=await Promise.all([f.getIdentity(),f.listSpaces()]),t=i??this.globals.space??Zi(this.env.ACTION_SPACE_ID)??this.selectedProfile(!1)?.space?.id??null,n=l.filter((A)=>A.organizationId===w.organization.id),W;if(t){if(W=n.find((A)=>A.id===t||A.key===t),!W)throw new M(`Space "${t}" is not available in organization ${w.organization.name}.`)}else if(n.length===1)W=n[0];else throw new M("Select a space with `action context use <space>` or pass --space.");if(!W)throw new M("No Action workflow space is available.");return{organization:w.organization,space:W}}async projectContext(i){let[f,w]=await Promise.all([ri(i),Promise.resolve(this.selectedProfile(!1))]),l=this.globals.space??Zi(this.env.ACTION_SPACE_ID),t=w?.space?.id??f?.spaceId??null,n=l??t,W=w?.organization?.id??Zi(this.env.ACTION_ORGANIZATION_ID)??f?.organizationId??null,$=!l&&!w?.space&&n===f?.spaceId&&f?.organizationId!==W;if(n&&W&&(!l||l===t)&&!$)return{origin:this.apiUrl(f?.origin),organizationId:W,spaceId:n};let I=await this.remoteSelection(n??void 0);return{origin:this.apiUrl(f?.origin),organizationId:I.organization.id,spaceId:I.space.id}}async workflowService(i={}){let f=i.projectRequired===!1?this.cwd():await this.projectRoot(),w=i.projectRequired===!1?await this.remoteSelection().then((l)=>({origin:this.apiUrl(),organizationId:l.organization.id,spaceId:l.space.id})):await this.projectContext(f);return new DA({api:this.api(),context:w,projectRoot:f})}resolveDirectory(i){return oD(this.cwd(),i??".")}}import{access as MD,realpath as JD}from"node:fs/promises";import{basename as UD,dirname as YD,isAbsolute as FD,join as TC,relative as XD}from"node:path";function wn(i){return i?{keys:[i]}:{}}function ff(i,f="No workflows found."){return i.length>0?i.join(`
227
- `):f}async function GD(i){try{return await MD(i),!0}catch(f){if(f.code==="ENOENT")return!1;throw f}}function ZD(i){if(i instanceof Ii)return{code:i.code,...i.correlationId?{correlationId:i.correlationId}:{},...i.details?{details:i.details}:{},message:i.message,retryable:i.retryable,...i.status!==null?{status:i.status}:{}};if(i instanceof Q)return{code:i.code,...i.details!==void 0?{details:i.details}:{},message:i.message};if(Uf(i))return{code:"authentication_failed",message:i instanceof Error?i.message:"Authentication failed.",retryable:!1};let f=i;return{code:typeof f?.code==="string"?f.code:"workflow_push_failed",message:typeof f?.message==="string"?f.message:"The workflow could not be pushed."}}function LC(i){let f=i;return{error:ZD(i.error),key:i.key,...typeof f.revisionId==="string"?{revisionId:f.revisionId}:{},...typeof f.workflowId==="string"?{workflowId:f.workflowId}:{}}}function zC(i,f){return new Q("validation_failed",i,{details:{workflows:f},exitCode:B.validation})}function yC(i){if(i.status!=="failed"&&i.status!=="cancelled")return;throw new Q("workflow_run_failed",`Run ${i.id} finished with status ${i.status}.`,{details:{run:i},exitCode:B.remote})}class JA extends Q{constructor(i){let f=i.failures.map(LC),w=i.validationFailures.map(LC),l=i.items.filter((W)=>!W.validation.ok),t=new Set([...i.skipped,...i.items.filter((W)=>W.validation.ok).map((W)=>W.key)]),n=new Set([...f.map((W)=>W.key),...w.map((W)=>W.key),...l.map((W)=>W.key)]);super("partial_failure",t.size>0?`Push completed for ${t.size} workflow(s); ${n.size} workflow(s) failed.`:`Push failed for ${n.size} workflow(s).`,{details:{failures:f,items:i.items,skipped:i.skipped,validationFailures:w},exitCode:B.partial});this.name="WorkflowPartialFailureError"}}async function MA(i){try{return await JD(i)}catch(f){if(f.code!=="ENOENT")throw f;let w=YD(i);return w===i?i:TC(await MA(w),UD(i))}}function cC(i,f){let w=XD(i,f);return w===""||!w.startsWith("..")&&!FD(w)}async function KD(i,f){let w=await MA($i(i).workflows),l=await MA($i(f).workflows);if(cC(w,l)||cC(l,w))throw new Q("workflow_conflict","Published inspection output must not overlap the active project's workflows directory.",{exitCode:B.conflict})}function PC(i){return{async init(f){let w=i.resolveDirectory(f.directory),l=TC(w,"action.json");if(await GD(l))throw new Q("project_exists",`An Action project already exists at ${w}.`,{exitCode:B.conflict});let t=await i.initializationContext();return await Gu(w,t),{human:`Initialized an Action workflow project at ${w}.`,value:{contextConfigured:Boolean(t),projectRoot:w}}},async capabilities(f){let w=await(await i.workflowService({projectRequired:!1})).capabilities(f.application),l={applications:w,query:f.application??null};if(!f.application)return{human:ff(w.map((t)=>`${t.slug} ${t.displayName} ${t.connectionStatus}`),"No workflow applications found."),value:l};return{human:ff(w.flatMap((t)=>[`${t.slug} ${t.displayName} ${t.connectionStatus}`,...t.connectorInstances.map((n)=>`connection ${n.id} ${n.label??n.displayName}`),...t.actions.map((n)=>`action ${n.effect} ${n.name}`),...t.readActions.map((n)=>`read-action ${n.effect} ${n.name}`)]),"No matching workflow applications found."),value:l}},async list(f){let l={workflows:(await(await i.workflowService({projectRequired:!1})).list({includeArchived:f.includeArchived})).map((t)=>({archivedAt:t.archivedAt,hasUnpublishedChanges:t.hasUnpublishedChanges,id:t.id,key:t.key,latestRevisionId:t.latestRevisionId,name:t.name,publishedRevisionId:t.publishedRevisionId}))};return{human:ff(l.workflows.map((t)=>`${t.key} ${t.name} ${t.archivedAt?"archived":t.hasUnpublishedChanges?"draft":"published"}`)),value:l}},async pull(f){if(f.published){if(!f.outputDirectory)throw Error("Published pull requires an output directory.");let n=i.resolveDirectory(f.outputDirectory);await KD(await i.projectRoot(),n);let A=await(await i.workflowService()).pullPublished({force:f.force,...wn(f.key),outputRoot:n}),$={outputRoot:n,skippedUnpublished:A.skippedUnpublished,workflows:A.workflows.map((I)=>({contentDigest:I.contentDigest,key:I.manifest.key,revisionId:I.latestRevisionId,workflowId:I.workflowId})),written:A.written};return{human:ff([...$.written.map((I)=>`pulled ${I}`),...$.skippedUnpublished.map((I)=>`skipped-unpublished ${I}`)],"Published workflows are already up to date."),value:$}}let l=await(await i.workflowService()).pull({force:f.force,...wn(f.key)}),t={preserved:l.preserved,refusals:l.refusals,statuses:l.statuses,written:l.writes.map((n)=>n.key)};return{human:ff(t.written.map((n)=>`pulled ${n}`),"Workflows are up to date."),value:t}},async status(f){let w=await(await i.workflowService()).status({offline:f.offline});return{human:ff(w.map((l)=>`${l.status} ${l.key}`),"No local or remote workflows found."),value:{offline:f.offline,workflows:w}}},async diff(f){let w=await(await i.workflowService()).diff(f.key);return{human:w.diff||`No changes for ${f.key}.`,value:w}},async validate(f){let w=await(await i.workflowService()).validate({...wn(f.key),remote:f.remote}),l=w.filter((t)=>t.remote?.state==="validated"&&!t.remote.result.ok);if(l.length>0)throw zC(`Remote validation failed for ${l.map((t)=>t.key).join(", ")}.`,l);return{human:ff(w.map((t)=>{return`${t.remote?t.remote.state==="validated"?t.remote.result.ok?"remote-valid":"remote-invalid":`remote-skipped:${t.remote.reason}`:"local-valid"} ${t.key}`})),value:{workflows:w}}},async push(f){let w=await(await i.workflowService()).push({...wn(f.key)}),l=w.items.filter((I)=>!I.validation.ok),t=new Set([...w.failures.map((I)=>I.key),...w.validationFailures.map((I)=>I.key),...l.map((I)=>I.key)]),n=new Set([...w.skipped,...w.items.filter((I)=>I.validation.ok).map((I)=>I.key)]),W=w.failures.length>0||w.validationFailures.length>0;if(t.size>0&&(n.size>0||W&&t.size>1))throw new JA(w);let A=w.failures[0];if(A)throw A.error;let $=w.validationFailures[0];if($)throw $.error;if(l.length>0)throw zC(`Workflow validation failed for ${l.map((I)=>I.key).join(", ")}.`,l);return{human:ff([...w.items.map((I)=>`${I.created?"created":"updated"} ${I.key}`),...w.skipped.map((I)=>`unchanged ${I}`)],"Workflows are already up to date."),value:{failures:[],skipped:w.skipped,workflows:w.items}}},async test(f){let w=await i.workflowService(),l=await w.test(f.key,f.input),t=f.wait?await w.waitForRun(l):l;if(f.wait)yC(t);return{human:f.wait?`Test run ${t.id} finished with status ${t.status}.`:`Started test run ${t.id} (${t.status}).`,value:{run:t,waited:f.wait}}},async run(f){let w=await i.workflowService({projectRequired:!1}),l=await w.run(f.key,f.input),t=f.wait?await w.waitForRun(l):l;if(f.wait)yC(t);return{human:f.wait?`Run ${t.id} finished with status ${t.status}.`:`Started production run ${t.id} (${t.status}).`,value:{run:t,waited:f.wait}}},async runsList(f){let w=await(await i.workflowService({projectRequired:!1})).runs({...f.cursor?{cursor:f.cursor}:{},...f.limit?{pageSize:f.limit}:{},...f.status?{status:f.status}:{},...f.workflowKey?{workflowKey:f.workflowKey}:{}});return{human:ff(w.data.map((l)=>`${l.id} ${l.status} ${l.workflowId} ${l.createdAt}`),"No workflow runs found."),value:{nextCursor:w.nextCursor,runs:w.data}}},async runGet(f){let w=await(await i.workflowService({projectRequired:!1})).getRun(f.runId);return{human:`${w.id} ${w.status} ${w.workflowId} ${w.updatedAt}`,value:{run:w}}},async runWatch(f){let w=await(await i.workflowService({projectRequired:!1})).watchRun(f);return{human:w.stopped?`Stopped watching ${w.run.id}; the remote run was not cancelled.`:`Run ${w.run.id} finished with status ${w.run.status}.`,value:w}},async runCancel(f){let w=await(await i.workflowService({projectRequired:!1})).cancelRun(f.runId);return{human:`Cancellation requested for ${w.id} (${w.status}).`,value:{run:w}}},async publish(f){let w=await(await i.workflowService()).publish(f.key,f.revisionId);return{human:`Published ${f.key} at revision ${w.revisionId}.`,value:{key:f.key,publication:w}}},async archive(f){let w=await(await i.workflowService()).archive(f.key);return{human:`Archived ${f.key}.`,value:{workflow:{archivedAt:w.archivedAt,id:w.id,key:w.key,latestRevisionId:w.latestRevisionId}}}},async revisions(f){let w=await(await i.workflowService()).revisions(f.key);return{human:ff(w.map((l)=>`${l.revisionNumber} ${l.status} ${l.id} ${l.contentDigest}`),`No revisions found for ${f.key}.`),value:{key:f.key,revisions:w}}}}}function oC(i,f=process.platform){let w,l;if(f==="darwin")w="/usr/bin/open",l=[i];else if(f==="linux")w="xdg-open",l=[i];else if(f==="win32")return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command","Start-Process -FilePath $env:ACTION_CLI_BROWSER_URL"],command:"powershell.exe",env:{ACTION_CLI_BROWSER_URL:i}};else throw Error(`Opening a browser is not supported on ${f}.`);return{args:l,command:w}}async function NC(i){let{args:f,command:w,env:l}=oC(i);await new Promise((t,n)=>{let W=QD(w,f,{detached:!0,env:l?{...process.env,...l}:process.env,shell:!1,stdio:"ignore",windowsHide:!0});W.once("error",n),W.once("spawn",()=>{W.unref(),t()})})}async function DC(i){let f=EC({input:process.stdin,output:process.stderr});try{let w=await f.question(`${i} [y/N] `);return/^(?:y|yes)$/iu.test(w.trim())}finally{f.close()}}async function bC(i){if(!process.stdin.isTTY)throw Error("Organization selection requires an interactive terminal.");let f=EC({input:process.stdin,output:process.stderr});try{for(let[n,W]of i.entries())process.stderr.write(`${n+1}. ${W.name} (${W.key})
228
- `);let w=await f.question("Choose an organization: "),l=Number.parseInt(w.trim(),10)-1,t=i[l];if(!t)throw Error("A valid organization number is required.");return t.id}finally{f.close()}}function ln(i={}){return{confirm:i.confirm??DC,createRuntime:({globals:f,reporter:w})=>{let l=new fn({...i.credentialStore?{credentialStore:i.credentialStore}:{},...i.cwd?{cwd:i.cwd}:{},...i.env?{env:i.env}:{},...i.fetch?{fetch:i.fetch}:{},globals:f,...i.profileStore?{profileStore:i.profileStore}:{}});return{auth:CC(l,{...i.fetch?{fetch:i.fetch}:{},openBrowser:i.openBrowser??NC,reporter:w,selectOrganization:i.selectOrganization??bC}),context:SC(l),workflows:PC(l)}},...i.readStdin?{readStdin:i.readStdin}:{},...i.stderr?{stderr:i.stderr}:{},...i.stdout?{stdout:i.stdout}:{}}}function VD(){return globalThis.Bun?.isStandaloneExecutable===!0}function HD(i=process.argv[1],f=import.meta.url,w=typeof ACTION_CLI_COMPILED_ENTRYPOINT<"u"&&ACTION_CLI_COMPILED_ENTRYPOINT||VD()){if(w)return!0;if(!i)return!1;try{return rC(i)===rC(BD(f))}catch{return!1}}if(HD())process.exitCode=await bA(process.argv.slice(2),ln());export{bA as runCli,$C as normalizeCliError,HD as invokedAsMain,ln as createDefaultCliDependencies,RC as createCli};
217
+ `}function pa(e,r,i,n,t,a,o){if(typeof o==="function")o={callback:o};if(!(o===null||o===void 0?void 0:o.callback)){let s=ma(e,r,i,n,t,a,o);if(!s)return;return hn(s,o===null||o===void 0?void 0:o.headerOptions)}else{let{callback:s}=o;ma(e,r,i,n,t,a,Object.assign(Object.assign({},o),{callback:(u)=>{if(!u)s(void 0);else s(hn(u,o.headerOptions))}}))}}function Eq(e){let r=e.endsWith(`
218
+ `),i=e.split(`
219
+ `).map((n)=>n+`
220
+ `);if(r)i.pop();else i.push(i.pop().slice(0,-1));return i}function tu(e){let r=We(e.before),i=We(e.after);if(r===i)return"";return pa(`a/${e.path}`,`b/${e.path}`,r,i,"","",{context:e.context??3})??""}function Ia(e){let r=`workflows/${e.key}`,i=tu({after:e.after?Z(e.after.manifest):"",before:e.before?Z(e.before.manifest):"",path:`${r}/workflow.json`}),n=tu({after:e.after?.source??"",before:e.before?.source??"",path:`${r}/index.mjs`});return[i,n].filter(Boolean).join(`
221
+ `)}import{randomUUID as oR}from"node:crypto";import{mkdir as wo,lstat as Ei,open as Df,readFile as Ni,readdir as sR,rename as uR,stat as ho,unlink as lR}from"node:fs/promises";import{basename as dR,dirname as Di,join as ze,parse as cR,resolve as jf}from"node:path";var Xf=Go(bf(),1);var Lf=vt.source,co="^[0-9a-f]{64}$",Ie={minLength:1,type:"string"},Rf={properties:{type:{const:"object"}},required:["type"],type:"object"},Gb={$id:xr,additionalProperties:!1,properties:{$schema:{const:xr},schemaVersion:{const:ir}},required:["$schema","schemaVersion"],type:"object"},Ub={$id:_r,additionalProperties:!1,properties:{$schema:{const:_r},description:{anyOf:[{maxLength:2000,type:"string"},{type:"null"}]},inputs:Rf,key:{maxLength:120,pattern:Lf,type:"string"},name:{maxLength:200,minLength:1,pattern:"\\S",type:"string"},outputs:{anyOf:[Rf,{type:"null"}]}},required:["$schema","inputs","key","name"],type:"object"},Jb={additionalProperties:!1,properties:{commitSha:Ie,path:Ie,ref:Ie,repo:Ie},required:["commitSha","path","ref","repo"],type:"object"},Mb={additionalProperties:!1,properties:{idempotencyKey:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"},revisionId:Ie},required:["idempotencyKey","revisionId"],type:"object"},Yb={additionalProperties:!1,properties:{description:{anyOf:[{maxLength:2000,type:"string"},{type:"null"}]},name:{maxLength:200,minLength:1,pattern:"\\S",type:"string"}},required:["description","name"],type:"object"},Bb={additionalProperties:!1,properties:{codeRef:Jb,contentDigest:{pattern:co,type:"string"},draftGeneration:{minimum:0,type:"integer"},latestRevisionId:Ie,mutableLabels:Yb,pendingPublication:Mb,publishedRevisionId:{anyOf:[Ie,{type:"null"}]},remoteContentDigest:{pattern:co,type:"string"},sourceDigest:{pattern:co,type:"string"},validatedRevisionId:Ie,workflowId:Ie},required:["contentDigest","latestRevisionId","publishedRevisionId","sourceDigest","workflowId"],type:"object"},Fb={$id:ei,additionalProperties:!1,properties:{$schema:{const:ei},organizationId:Ie,origin:Ie,schemaVersion:{const:ir},spaceId:Ie,workflows:{additionalProperties:Bb,propertyNames:{maxLength:120,pattern:Lf},type:"object"}},required:["$schema","organizationId","origin","schemaVersion","spaceId","workflows"],type:"object"},fo=new Xf.default({allErrors:!0,strict:!0}),Kb=fo.compile(Gb),Hb=fo.compile(Ub),Zb=fo.compile(Fb);class V extends Error{issues;constructor(e,r){super(`${e} is invalid:
222
+ ${r.map((i)=>`- ${i}`).join(`
223
+ `)}`);this.name="ProjectValidationError",this.issues=r}}function Qb(e){return(e??[]).map((r)=>{return`${r.instancePath||"/"} ${r.message??"is invalid"}`})}function mo(e,r,i){if(!r(e))throw new V(i,Qb(r.errors))}function Wf(e,r){try{return JSON.parse(e)}catch(i){let n=i instanceof Error?i.message:"Invalid JSON";throw new V(r,[n])}}function po(e,r="action.json"){return mo(e,Kb,r),e}function Oi(e,r={}){let i=r.document??"workflow.json";if(mo(e,Hb,i),r.expectedKey!==void 0&&e.key!==r.expectedKey)throw new V(i,[`/key must match its workflows/${r.expectedKey} directory`]);return e}function jr(e,r=".action/lock.json"){return mo(e,Zb,r),e}function de(e){if(!vt.test(e))throw new V("workflow key",["must be a portable lowercase, dash-separated identifier with at most 120 characters"])}function $i(e,r="index.mjs"){if(Buffer.byteLength(e,"utf8")>1e6)throw new V(r,["must be 1000000 UTF-8 bytes or fewer"]);return e}import{randomUUID as xb}from"node:crypto";import{lstat as zf,mkdir as Sf,open as vf,readFile as _b,readdir as qo,rename as eR,rm as rR}from"node:fs/promises";import{hostname as Pf}from"node:os";import{dirname as rt,join as qe,resolve as Vi}from"node:path";var Of="owner.json",$f="ready",iR=50,nR=30000;function wr(e,r){return e instanceof Error&&"code"in e&&e.code===r}function tt(e){return qe(Vi(e),".action","workflow-transactions")}function Vf(e,r){de(r);let i=tt(e),n=qe(i,r);return{directory:n,next:qe(n,"next"),owner:qe(n,Of),previous:qe(n,"previous"),ready:qe(n,$f),root:i,target:qe(Vi(e),"workflows",r)}}async function yr(e){let r;try{r=await vf(e,"r"),await r.sync()}catch(i){if(!wr(i,"EINVAL")&&!wr(i,"ENOTSUP")&&!wr(i,"EISDIR")&&!wr(i,"EPERM"))throw i}finally{await r?.close()}}async function nt(e,r){if(await eR(e,r),await yr(rt(e)),rt(e)!==rt(r))await yr(rt(r))}async function Tf(e){try{let r=await zf(e);if(r.isSymbolicLink()||!r.isFile())throw new V(e,["path must be a regular file, not a link"]);return!0}catch(r){if(wr(r,"ENOENT"))return!1;throw r}}async function _e(e){try{let r=await zf(e);if(r.isSymbolicLink()||!r.isDirectory())throw new V(e,["path must be a real directory, not a link"]);return!0}catch(r){if(wr(r,"ENOENT"))return!1;throw r}}async function Gr(e,r={}){if(!await _e(e))return!1;let i=await qo(e,{withFileTypes:!0}),n=new Set(["workflow.json",$e]),t=i.filter((o)=>n.has(o.name)&&!o.isFile()).map((o)=>o.name).sort(G);if(t.length>0)throw new V(e,[`required paths must be regular files: ${t.join(", ")}`]);let a=i.map((o)=>o.name).filter((o)=>!n.has(o)).sort(G);if(a.length>0)throw new V(e,[`unsupported files for the v1 layout: ${a.join(", ")}`]);if(r.complete!==!1){let o=new Set(i.map((u)=>u.name)),s=[...n].filter((u)=>!o.has(u));if(s.length>0)throw new V(e,[`required files are missing: ${s.join(", ")}`])}return!0}async function tR(e){if(!await Tf(e))return null;let r;try{r=JSON.parse(await _b(e,"utf8"))}catch{return null}if(typeof r.createdAt!=="string"||typeof r.hostname!=="string"||!Number.isInteger(r.pid)||(r.pid??0)<=0||typeof r.token!=="string")return null;return r}function aR(e){let r=Date.parse(e.createdAt),i=Date.now()-r;if(!Number.isFinite(r)||i<0||i>nR)return!1;if(e.hostname!==Pf())return!0;try{return process.kill(e.pid,0),!0}catch(n){return!wr(n,"ESRCH")}}async function Io(e){await rR(e.directory,{recursive:!0}),await yr(e.root)}async function Ti(e,r,i){let n=qe(Vi(e),".action");if(!await _e(n))return;let t=Vf(e,r);if(!await _e(t.root))return;let a=qe(Vi(e),"workflows");if(!await _e(a))throw new V(a,["workflows path is missing during transaction recovery"]);for(let o=0;o<iR;o+=1){if(!await _e(t.directory))return;let s=await qo(t.directory,{withFileTypes:!0}),u=new Set([Of,$f,"next","previous"]),l=s.filter((m)=>!u.has(m.name)).map((m)=>m.name).sort(G);if(l.length>0)throw new V(t.directory,[`unsupported transaction paths: ${l.join(", ")}`]);let d=await tR(t.owner),c=await _e(t.target);if(d&&d.token!==i&&aR(d)){if(c)return;await new Promise((m)=>setTimeout(m,10));continue}if(c){await Gr(t.target),await Io(t);return}let p=await Tf(t.ready),I=await Gr(t.next,{complete:p});if(await Gr(t.previous))await nt(t.previous,t.target);else if(I&&p)await nt(t.next,t.target);await Io(t);return}throw new V(t.directory,["workflow update is still in progress; retry"])}async function Ef(e){let r=qe(Vi(e),".action");if(!await _e(r))return;let i=tt(e);if(!await _e(i))return;let n=await qo(i,{withFileTypes:!0});for(let t of n.sort((a,o)=>G(a.name,o.name))){if(!t.isDirectory())throw new V(i,[`transaction path must be a real directory: ${t.name}`]);de(t.name),await Ti(e,t.name)}}async function it(e,r,i=420){let n=await vf(e,"wx",i);try{await n.writeFile(r),await n.sync()}finally{await n.close()}}async function Nf(e){let r=Vf(e.projectRoot,e.key),i=xb();await Sf(r.directory),await yr(r.root);try{if(await it(r.owner,`${JSON.stringify({createdAt:new Date().toISOString(),hostname:Pf(),pid:process.pid,token:i})}
224
+ `,384),await Sf(r.next),await yr(r.directory),await Promise.all([it(qe(r.next,"workflow.json"),e.manifest),it(qe(r.next,$e),e.source)]),await yr(r.next),await it(r.ready,"",384),await yr(r.directory),e.currentExists)await nt(r.target,r.previous);await nt(r.next,r.target),await Io(r)}catch(n){try{await Ti(e.projectRoot,e.key,i)}catch(t){let a=n instanceof Error?n.message:String(n);throw Error(`Workflow write failed (${a}) and recovery also failed.`,{cause:t})}throw n}}class at extends Error{constructor(e){super(`No action.json project was found at or above ${e}.`);this.name="ActionProjectNotFoundError"}}function ae(e,r){return e instanceof Error&&"code"in e&&e.code===r}async function fR(e){try{return await ho(e),!0}catch(r){if(ae(r,"ENOENT"))return!1;throw r}}async function ve(e){try{let r=await Ei(e);if(r.isSymbolicLink()||!r.isDirectory())throw new V(e,["path must be a real directory, not a link"])}catch(r){if(!ae(r,"ENOENT"))throw r;try{await wo(e)}catch(i){if(!ae(i,"EEXIST"))throw i;await ve(e)}}}function B(e){let r=jf(e),i=ze(r,".action");return{actionDirectory:i,lockfile:ze(i,"lock.json"),manifest:ze(r,"action.json"),mutationLock:ze(i,"mutation.lock"),root:r,workflows:ze(r,"workflows")}}function Gf(e,r){de(r);let i=ze(B(e).workflows,r);return{directory:i,manifest:ze(i,"workflow.json"),source:ze(i,$e)}}async function mR(e=process.cwd()){let r=jf(e);try{if(!(await ho(r)).isDirectory())r=Di(r)}catch(i){if(!ae(i,"ENOENT"))throw i}while(!0){let i=ze(r,"action.json");try{if((await ho(i)).isFile())return r}catch(t){if(!ae(t,"ENOENT"))throw t}let n=Di(r);if(n===r||r===cR(r).root)return null;r=n}}async function Uf(e=process.cwd()){let r=await mR(e);if(!r)throw new at(e);return r}async function pR(e){let r;try{r=await Df(e,"r"),await r.sync()}catch(i){if(!ae(i,"EINVAL")&&!ae(i,"ENOTSUP")&&!ae(i,"EISDIR")&&!ae(i,"EPERM"))throw i}finally{await r?.close()}}async function IR(e){await pR(Di(e))}async function qR(e,r,i={}){await wo(Di(e),{recursive:!0});let n=ze(Di(e),`.${dR(e)}.${process.pid}.${oR()}.tmp`),t;try{t=await Df(n,"wx",i.mode??420),await t.writeFile(r),await t.sync(),await t.close(),t=void 0,await i.beforeRename?.(n,e),await uR(n,e),await IR(e)}catch(a){throw await t?.close().catch(()=>{}),await lR(n).catch((o)=>{if(!ae(o,"ENOENT"))throw o}),a}}async function Jf(e,r,i={}){let n=typeof r==="string"?Buffer.from(r):Buffer.from(r);try{if((await Ni(e)).equals(n))return!1}catch(t){if(!ae(t,"ENOENT"))throw t}return await qR(e,n,i),!0}async function yo(e,r){try{let i=await Ei(e);if(i.isSymbolicLink()||!i.isFile())throw new V(r,["file must be a regular file, not a link"]);return Wf(await Ni(e,"utf8"),r)}catch(i){if(ae(i,"ENOENT"))throw new V(r,["file is missing"]);throw i}}async function ot(e){let r=B(e);return po(await yo(r.manifest,r.manifest),r.manifest)}async function ce(e){let r=B(e);if(!await fR(r.lockfile))return null;return jr(await yo(r.lockfile,r.lockfile),r.lockfile)}async function Ur(e,r){let i=Gf(e,r);for(let n=0;n<3;n+=1){if(await Ti(e,r),!await Gr(i.directory))return null;try{let t=await Ei(i.directory);if(t.isSymbolicLink()||!t.isDirectory())throw new V(i.directory,["workflow path must be a real directory, not a link"]);let[a,o]=await Promise.all([yo(i.manifest,i.manifest),Ni(i.source,"utf8")]),s=await Ei(i.directory);if(s.isSymbolicLink()||!s.isDirectory())throw new V(i.directory,["workflow path must be a real directory, not a link"]);if(t.dev!==s.dev||t.ino!==s.ino)continue;let u=Oi(a,{document:i.manifest,expectedKey:r}),l=We($i(o,i.source));return{canonicalWorkflowJson:Z(u),contentDigest:In(u,l),manifest:u,source:l,sourceDigest:pn(l)}}catch(t){if(ae(t,"ENOENT"))continue;throw t}}throw new V(i.directory,["workflow changed while it was read; retry"])}async function Jr(e){await Ef(e);let r=B(e).workflows,i;try{let a=await Ei(r);if(a.isSymbolicLink()||!a.isDirectory())throw new V(r,["workflows path must be a real directory, not a link"]);i=await sR(r,{withFileTypes:!0})}catch(a){if(ae(a,"ENOENT"))return new Map;throw a}let n=i.filter((a)=>a.isDirectory()).map((a)=>a.name).sort(G),t=new Map;for(let a of n){de(a);let o=await Ur(e,a);if(o)t.set(a,o)}return t}async function hR(e,r){return po(r),await ve(B(e).root),await Jf(B(e).manifest,Z(r))}async function Ge(e,r){return jr(r),await ve(B(e).actionDirectory),await Jf(B(e).lockfile,Z(r))}async function st(e,r,i){Oi(r);let n=Gf(e,r.key),t=We($i(i,n.source)),a=Z(r),o=B(e);await Ti(e,r.key),await ve(o.actionDirectory),await ve(tt(e)),await ve(o.workflows);let s=await Gr(n.directory),[u,l]=s?await Promise.all([Ni(n.manifest),Ni(n.source)]):[null,null],d=!u?.equals(Buffer.from(a)),c=!l?.equals(Buffer.from(t));if(!d&&!c)return{manifestChanged:d,sourceChanged:c};return await Nf({currentExists:s,key:r.key,manifest:a,projectRoot:e,source:t}),{manifestChanged:d,sourceChanged:c}}async function Mf(e,r){let i=B(e);if(await wo(i.root,{recursive:!0}),await Promise.all([ve(i.actionDirectory),ve(i.workflows)]),await hR(e,{$schema:xr,schemaVersion:ir}),r)await Ge(e,Cr(r))}class ut extends Error{constructor(e){super(`Another Action CLI process is mutating this project (${e}).`);this.name="ProjectMutationLockedError"}}async function wR(e,r={}){let n=B(e).mutationLock,t=r.timeoutMs??5000;return await en({ensureParent:()=>ve(B(e).actionDirectory),invalidFileError:(a)=>new V(a,["mutation lock must be a regular file, not a link"]),path:n,timeoutError:(a)=>new ut(a),timeoutMs:t})}async function ji(e,r,i){let n=await wR(e,i);try{return await r()}finally{await n.release()}}function lt(e){let{base:r,key:i,local:n,remote:t}=e;if(!r&&!n&&!t)return null;if(!r){let l=Boolean(n&&t&&n.contentDigest===t.contentDigest),d=n?t?l?"remote_changes":"conflict":"new":"remote_changes";return Yf({base:r,key:i,local:n,localModified:Boolean(n)&&!l,remote:t,remoteModified:Boolean(t),status:d})}let a=n?n.contentDigest!==r.contentDigest:!0,o=t?t.workflowId!==r.workflowId||t.draftGeneration!==(r.draftGeneration??0)||t.latestRevisionId!==r.latestRevisionId||t.contentDigest!==r.contentDigest:!0,s=Boolean(o&&n&&t&&n.contentDigest===t.contentDigest);return Yf({base:r,key:i,local:n,localModified:s?!1:a,remote:t,remoteModified:o,status:!n?"missing":s?"remote_changes":a&&o?"conflict":a?"local_changes":o?"remote_changes":"clean"})}function Yf(e){return{baseDigest:e.base?.contentDigest??null,baseRevisionId:e.base?.latestRevisionId??null,key:e.key,localDigest:e.local?.contentDigest??null,localModified:e.localModified,remoteDigest:e.remote?.contentDigest??null,remoteModified:e.remoteModified,remoteRevisionId:e.remote?.latestRevisionId??null,status:e.status}}class ct extends Error{refusals;constructor(e){super(`Pull would overwrite local divergence in: ${e.map((r)=>r.key).join(", ")}.`);this.name="PullRefusedError",this.refusals=e}}class Gi extends Error{constructor(e){super(e);this.name="PullPlanStaleError"}}function Ao(e){let r=Oi(e.manifest),i=We($i(e.source));return{canonicalWorkflowJson:Z(r),...e.codeRef?{codeRef:e.codeRef}:{},contentDigest:In(r,i),draftGeneration:e.draftGeneration??0,latestRevisionId:e.latestRevisionId,manifest:r,publishedRevisionId:e.publishedRevisionId,...e.remoteContentDigest?{remoteContentDigest:e.remoteContentDigest}:{},source:i,sourceDigest:pn(i),workflowId:e.workflowId}}function yR(e){return{...e.codeRef?{codeRef:e.codeRef}:{},contentDigest:e.contentDigest,draftGeneration:e.draftGeneration,latestRevisionId:e.latestRevisionId,mutableLabels:{description:e.manifest.description??null,name:e.manifest.name},publishedRevisionId:e.publishedRevisionId,...e.remoteContentDigest?{remoteContentDigest:e.remoteContentDigest}:{},sourceDigest:e.sourceDigest,workflowId:e.workflowId}}function dt(e,r){return{...yR(e),...r?.pendingPublication&&e.publishedRevisionId!==r.pendingPublication.revisionId?{pendingPublication:r.pendingPublication}:{},...r?.validatedRevisionId===e.latestRevisionId?{validatedRevisionId:r.validatedRevisionId}:{}}}function AR(e){if(e==="local_changes")return"local_changes";if(e==="conflict")return"local_and_remote_changes";if(e==="missing")return"missing_local";return null}function Bf(e){let r=gr(e.context);if(e.lockfile)jr(e.lockfile),he(e.lockfile,r);let i=e.lockfile?{...e.lockfile,workflows:{...e.lockfile.workflows}}:Cr(r),n=new Map;for(let d of e.remote){let c=Ao({...d.codeRef?{codeRef:d.codeRef}:{},draftGeneration:d.draftGeneration,latestRevisionId:d.latestRevisionId,manifest:d.manifest,publishedRevisionId:d.publishedRevisionId,...d.remoteContentDigest?{remoteContentDigest:d.remoteContentDigest}:{},source:d.source,workflowId:d.workflowId}),p=c.manifest.key;if(n.has(p))throw Error(`Remote pull contained duplicate workflow key ${p}.`);n.set(p,c)}let t=e.keys?new Set(e.keys):null,a=[...new Set([...e.local.keys(),...n.keys(),...Object.keys(i.workflows)])].filter((d)=>t?.has(d)??!0).sort(G),o=[],s=[],u=[],l=[];for(let d of a){let c=K(e.lockfile,d)??null,p=e.local.get(d)??null,I=n.get(d)??null,f=lt({base:c,key:d,local:p,remote:I});if(!f)continue;if(l.push(f),p&&I&&p.contentDigest===I.contentDigest){i.workflows[d]=dt(I,c);continue}if(f.status==="clean"){if(I)i.workflows[d]=dt(I,c);continue}if(f.status==="remote_changes"&&I){o.push({expectedLocalDigest:p?.contentDigest??null,key:d,manifest:I.manifest,source:I.source}),i.workflows[d]=dt(I,c);continue}let m=AR(f.status);if(I&&m&&e.overwriteDiverged===!0){o.push({expectedLocalDigest:p?.contentDigest??null,key:d,manifest:I.manifest,source:I.source}),i.workflows[d]=dt(I,c);continue}if(I&&m)s.push({key:d,reason:m,status:f.status});else u.push(d)}return jr(i),{baseLockDigest:e.lockfile?dr(Z(e.lockfile)):null,context:r,nextLockfile:i,preserved:u,refusals:s,statuses:l,writes:o}}function gR(e){if(e.refusals.length>0)throw new ct(e.refusals)}async function Ff(e,r){gR(r),await ji(e,async()=>{await ot(e);let i=await ce(e);if(i)he(i,r.context);if((i?dr(Z(i)):null)!==r.baseLockDigest)throw new Gi("The project lockfile changed after pull planning.");for(let t of r.writes)if(((await Ur(e,t.key))?.contentDigest??null)!==t.expectedLocalDigest)throw new Gi(`Workflow ${t.key} changed locally after pull planning; no files were overwritten.`);for(let t of r.writes)await st(e,t.manifest,t.source);await Ge(e,r.nextLockfile)})}function Kf(e,r){if(e.type!=="object")throw TypeError(`workflow.json ${r} must be a JSON object schema with type "object".`);return e}function ft(e){let r=e.manifest.outputs;return{...e.manifest.description!==void 0?{description:e.manifest.description}:{},metadata:{inputs:Kf(e.manifest.inputs,"inputs"),...r!==void 0?{outputs:r===null?null:Kf(r,"outputs")}:{}},name:e.manifest.name,source:{files:[{content:e.source,path:$e}]}}}function er(e,r,i={}){if(r.workflowId!==e.id)throw TypeError(`Revision ${r.id} does not belong to workflow ${e.id}.`);let n=r.source.files.length===1?r.source.files[0]:void 0;if(!n||n.path!==$e)throw TypeError(`Revision ${r.id} must contain exactly one ${$e} source file.`);return Ao({draftGeneration:r.draftGeneration,latestRevisionId:r.id,manifest:{$schema:_r,...i.mutableLabels==="omit"?{}:{description:e.description},inputs:r.metadata.inputs,key:e.key,name:i.mutableLabels==="omit"?e.key:e.name,...r.metadata.outputs!==void 0?{outputs:r.metadata.outputs}:{}},publishedRevisionId:e.publishedRevisionId,remoteContentDigest:r.contentDigest,source:n.content,workflowId:e.id})}class F extends Error{key;constructor(e,r){super(r==="lockfile"?"The project workflow lockfile is missing. Run `action workflow-project pull` or `action workflow-project push` first.":r==="available"?`Workflow ${e} was not found locally, in the project lockfile, or remotely.`:`Workflow ${e} was not found ${r==="tracked"?"in the project lockfile":r}.`);this.name="WorkflowNotFoundError",this.key=e}}class Ui extends Error{key;constructor(e,r){super(`Workflow ${e} does not have a ${r} revision.`);this.name="WorkflowRevisionUnavailableError",this.key=e}}class Mr extends Error{operation;polls;constructor(e,r){super(`Workflow run ${e} exceeded the bounded polling limit (${r}).`);this.name="WorkflowRunPollingLimitError",this.operation=e,this.polls=r}}class Ji extends Error{limit;constructor(e){super(`Workflow run watch exceeded the JSON capture limit (${e} events); use --jsonl to stream bounded-memory output.`);this.name="WorkflowRunCaptureLimitError",this.limit=e}}class Mi extends Error{keys;constructor(e){super(`Published pull would overwrite local files for: ${e.join(", ")}.`);this.name="PublishedPullRefusedError",this.keys=e}}import{setTimeout as bR}from"node:timers/promises";import{randomUUID as CR}from"node:crypto";var kR=/^[a-z][a-z0-9-]{0,39}$/u;function go(e){if(!kR.test(e.operation))throw TypeError("The idempotency operation must be a lowercase dash-separated name.");let r=dr(Z({operation:e.operation,origin:e.origin,payload:e.payload,spaceId:e.spaceId,workflowKey:e.workflowKey}));return`action-cli-${e.operation}-${r}`}function Hf(e){return go({...e,payload:{invocationId:CR(),value:e.payload}})}function Zf(e){return{api:e.api,context:gr(e.context),projectRoot:e.projectRoot}}function Yi(e,r,i,n){return go({operation:r,origin:e.context.origin,payload:n,spaceId:e.context.spaceId,workflowKey:i})}function Bi(e,r,i,n){return Hf({operation:r,origin:e.context.origin,payload:n,spaceId:e.context.spaceId,workflowKey:i})}async function Co(e){let r=await ce(e.projectRoot);if(!r)throw new F("project","lockfile");return he(r,e.context),r}async function Fi(e,r){de(r);let n=(await e.api.listWorkflows({spaceId:e.context.spaceId})).find((t)=>t.key===r&&!t.archivedAt);if(!n)throw new F(r,"remote");return n.id}async function ko(e,r){de(r);let i=await Co(e),n=K(i,r);if(!n)throw new F(r,"tracked");return n}var Qf=25,RR=100,XR=1440,LR=1440,WR=1e4,SR=1e4,zR=new Set(["succeeded","failed","cancelled"]);function bo(e){return zR.has(e.status)}function xf(e){let r=e??SR;if(!Number.isInteger(r)||r<0)throw TypeError("requestIntervalMs must be a non-negative integer.");return r}async function _f(e,r){if(e<=0)return!r?.aborted;try{return await bR(e,void 0,r?{signal:r}:void 0),!0}catch(i){if(r?.aborted)return!1;throw i}}async function em(e,r,i,n){if(n?.aborted)return!1;if(e===null||r===0)return!0;let t=r-(Date.now()-e);return t<=0?!0:await i(t,n)}async function rm(e,r,i){let n=await Fi(e,r);return await e.api.createWorkflowRun({input:i,spaceId:e.context.spaceId,workflowId:n},{idempotencyKey:Bi(e,"run",r,{input:i})})}async function im(e,r={}){let i=r.workflowKey?await Fi(e,r.workflowKey):void 0;return await e.api.listWorkflowRuns({spaceId:e.context.spaceId,...r.status?{status:r.status}:{},...i?{workflowId:i}:{}},{...r.cursor?{cursor:r.cursor}:{},...r.pageSize?{pageSize:r.pageSize}:{}})}async function Ro(e,r,i={}){return await e.api.getWorkflowRun({runId:r,spaceId:e.context.spaceId},i.abortSignal?{abortSignal:i.abortSignal}:{})}async function nm(e,r,i={}){let n=r,t=i.maxPolls??XR,a=xf(i.requestIntervalMs),o=i.requestDelay??_f,s=null;for(let u=0;u<t&&!bo(n);u+=1){if(!await em(s,a,o,i.signal))return n;s=Date.now();try{n=await e.api.waitForWorkflowRun({runId:n.id,spaceId:e.context.spaceId,timeoutSeconds:Qf},i.signal?{abortSignal:i.signal}:{})}catch(l){if(i.signal?.aborted)return n;throw l}}if(!bo(n)&&!i.signal?.aborted)throw new Mr("wait",t);return n}function vR(e,r){return e.nextCursor??e.data.at(-1)?.cursor??r}async function tm(e,r){let i=r.maxPages??LR,n=r.maxCapturedEvents??WR,t=r.captureEvents??!0,a=xf(r.requestIntervalMs),o=r.requestDelay??_f;if(!Number.isInteger(n)||n<1)throw TypeError("maxCapturedEvents must be a positive integer.");let s=[],u=0,l=new Set,d=new Set(r.cursor?[r.cursor]:[]),c=r.cursor;if(r.signal?.aborted)throw new DOMException("The Action API request was cancelled.","AbortError");let p=await Ro(e,r.runId,{...r.signal?{abortSignal:r.signal}:{}}),I=null;for(let f=0;f<i;f+=1){if(!await em(I,a,o,r.signal))return{eventCount:u,events:s,nextCursor:c??null,run:p,stopped:!0};I=Date.now();let m;try{m=await e.api.listWorkflowRunEvents({...c?{cursor:c}:{},pageSize:RR,runId:r.runId,spaceId:e.context.spaceId,waitSeconds:Qf},r.signal?{abortSignal:r.signal}:{})}catch(w){if(r.signal?.aborted)return{eventCount:u,events:s,nextCursor:c??null,run:p,stopped:!0};throw w}p=m.run;for(let w of m.data){if(l.has(w.id))continue;if(l.add(w.id),u+=1,t){if(s.length>=n)throw new Ji(n);s.push(w)}await r.onEvent?.(w)}let h=vR(m,c);if(h&&h!==c){if(d.has(h))throw Ae("The Action API repeated a workflow-run event cursor.");d.add(h),c=h}let q=m.nextCursor===null;if(bo(p)&&q)return{eventCount:u,events:s,nextCursor:c??null,run:p,stopped:!1}}throw new Mr("watch",i)}async function am(e,r){return await e.api.cancelWorkflowRun({runId:r,spaceId:e.context.spaceId},{idempotencyKey:Yi(e,"run-cancel",r,{runId:r})})}function Ki(e){if(e===void 0)return null;let r=new Set;for(let i of e)de(i),r.add(i);return r}function mt(e,r){let i=Ki(r);if(i){for(let n of i)if(!e.has(n))throw new F(n,"local")}return[...e.entries()].filter(([n])=>i?.has(n)??!0).sort(([n],[t])=>G(n,t))}function om(e,r){return[...new Set([...e.keys(),...Object.keys(r?.workflows??{})])].sort(G).map((n)=>{let t=K(r,n)??null,a=e.get(n)??null,o=t?a?.contentDigest!==t.contentDigest:Boolean(a);return{baseDigest:t?.contentDigest??null,baseRevisionId:t?.latestRevisionId??null,key:n,localDigest:a?.contentDigest??null,localModified:o,remoteDigest:t?.contentDigest??null,remoteModified:!1,remoteRevisionId:t?.latestRevisionId??null,status:!t?"new":!a?"missing":o?"local_changes":"clean"}})}function Xo(e,r){return e.map((i)=>{let n=K(r,i.manifest.key),t=n?.mutableLabels!==void 0&&n.mutableLabels.name===i.manifest.name&&n.mutableLabels.description===(i.manifest.description??null);if(!(n?.workflowId===i.workflowId&&(n.draftGeneration??0)===i.draftGeneration&&n.latestRevisionId===i.latestRevisionId&&n.remoteContentDigest!==void 0&&n.remoteContentDigest===i.remoteContentDigest&&t))return i;return{...i,contentDigest:n.contentDigest}})}function sm(e){let r={...e};return delete r.pendingPublication,r}function PR(e){return e instanceof j&&e.status!==null&&!e.retryable}function um(e,r){return r===e.latestRevisionId?e.draftGeneration??0:0}function pt(e,r){return`${r}:${um(e,r)}`}async function lm(e,r={}){return await ji(e.projectRoot,async()=>{await ot(e.projectRoot);let i=await Jr(e.projectRoot),n=mt(i,r.keys),t=new Map(n.map(([l,d])=>[l,ft(d)])),a=await ce(e.projectRoot)??Cr(e.context);he(a,e.context);let o={failures:[],items:[],skipped:[],validationFailures:[]},s=async(l)=>{try{return await e.api.validateWorkflowRevision({revisionId:l.revisionId,spaceId:e.context.spaceId,workflowId:l.workflowId})}catch(d){return o.validationFailures.push({error:d,...l}),null}},u=async(l,d)=>{let c=K(a,l);if(!c||c.latestRevisionId!==d)throw Error(`Cannot record validation for stale workflow revision ${d}.`);a={...a,workflows:{...a.workflows,[l]:{...c,validatedRevisionId:d}}},await Ge(e.projectRoot,a)};for(let[l,d]of n){let c=K(a,l);if(c?.contentDigest===d.contentDigest){if(c.validatedRevisionId===c.latestRevisionId){o.skipped.push(l);continue}let p=await s({key:l,revisionId:c.latestRevisionId,workflowId:c.workflowId});if(!p)continue;if(p.ok){await u(l,c.latestRevisionId),o.skipped.push(l);continue}o.items.push({created:!1,key:l,revisionId:c.latestRevisionId,validation:p,workflowId:c.workflowId});continue}try{let p=t.get(l);if(!p)throw Error(`Missing validated payload for ${l}.`);let I=Yi(e,c?"update":"create",l,{baseDraftGeneration:c?.draftGeneration??null,baseRevisionId:c?.latestRevisionId??null,contentDigest:d.contentDigest,workflowId:c?.workflowId??null}),f=c?await e.api.updateWorkflow({...p,baseRevisionId:c.latestRevisionId,ifMatch:pt(c,c.latestRevisionId),spaceId:e.context.spaceId,workflowId:c.workflowId},{idempotencyKey:I}):await e.api.createWorkflow({...p,key:l,spaceId:e.context.spaceId},{idempotencyKey:I}),m=er(f.workflow,f.revision);a={...a,workflows:{...a.workflows,[l]:{contentDigest:d.contentDigest,draftGeneration:m.draftGeneration,latestRevisionId:m.latestRevisionId,mutableLabels:{description:m.manifest.description??null,name:m.manifest.name},...c?.pendingPublication&&m.publishedRevisionId!==c.pendingPublication.revisionId?{pendingPublication:c.pendingPublication}:{},publishedRevisionId:m.publishedRevisionId,remoteContentDigest:f.revision.contentDigest,sourceDigest:d.sourceDigest,workflowId:m.workflowId}}},await Ge(e.projectRoot,a);let h=await s({key:l,revisionId:f.revision.id,workflowId:f.workflow.id});if(!h)continue;if(h.ok)await u(l,f.revision.id);o.items.push({created:!c,key:l,revisionId:f.revision.id,validation:h,workflowId:f.workflow.id})}catch(p){o.failures.push({error:p,key:l})}}return o})}async function dm(e,r,i,n){let t=await ko(e,r),a=n??t.latestRevisionId,o=um(t,a);return await e.api.testWorkflowRevision({ifMatch:pt(t,a),input:i,revisionId:a,spaceId:e.context.spaceId,workflowId:t.workflowId},{idempotencyKey:Bi(e,"test",r,{draftGeneration:o,input:i,revisionId:a,workflowId:t.workflowId})})}async function cm(e,r,i){return await ji(e.projectRoot,async()=>{let n=await Co(e),t=K(n,r);if(!t)throw new F(r,"tracked");let a=i??t.latestRevisionId;if(!a)throw new Ui(r,"base");let o=t.pendingPublication?.revisionId===a?t.pendingPublication.idempotencyKey:Bi(e,"publish",r,{draftGeneration:t.draftGeneration??0,revisionId:a,workflowId:t.workflowId}),s={...t,pendingPublication:{idempotencyKey:o,revisionId:a}},u={...n,workflows:{...n.workflows,[r]:s}};await Ge(e.projectRoot,u);let l;try{l=await e.api.publishWorkflowRevision({ifMatch:pt(t,a),revisionId:a,spaceId:e.context.spaceId,workflowId:t.workflowId},{idempotencyKey:o})}catch(d){if(PR(d))await Ge(e.projectRoot,{...u,workflows:{...u.workflows,[r]:sm(s)}});throw d}return await Ge(e.projectRoot,{...u,workflows:{...u.workflows,[r]:{...sm(s),draftGeneration:l.draftGeneration??0,publishedRevisionId:l.revisionId}}}),l})}async function fm(e,r){let i=await ko(e,r);return await e.api.archiveWorkflow({ifMatch:pt(i,i.latestRevisionId),spaceId:e.context.spaceId,workflowId:i.workflowId},{idempotencyKey:Yi(e,"archive",r,{draftGeneration:i.draftGeneration??0,revisionId:i.latestRevisionId,workflowId:i.workflowId})})}async function mm(e,r){return await e.api.listWorkflowRevisions({spaceId:e.context.spaceId,workflowId:await Fi(e,r)})}var Yr=8;async function Br(e,r,i){if(!Number.isInteger(r)||r<1)throw TypeError("concurrency must be a positive integer");let n=Array(e.length),t=0,a=async()=>{while(t<e.length){let o=t;t+=1,n[o]=await i(e[o],o)}};return await Promise.all(Array.from({length:Math.min(r,e.length)},async()=>a())),n}async function pm(e,r){return await e.api.listWorkflowCapabilities(e.context.spaceId,{...r?{query:r}:{}})}async function Hi(e,r={}){return await e.api.listWorkflows({...r.includeArchived!==void 0?{includeArchived:r.includeArchived}:{},spaceId:e.context.spaceId})}function Lo(e,r){let i=Ki(r);if(i){let n=new Set(e.map((t)=>t.key));for(let t of i)if(!n.has(t))throw new F(t,"remote")}return e.filter((n)=>i?.has(n.key)??!0).sort((n,t)=>G(n.key,t.key))}async function Wo(e,r){let i=await Hi(e,{...r.includeArchived!==void 0?{includeArchived:r.includeArchived}:{}}),n=Ki(r.archivedKeys),t=Ki(r.keys),a=n?i.filter((s)=>s.archivedAt===null||n.has(s.key)):i,o=r.allowMissingKeys?a.filter((s)=>t?.has(s.key)??!0).sort((s,u)=>G(s.key,u.key)):Lo(a,r.keys);return await Br(o,Yr,async(s)=>er(s,await e.api.getWorkflowRevision({revisionId:s.latestRevisionId,spaceId:e.context.spaceId,workflowId:s.id})))}async function Im(e,r={}){let[i,n]=await Promise.all([Jr(e.projectRoot),ce(e.projectRoot)]),t=[...new Set([...i.keys(),...Object.keys(n?.workflows??{}),...r.keys??[]])],a=await Wo(e,{allowMissingKeys:!0,archivedKeys:t,includeArchived:!0,...r.keys?{keys:r.keys}:{}});if(r.keys){let u=new Set([...i.keys(),...Object.keys(n?.workflows??{}),...a.map((l)=>l.manifest.key)]);for(let l of r.keys)if(!u.has(l))throw new F(l,"available")}let o=Xo(a,n),s=Bf({context:e.context,...r.keys?{keys:r.keys}:{},local:i,lockfile:n,...r.force!==void 0?{overwriteDiverged:r.force}:{},remote:o});return await Ff(e.projectRoot,s),s}async function qm(e,r){let i=Lo(await Hi(e),r.keys),n=i.filter((l)=>l.publishedRevisionId===null).map((l)=>l.key),t=i.filter((l)=>l.publishedRevisionId!==null),a=await Br(t,Yr,async(l)=>er(l,await e.api.getWorkflowRevision({revisionId:l.publishedRevisionId,spaceId:e.context.spaceId,workflowId:l.id}),{mutableLabels:"omit"})),o=await Br(a,Yr,async(l)=>({local:await Ur(r.outputRoot,l.manifest.key),snapshot:l})),s=o.filter(({local:l,snapshot:d})=>l!==null&&l.contentDigest!==d.contentDigest&&!r.force).map(({snapshot:l})=>l.manifest.key);if(s.length>0)throw new Mi(s);let u=[];for(let{local:l,snapshot:d}of o){if(l?.contentDigest===d.contentDigest)continue;await st(r.outputRoot,d.manifest,d.source),u.push(d.manifest.key)}return{skippedUnpublished:n,workflows:a,written:u}}async function hm(e,r={}){let[i,n]=await Promise.all([Jr(e.projectRoot),ce(e.projectRoot)]);if(n)he(n,e.context);if(r.offline)return om(i,n);let t=Xo(await Wo(e,{archivedKeys:[...i.keys(),...Object.keys(n?.workflows??{})],includeArchived:!0}),n),a=new Map(t.map((s)=>[s.manifest.key,s]));return[...new Set([...i.keys(),...a.keys(),...Object.keys(n?.workflows??{})])].sort(G).flatMap((s)=>{let u=lt({base:K(n,s)??null,key:s,local:i.get(s)??null,remote:a.get(s)??null});return u?[u]:[]})}async function wm(e,r){de(r);let[i,n]=await Promise.all([Ur(e.projectRoot,r),ce(e.projectRoot)]);if(n)he(n,e.context);let t=K(n,r);if(!t&&!i)throw new F(r,"local");if(!t)return{baseRevisionId:null,diff:Ia({after:i,before:null,key:r}),key:r};if(i?.contentDigest===t.contentDigest)return{baseRevisionId:t.latestRevisionId,diff:"",key:r};let[a,o]=await Promise.all([e.api.getWorkflow({spaceId:e.context.spaceId,workflowId:t.workflowId}),e.api.getWorkflowRevision({revisionId:t.latestRevisionId,spaceId:e.context.spaceId,workflowId:t.workflowId})]),s=t.mutableLabels?er({...a,description:t.mutableLabels.description,name:t.mutableLabels.name},o):er(a,o,{mutableLabels:"omit"}),{description:u,outputs:l,...d}=s.manifest,c={...s,manifest:{...d,...u!==void 0&&(u!==null||i?.manifest.description!==void 0)?{description:u}:{},...l!==void 0&&(l!==null||i?.manifest.outputs!==void 0)?{outputs:l}:{}}};return{baseRevisionId:t.latestRevisionId,diff:Ia({after:i,before:c,key:r}),key:r}}async function ym(e,r={}){let[i,n]=await Promise.all([Jr(e.projectRoot),ce(e.projectRoot)]);if(n)he(n,e.context);let t=mt(i,r.keys);for(let[,a]of t)ft(a);return await Br(t,Yr,async([a,o])=>{if(!r.remote)return{key:a,localValid:!0};let s=K(n,a);if(!s)return{key:a,localValid:!0,remote:{reason:"not-pushed",state:"skipped"}};if(o.contentDigest!==s.contentDigest)return{key:a,localValid:!0,remote:{reason:"locally-modified",state:"skipped"}};return{key:a,localValid:!0,remote:{result:await e.api.validateWorkflowRevision({revisionId:s.latestRevisionId,spaceId:e.context.spaceId,workflowId:s.workflowId}),revisionId:s.latestRevisionId,state:"validated"}}})}class So{scope;constructor(e){this.scope=Zf(e)}async list(e={}){return await Hi(this.scope,e)}async capabilities(e){return await pm(this.scope,e)}async pull(e={}){return await Im(this.scope,e)}async pullPublished(e){return await qm(this.scope,e)}async status(e={}){return await hm(this.scope,e)}async diff(e){return await wm(this.scope,e)}async validate(e={}){return await ym(this.scope,e)}async push(e={}){return await lm(this.scope,e)}async test(e,r,i){return await dm(this.scope,e,r,i)}async run(e,r){return await rm(this.scope,e,r)}async runs(e={}){return await im(this.scope,e)}async getRun(e){return await Ro(this.scope,e)}async waitForRun(e,r={}){return await nm(this.scope,e,r)}async watchRun(e){return await tm(this.scope,e)}async cancelRun(e){return await am(this.scope,e)}async publish(e,r){return await cm(this.scope,e,r)}async archive(e){return await fm(this.scope,e)}async revisions(e){return await mm(this.scope,e)}}var OR=new Set(["authentication_required","invalid_credential"]),$R=new Set(["conflict","idempotency_mismatch","operation_in_progress","stale_revision"]),VR=new Set(["content_too_large","invalid_request","unsupported_media_type"]);function TR(e){if(e===401)return W.authentication;if(e===404)return W.notFound;if(e===409)return W.conflict;if(e===400||e===413||e===415||e===422)return W.validation;return W.remote}function zo(e){return e.includes("--json")||e.includes("--format=json")||e.some((r,i)=>r==="--format"&&e[i+1]==="json")}function ER(e){let r=W.remote;if(OR.has(e.code))r=W.authentication;else if(e.code==="not_found")r=W.notFound;else if($R.has(e.code))r=W.conflict;else if(VR.has(e.code))r=W.validation;else if(e.code==="api_error")r=TR(e.status);return new $(e.code,e.message,{cause:e,details:{...e.correlationId?{correlationId:e.correlationId}:{},...e.details?{fields:e.details}:{},retryable:e.retryable,...e.status!==null?{status:e.status}:{}},exitCode:r})}function gm(e){if(e instanceof $)return e;if(e instanceof j)return ER(e);if(ar(e))return new $("authentication_failed",e.message,{cause:e,exitCode:W.authentication});if(e instanceof at)return new $("project_not_found",e.message,{cause:e,exitCode:W.notFound});if(e instanceof F||e instanceof Ui)return new $("workflow_not_found",e.message,{cause:e,exitCode:W.notFound});if(e instanceof Mr)return new $("polling_limit_exceeded",e.message,{cause:e,details:{operation:e.operation,polls:e.polls},exitCode:W.remote});if(e instanceof Ji)return new $("capture_limit_exceeded",e.message,{cause:e,details:{limit:e.limit},exitCode:W.remote});if(e instanceof k)return new $("profile_error",e.message,{cause:e,exitCode:W.usage});if(e instanceof V)return new $("validation_failed",e.message,{cause:e,exitCode:W.validation});if(e instanceof Ar||e instanceof ut||e instanceof Mi||e instanceof Gi||e instanceof ct)return new $("workflow_conflict",e.message,{cause:e,exitCode:W.conflict});let r=e;if(r?.code==="partial_failure"||r?.name==="WorkflowPartialFailureError"){let i=Ht(e);return new $("partial_failure",i.message,{cause:e,details:i.details,exitCode:W.partial})}return Ht(e)}function Zi(e){let r=new os;r.name("action").description("Operate Action headlessly from a terminal or coding agent").version(H).option("--profile <name>","use a named CLI profile").option("--api-url <url>","override the selected profile's Action API URL").option("--space <id-or-key>","override the active space for this command").option("--organization <id>","use the authenticated organization without selecting a space").option("--json","emit one stable JSON result",!1).option("--non-interactive","disable prompts and browser-dependent choices",!1).showSuggestionAfterError(!0).allowExcessArguments(!1).exitOverride().configureOutput({outputError:()=>{return},writeErr:()=>{return},writeOut:(n)=>(e.stdout??process.stdout).write(n)});let i=(n)=>mn({json:n.optsWithGlobals().json??!1,...e.stderr?{stderr:e.stderr}:{},...e.stdout?{stdout:e.stdout}:{}});return Qt(r,e,i),ra(r,e,i),ia(r,e,i),ta(r,e,i),r}var Cm=new Set(["--profile","--api-url","--space","--organization","--format","--base-url"]);function Am(e,r){let i=e;for(let n=0;n<r.length;n++){let t=r[n];if(Cm.has(t)){n++;continue}if(t.startsWith("-"))continue;let a=i.commands.find((o)=>o.name()===t||o.aliases().includes(t));if(!a)break;i=a}return i}function NR(e){let r=[];for(let i=e;i;i=i.parent)r.unshift(i.name());return r.join(" ")}function DR(e){for(let r=0;r<e.length;r++){let i=e[r];if(Cm.has(i)){r++;continue}if(i.startsWith("-"))continue;return["auth","context","workflow-project","skill-project"].includes(i==="help"?e[r+1]??"":i)}return!1}async function vo(e,r){let i=Zi(r);try{if(r.runGenerated&&!DR(e))return await r.runGenerated(e.length?e:["--help"]);return await i.parseAsync([...e],{from:"user"}),W.success}catch(n){if(Je.aborted)return W.success;if(n instanceof as){if(n.exitCode===W.success)return W.success;if(n.code==="commander.help"&&!zo(e))return(r.stdout??process.stdout).write(Am(i,e).helpInformation()),W.success;return mn({json:zo(e),...r.stderr?{stderr:r.stderr}:{},...r.stdout?{stdout:r.stdout}:{}}).error(new $("usage_error",n.code==="commander.help"?`No command given. Run \`${NR(Am(i,e))} --help\` to list commands.`:n.message.replace(/^error:\s*/u,""),{exitCode:W.usage})),W.usage}let t=gm(n);return mn({json:zo(e),...r.stderr?{stderr:r.stderr}:{},...r.stdout?{stdout:r.stdout}:{}}).error(t),t.exitCode}}import{spawn as uX}from"node:child_process";import{createInterface as Jm}from"node:readline/promises";function km(e){return e.length>0?e.join(`
225
+ `):"No results."}function bm(e,r){return{async login(i={}){if(e.globals.json||e.globals.nonInteractive)throw new $("usage_error","Human login requires interactive mode.",{exitCode:W.usage});let n=await e.humanAuthProfile(),t={},a=await Ut({apiOrigin:n.apiUrl,clientId:n.auth.clientId,credentialStore:e.credentialStore(),...r.fetch?{fetch:r.fetch}:{},finalizeSession:async(s)=>{let u=await Et({apiOrigin:n.apiUrl,...r.fetch?{fetch:r.fetch}:{},...i.organization?{organization:i.organization}:{},profile:{apiOrigin:n.apiUrl,clientId:n.auth.clientId,issuer:n.auth.issuer},...r.selectOrganization?{selectOrganization:r.selectOrganization}:{},session:s});return t.organization=u.organization,u.session},issuer:n.auth.issuer,lockDirectory:e.profileStore.paths.configDir,onVerification:(s)=>{r.reporter.info(`Open ${s.verificationUri} and enter code ${s.userCode}.`)},...r.openBrowser?{openBrowser:r.openBrowser}:{},profileName:n.name}),o=t.organization;if(!o)throw Error("Action organization selection did not complete.");return e.profileStore.upsert(n.name,{...n,organization:{id:o.id,name:o.name},space:null},!0),{human:`Signed in to ${o.name} for profile ${n.name}.`,value:{authenticated:!0,expiresAt:new Date(a.expiresAt).toISOString(),organization:{id:o.id,key:o.key,name:o.name},profile:n.name}}},async logout(){let i=e.profileName();await $t(e.credentialStore(),e.profileStore.paths.configDir,i);let n=Boolean(e.env.ACTION_TOKEN?.trim()||e.env.ACTION_API_KEY?.trim());return{human:n?`Removed the stored session for ${i}; an environment credential is still active.`:`Signed out of profile ${i}.`,value:{environmentCredential:n,profile:i,signedOut:!0}}},async status(){let i=e.profileName();if(e.env.ACTION_TOKEN?.trim())return{human:"Authenticated with ACTION_TOKEN.",value:{authenticated:!0,profile:i,source:"environment_token"}};if(e.env.ACTION_API_KEY?.trim())return{human:"Authenticated with ACTION_API_KEY.",value:{authenticated:!0,profile:i,source:"environment_api_key"}};let n={authenticated:!1};if(e.selectedProfile(!1))try{await e.credential(),n=await Vt(e.credentialStore(),i)}catch(t){if(!(t instanceof ye)&&!(t instanceof se))throw t}return n.authenticated?{human:`Authenticated with a stored human session for ${i}.`,value:{authenticated:!0,expiresAt:new Date(n.expiresAt).toISOString(),organizationId:n.organizationId,profile:i,source:"human_session"}}:{human:`Not authenticated for profile ${i}.`,value:{authenticated:!1,profile:i}}}}}function Rm(e){return{async list(){let r=await e.identity().listSpaces(),i=e.globals.space??e.env.ACTION_SPACE_ID?.trim()??e.selectedProfile(!1)?.space?.id??null,n={spaces:r.map((t)=>({active:t.id===i||t.key===i,id:t.id,key:t.key,name:t.name,organizationId:t.organizationId}))};return{human:km(n.spaces.map((t)=>`${t.active?"*":" "} ${t.key} ${t.name} ${t.id}`)),value:n}},async show(){let r=e.selectedProfile(!1),i={apiUrl:e.apiUrl(),organization:r?.organization??null,profile:r?.name??e.profileName(),space:e.globals.space?{id:e.globals.space,override:!0}:r?.space??null};return{human:km([`Profile: ${i.profile}`,`API: ${i.apiUrl}`,`Organization: ${i.organization?.name??i.organization?.id??"not selected"}`,`Space: ${i.space?.id??"not selected"}`]),value:i}},async use(r){let i=e.selectedProfile(),n=await e.remoteSelection(r),t=e.profileStore.selectContext(i.name,n.organization,n.space);return{human:`Using ${n.space.name} (${n.space.key}) for profile ${i.name}.`,value:{organization:t.organization,profile:i.name,space:{id:n.space.id,key:n.space.key,name:n.space.name}}}}}}import{resolve as jR}from"node:path";function Po(e){let r=ai(e);return{getCurrentPrincipal:async(i={})=>await r.getIdentity(i),listSpaces:async(i={})=>await r.listSpaces(i)}}var GR="https://backend.action.so",UR="https://api.workos.com",JR={clientId:"machine-credential",issuer:"https://api.workos.com"},MR={delete:async()=>{return},get:async()=>null,set:async()=>{return}};function oe(e){return e?.trim()||null}function Oo(e){let r;try{r=nr(e)}catch(t){throw new k(t instanceof Error?t.message:"The Action API URL is invalid.")}let i=new URL(r),n=i.hostname==="localhost"||i.hostname==="127.0.0.1"||i.hostname==="[::1]";if(i.protocol!=="https:"&&!(i.protocol==="http:"&&n))throw new k("The Action API URL must use HTTPS outside local development.");return r}class Qi{env;globals;profileStore;cwdProvider;fetcher;credentialStoreValue;apiValue;generatedBinaryPath;identityValue;publicClientOptionsValue;actionCorrelationIdValue;constructor(e){this.env=e.env??process.env,this.globals=e.globals,this.generatedBinaryPath=e.generatedBinaryPath,this.profileStore=e.profileStore??new cn,this.cwdProvider=e.cwd??process.cwd,this.fetcher=e.fetch,this.credentialStoreValue=e.credentialStore}cwd(){return this.cwdProvider()}apiUrl(e){return Oo(this.globals.apiUrl??this.selectedProfile(!1)?.apiUrl??oe(this.env.ACTION_API_URL)??e??GR)}profileName(){return this.globals.profile??oe(this.env.ACTION_PROFILE)??this.profileStore.currentName()??"default"}selectedProfile(e=!0){let r=this.globals.profile??oe(this.env.ACTION_PROFILE)??this.profileStore.currentName();if(!r){if(e)throw new k("No Action CLI profile is selected.");return null}let i=this.profileStore.list().find((n)=>n.name===r)??null;if(!i&&e)throw new k(`Action CLI profile "${r}" does not exist.`);return i}async humanAuthProfile(){let e=this.selectedProfile(!1);if(e){if(Oo(e.apiUrl)!==this.apiUrl())throw new k("Human login is bound to the selected profile's API URL. Use a matching profile before logging in.");return e}let r=oe(this.env.ACTION_AUTHKIT_CLIENT_ID),i=r?null:await Tt({apiOrigin:this.apiUrl(),...this.fetcher?{fetch:this.fetcher}:{}}),n=r??i?.clientId,t=oe(this.env.ACTION_AUTHKIT_ISSUER)??i?.issuer??UR;if(!n)throw new k("Human login is not configured.");return this.profileStore.upsert(this.profileName(),{apiUrl:this.apiUrl(),auth:{clientId:n,issuer:t},organization:null,space:null},!0)}credentialStore(){return this.credentialStoreValue??=Gt(),this.credentialStoreValue}requestFetcher(){return this.fetcher}async credential(){let e=this.selectedProfile(!1);return await this.credentialForProfile(e)}identity(){return this.identityValue??=Po(this.publicClientOptions()),this.identityValue}async credentialForProfile(e,r=this.apiUrl()){let i=oe(this.env.ACTION_TOKEN)??oe(this.env.ACTION_API_KEY);if(!e&&!i)throw new ye;if(e&&!i&&Oo(e.apiUrl)!==r)throw new ye("The stored human session is bound to the selected profile's API URL. Use a matching profile or set ACTION_TOKEN or ACTION_API_KEY for an API override.");return await Ot({credentialStore:i?MR:this.credentialStore(),env:{ACTION_API_KEY:this.env.ACTION_API_KEY,ACTION_TOKEN:this.env.ACTION_TOKEN},...this.fetcher?{fetch:this.fetcher}:{},lockDirectory:this.profileStore.paths.configDir,profile:{apiOrigin:r,name:e?.name??this.profileName(),...e?.auth??JR}})}api(){return this.apiValue??=ai(this.publicClientOptions()),this.apiValue}publicClientOptions(){if(this.publicClientOptionsValue)return this.publicClientOptionsValue;let e=this.apiUrl(),r=this.selectedProfile(!1);return this.publicClientOptionsValue={baseUrl:e,correlationIdProvider:()=>{return this.actionCorrelationIdValue??=crypto.randomUUID(),this.actionCorrelationIdValue},preserveError:(i)=>ar(i)||i instanceof k,cwd:this.cwd(),env:this.env,...this.generatedBinaryPath?{binaryPath:this.generatedBinaryPath}:{},tokenProvider:async()=>{return(await this.credentialForProfile(r,e)).authorization.replace(/^Bearer\s+/u,"")},version:H},this.publicClientOptionsValue}async projectRoot(){return await Uf(this.cwd())}async initializationContext(){let e=this.selectedProfile(!1),r=this.globals.organization??oe(this.env.ACTION_ORGANIZATION_ID),i=this.globals.space??oe(this.env.ACTION_SPACE_ID);if(!r&&!i)return e?.organization&&e.space?{origin:this.apiUrl(),organizationId:e.organization.id,spaceId:e.space.id}:void 0;let n=i??e?.space?.id;if(!n)throw new k("ACTION_ORGANIZATION_ID requires --space or ACTION_SPACE_ID when initializing a project.");if(e?.organization&&e.space?.id===n&&(!r||r===e.organization.id))return{origin:this.apiUrl(),organizationId:e.organization.id,spaceId:e.space.id};let t=await this.remoteSelection(n);if(r&&t.organization.id!==r)throw new k(`Space "${n}" does not belong to organization ${r}.`);return{origin:this.apiUrl(),organizationId:t.organization.id,spaceId:t.space.id}}async remoteSelection(e,r={}){let i=this.identity(),[n,t]=await Promise.all([i.getCurrentPrincipal(r),i.listSpaces(r)]),a=this.globals.organization??oe(this.env.ACTION_ORGANIZATION_ID);if(a&&n.organization.id!==a)throw new k("The requested organization does not match your current login.");let o=e??this.globals.space??oe(this.env.ACTION_SPACE_ID)??this.selectedProfile(!1)?.space?.id??null,s=t.filter((l)=>l.organizationId===n.organization.id),u;if(o){if(u=s.find((l)=>l.id===o||l.key===o),!u)throw new k(`Space "${o}" is not available in organization ${n.organization.name}.`)}else if(s.length===1)u=s[0];else throw new k("Select a space with `action context use <space>` or pass --space.");if(!u)throw new k("No Action workflow space is available.");return{organization:n.organization,space:u}}async remoteOrganization(e={}){let r=await this.identity().getCurrentPrincipal(e),i=this.globals.organization??oe(this.env.ACTION_ORGANIZATION_ID)??this.selectedProfile(!1)?.organization?.id;if(i&&i!==r.organization.id)throw new k(`Organization "${i}" does not match the authenticated organization. Log in to that organization first.`);return r.organization}async projectContext(e){let[r,i]=await Promise.all([ce(e),Promise.resolve(this.selectedProfile(!1))]),n=this.globals.space??oe(this.env.ACTION_SPACE_ID),t=i?.space?.id??r?.spaceId??null,a=n??t,o=this.globals.organization??i?.organization?.id??oe(this.env.ACTION_ORGANIZATION_ID)??r?.organizationId??null,u=!n&&!i?.space&&a===r?.spaceId&&r?.organizationId!==o;if(a&&o&&(!this.globals.organization||this.globals.organization===i?.organization?.id)&&(!n||n===t)&&!u)return{origin:this.apiUrl(r?.origin),organizationId:o,spaceId:a};let l=await this.remoteSelection(a??void 0);return{origin:this.apiUrl(r?.origin),organizationId:l.organization.id,spaceId:l.space.id}}async workflowService(e={}){let r=e.projectRequired===!1?this.cwd():await this.projectRoot(),i=e.projectRequired===!1?await this.remoteSelection(void 0,{...e.abortSignal?{abortSignal:e.abortSignal}:{}}).then((n)=>({origin:this.apiUrl(),organizationId:n.organization.id,spaceId:n.space.id})):await this.projectContext(r);return new So({api:this.api(),context:i,projectRoot:r})}resolveDirectory(e){return jR(this.cwd(),e??".")}}import{access as YR,mkdir as BR,realpath as FR}from"node:fs/promises";import{basename as KR,dirname as HR,isAbsolute as ZR,join as zm,relative as QR}from"node:path";function It(e){return e?{keys:[e]}:{}}function Pe(e,r="No workflows found."){return e.length>0?e.join(`
226
+ `):r}function qt(e,r){return r.output===null?e:`${e}
227
+ ${JSON.stringify(r.output,null,2)}`}async function xR(e){try{return await YR(e),!0}catch(r){if(r.code==="ENOENT")return!1;throw r}}function _R(e){if(e instanceof j)return{code:e.code,...e.correlationId?{correlationId:e.correlationId}:{},...e.details?{details:e.details}:{},message:e.message,retryable:e.retryable,...e.status!==null?{status:e.status}:{}};if(e instanceof $)return{code:e.code,...e.details!==void 0?{details:e.details}:{},message:e.message};if(ar(e))return{code:"authentication_failed",message:e instanceof Error?e.message:"Authentication failed.",retryable:!1};let r=e;return{code:typeof r?.code==="string"?r.code:"workflow_push_failed",message:typeof r?.message==="string"?r.message:"The workflow could not be pushed."}}function Xm(e){let r=e;return{error:_R(e.error),key:e.key,...typeof r.revisionId==="string"?{revisionId:r.revisionId}:{},...typeof r.workflowId==="string"?{workflowId:r.workflowId}:{}}}function Lm(e,r){return new $("validation_failed",e,{details:{workflows:r},exitCode:W.validation})}function Wm(e){if(e.status!=="failed"&&e.status!=="cancelled")return;throw new $("workflow_run_failed",`Run ${e.id} finished with status ${e.status}.`,{details:{run:e},exitCode:W.remote})}class Vo extends ${constructor(e){let r=e.failures.map(Xm),i=e.validationFailures.map(Xm),n=e.items.filter((o)=>!o.validation.ok),t=new Set([...e.skipped,...e.items.filter((o)=>o.validation.ok).map((o)=>o.key)]),a=new Set([...r.map((o)=>o.key),...i.map((o)=>o.key),...n.map((o)=>o.key)]);super("partial_failure",t.size>0?`Push completed for ${t.size} workflow(s); ${a.size} workflow(s) failed.`:`Push failed for ${a.size} workflow(s).`,{details:{failures:r,items:e.items,skipped:e.skipped,validationFailures:i},exitCode:W.partial});this.name="WorkflowPartialFailureError"}}async function $o(e){try{return await FR(e)}catch(r){if(r.code!=="ENOENT")throw r;let i=HR(e);return i===e?e:zm(await $o(i),KR(e))}}function Sm(e,r){let i=QR(e,r);return i===""||!i.startsWith("..")&&!ZR(i)}async function eX(e,r){let i=await $o(B(e).workflows),n=await $o(B(r).workflows);if(Sm(i,n)||Sm(n,i))throw new $("workflow_conflict","Published inspection output must not overlap the active project's workflows directory.",{exitCode:W.conflict})}function vm(e){return{async init(r){let i=e.resolveDirectory(r.directory),n=zm(i,"action.json");if(await xR(n))throw new $("project_exists",`An Action project already exists at ${i}.`,{exitCode:W.conflict});let t=await e.initializationContext();return await Mf(i,t),{human:`Initialized an Action workflow project at ${i}.`,value:{contextConfigured:Boolean(t),projectRoot:i}}},async capabilities(r){let i=await(await e.workflowService({projectRequired:!1})).capabilities(r.application),n={applications:i,query:r.application??null};if(!r.application)return{human:Pe(i.map((t)=>`${t.slug} ${t.displayName} ${t.connectionStatus}`),"No workflow applications found."),value:n};return{human:Pe(i.flatMap((t)=>[`${t.slug} ${t.displayName} ${t.connectionStatus}`,...t.connectorInstances.map((a)=>`connection ${a.id} ${a.label??a.displayName}`),...t.actions.map((a)=>`action ${a.effect} ${a.name}`),...t.readActions.map((a)=>`read-action ${a.effect} ${a.name}`)]),"No matching workflow applications found."),value:n}},async list(r){let n={workflows:(await(await e.workflowService({projectRequired:!1})).list({includeArchived:r.includeArchived})).map((t)=>({archivedAt:t.archivedAt,hasUnpublishedChanges:t.hasUnpublishedChanges,id:t.id,key:t.key,latestRevisionId:t.latestRevisionId,name:t.name,publishedRevisionId:t.publishedRevisionId}))};return{human:Pe(n.workflows.map((t)=>`${t.key} ${t.name} ${t.archivedAt?"archived":t.hasUnpublishedChanges?"draft":"published"}`)),value:n}},async pull(r){if(r.published){if(!r.outputDirectory)throw Error("Published pull requires an output directory.");let a=e.resolveDirectory(r.outputDirectory);await eX(await e.projectRoot(),a),await BR(a,{recursive:!0});let s=await(await e.workflowService()).pullPublished({force:r.force,...It(r.key),outputRoot:a}),u={outputRoot:a,skippedUnpublished:s.skippedUnpublished,workflows:s.workflows.map((l)=>({contentDigest:l.contentDigest,key:l.manifest.key,revisionId:l.latestRevisionId,workflowId:l.workflowId})),written:s.written};return{human:Pe([...u.written.map((l)=>`pulled ${l}`),...u.skippedUnpublished.map((l)=>`skipped-unpublished ${l}`)],"Published workflows are already up to date."),value:u}}let n=await(await e.workflowService()).pull({force:r.force,...It(r.key)}),t={preserved:n.preserved,refusals:n.refusals,statuses:n.statuses,written:n.writes.map((a)=>a.key)};return{human:Pe(t.written.map((a)=>`pulled ${a}`),"Workflows are up to date."),value:t}},async status(r){let i=await(await e.workflowService()).status({offline:r.offline});return{human:Pe(i.map((n)=>`${n.status} ${n.key}`),"No local or remote workflows found."),value:{offline:r.offline,workflows:i}}},async diff(r){let i=await(await e.workflowService()).diff(r.key);return{human:i.diff||`No changes for ${r.key}.`,value:i}},async validate(r){let i=await(await e.workflowService()).validate({...It(r.key),remote:r.remote}),n=i.filter((t)=>t.remote?.state==="validated"&&!t.remote.result.ok);if(n.length>0)throw Lm(`Remote validation failed for ${n.map((t)=>t.key).join(", ")}.`,n);return{human:Pe(i.map((t)=>{return`${t.remote?t.remote.state==="validated"?t.remote.result.ok?"remote-valid":"remote-invalid":`remote-skipped:${t.remote.reason}`:"local-valid"} ${t.key}`})),value:{workflows:i}}},async push(r){let i=await(await e.workflowService()).push({...It(r.key)}),n=i.items.filter((l)=>!l.validation.ok),t=new Set([...i.failures.map((l)=>l.key),...i.validationFailures.map((l)=>l.key),...n.map((l)=>l.key)]),a=new Set([...i.skipped,...i.items.filter((l)=>l.validation.ok).map((l)=>l.key)]),o=i.failures.length>0||i.validationFailures.length>0;if(t.size>0&&(a.size>0||o&&t.size>1))throw new Vo(i);let s=i.failures[0];if(s)throw s.error;let u=i.validationFailures[0];if(u)throw u.error;if(n.length>0)throw Lm(`Workflow validation failed for ${n.map((l)=>l.key).join(", ")}.`,n);return{human:Pe([...i.items.map((l)=>`${l.created?"created":"updated"} ${l.key}`),...i.skipped.map((l)=>`unchanged ${l}`)],"Workflows are already up to date."),value:{failures:[],skipped:i.skipped,workflows:i.items}}},async test(r){let i=await e.workflowService(),n=await i.test(r.key,r.input),t=r.wait?await i.waitForRun(n):n;if(r.wait)Wm(t);return{human:r.wait?qt(`Test run ${t.id} finished with status ${t.status}.`,t):`Started test run ${t.id} (${t.status}).`,value:{run:t,waited:r.wait}}},async run(r){let i=await e.workflowService({projectRequired:!1}),n=await i.run(r.key,r.input),t=r.wait?await i.waitForRun(n):n;if(r.wait)Wm(t);return{human:r.wait?qt(`Run ${t.id} finished with status ${t.status}.`,t):`Started production run ${t.id} (${t.status}).`,value:{run:t,waited:r.wait}}},async runsList(r){let i=await(await e.workflowService({projectRequired:!1})).runs({...r.cursor?{cursor:r.cursor}:{},...r.limit?{pageSize:r.limit}:{},...r.status?{status:r.status}:{},...r.workflowKey?{workflowKey:r.workflowKey}:{}});return{human:Pe(i.data.map((n)=>`${n.id} ${n.status} ${n.workflowId} ${n.createdAt}`),"No workflow runs found."),value:{nextCursor:i.nextCursor,runs:i.data}}},async runGet(r){let i=await(await e.workflowService({projectRequired:!1})).getRun(r.runId);return{human:qt(`${i.id} ${i.status} ${i.workflowId} ${i.updatedAt}`,i),value:{run:i}}},async runWatch(r){let i=await(await e.workflowService({...r.signal?{abortSignal:r.signal}:{},projectRequired:!1})).watchRun(r);return{human:i.stopped?`Stopped watching ${i.run.id}; the remote run was not cancelled.`:qt(`Run ${i.run.id} finished with status ${i.run.status}.`,i.run),value:i}},async runCancel(r){let i=await(await e.workflowService({projectRequired:!1})).cancelRun(r.runId);return{human:`Cancellation requested for ${i.id} (${i.status}).`,value:{run:i}}},async publish(r){let i=await(await e.workflowService()).publish(r.key,r.revisionId);return{human:`Published ${r.key} at revision ${i.revisionId}.`,value:{key:r.key,publication:i}}},async archive(r){let i=await(await e.workflowService()).archive(r.key);return{human:`Archived ${r.key}.`,value:{workflow:{archivedAt:i.archivedAt,id:i.id,key:i.key,latestRevisionId:i.latestRevisionId}}}},async revisions(r){let i=await(await e.workflowService({projectRequired:!1})).revisions(r.key);return{human:Pe(i.map((n)=>`${n.revisionNumber} ${n.status} ${n.id} ${n.contentDigest}`),`No revisions found for ${r.key}.`),value:{key:r.key,revisions:i}}}}}function Pm(e){let r=async(i,n,t)=>{let a=(await e.remoteSelection()).space.id;try{let o=await on({operation:i,parameters:{...n,spaceId:a},...t===void 0?{}:{body:t},baseUrl:e.apiUrl(),tokenProvider:async()=>(await e.credential()).authorization,cwd:e.cwd(),env:e.env,...e.generatedBinaryPath?{binaryPath:e.generatedBinaryPath}:{}});return{value:o,human:()=>JSON.stringify(o,null,2)}}catch(o){throw Me(o)}};return{get:async(i)=>await r("skills.getSkill",i),getVersion:async(i)=>await r("skills.getSkillVersion",i),createVersion:async({skillId:i,body:n})=>await r("skills.createSkillVersion",{skillId:i},n),updateTags:async({skillId:i,...n})=>await r("skills.updateSkillTags",{skillId:i},n)}}function Ue(e,r){let i;for(let n=0;n<e.length;n++){let t=e[n];if(t!==r&&!t.startsWith(`${r}=`))continue;if(i!==void 0)throw X(`Pass ${r} only once.`);if(t===r){if(i=e[n+1],i===void 0||i.startsWith("--"))throw X(`${r} requires a value.`);e.splice(n,2)}else i=t.slice(r.length+1),e.splice(n,1);n--}return i}function To(e,r){let i=!1;for(let n=e.length-1;n>=0;n--)if(e[n]===r)e.splice(n,1),i=!0;return i}function Om(e){let r=[...e],i=Ue(r,"--profile"),n=Ue(r,"--space"),t=Ue(r,"--organization"),a=Ue(r,"--api-url"),o=Ue(r,"--base-url");if(a!==void 0&&o!==void 0&&a!==o)throw X("Pass one API URL override.");let s=a??o,u={json:!1,nonInteractive:To(r,"--non-interactive"),...i===void 0?{}:{profile:i},...n===void 0?{}:{space:n},...t===void 0?{}:{organization:t},...s===void 0?{}:{apiUrl:s}};return{args:r,globals:u,yes:To(r,"--yes"),overwrite:To(r,"--overwrite")}}var $m=new Set(["--schema","--spec","--spec-raw","--debug","--version","-V","--help","-h","--dry-run","--human","--quiet","-q","--page-all","--no-retry","--no-extract","--no-pager","--no-stream"]);function Eo(e){let r=[];for(let i=0;i<e.length&&r.length<2;i++){let n=e[i];if(!n.startsWith("-"))r.push(n);else if(!n.includes("=")&&!$m.has(n)&&e[i+1]&&!e[i+1].startsWith("-"))i++}return r}function Vm(e){let r=Eo(e);return Mt.find((i)=>i.group===r[0]&&i.command===r[1])}function ht(e){for(let r=0;r<e.length;r++){let i=e[r];if(i==="--")return!1;if(["--help","-h","--schema","--spec","--spec-raw"].includes(i))return!0;if(i.startsWith("-")&&!i.includes("=")&&!$m.has(i))r++}return!1}function Tm(e){let r=Ue(e,"--params");if(r===void 0)return{};if(Buffer.byteLength(r)>262144)throw X("--params must be at most 256 KiB.");let i;try{i=JSON.parse(r)}catch{throw X("--params must be a JSON object.")}if(!i||typeof i!=="object"||Array.isArray(i))throw X("--params must be a JSON object.");return i}import{link as rX,lstat as iX,mkdtemp as nX,rename as tX,rm as aX}from"node:fs/promises";import{dirname as oX,join as Em,resolve as sX}from"node:path";async function Nm(e,r,i){let n=sX(e,r);try{let o=await iX(n);if(!i||!o.isFile()||o.isSymbolicLink())throw X("Output already exists; use --overwrite only for an existing regular file.")}catch(o){if(o.code!=="ENOENT")throw o}let t=await nX(Em(oX(n),".action-download-")),a=Em(t,"download");return{destination:n,path:a,async finish(o){try{if(o)if(i)await tX(a,n);else await rX(a,n)}finally{await aX(t,{recursive:!0,force:!0})}}}}function Dm(e){return{name:e.name(),description:e.description(),usage:e.usage(),aliases:e.aliases(),options:e.options.map((r)=>({flags:r.flags,description:r.description})),commands:e.commands.map(Dm)}}function jm(e){let r=Zi(e);return{name:r.name(),version:H,description:"Local authentication, context, and authoring commands supplement the generated public API commands. The launcher handles auth with WorkOS profiles, not the generated sidecar keyring.",commands:r.commands.map(Dm),globalOptions:r.options.map((i)=>({flags:i.flags,description:i.description})),resourceOptions:[{flags:"--yes",description:"Confirm a public API mutation."},{flags:"--overwrite",description:"Allow replacing an existing output file."}],inputOutput:"Public resource input uses --json <body>; resource output uses --format json. Local commands use --json for output."}}function Gm(e){return["","Action launcher commands (handled locally):",...Zi(e).commands.map((i)=>` ${i.name().padEnd(20)} ${i.description()}`),"","action auth uses WorkOS profiles, not the generated sidecar keyring shown above.","Run action <local-command> --help for local options and subcommands.","Shell options: --profile, --api-url, --space, --organization, --non-interactive, --yes, --overwrite.","Resource input uses --json <body>; output uses --format json. Local commands use --json for output.",""].join(`
228
+ `)}async function Um(e,r,i){let{args:n,globals:t,yes:a,overwrite:o}=Om(e);if(n.length===1&&["--version","-V"].includes(n[0]))return(r.stdout??process.stdout).write(`${H}
229
+ `),0;let s=i(t),u=(q={})=>Yt({args:n,cwd:s.cwd(),env:s.env,...s.generatedBinaryPath?{binaryPath:s.generatedBinaryPath}:{},...r.stdout?{stdout:r.stdout}:{},...r.stderr?{stderr:r.stderr}:{},...q}),l=Vm(n),d=Eo(n),c=d.length===0||d.length===1&&d[0]==="help";if(n[0]==="help"||ht(n)&&(n.includes("--help")||n.includes("-h"))){let q=await u({capture:!0});if(q.stdout)(r.stdout??process.stdout).write(q.stdout.replace(/(^|\n)Usage: action-api(?=\s|$)/gu,"$1Usage: action"));if(q.stderr)(r.stderr??process.stderr).write(q.stderr);if(q.exitCode===0&&c)(r.stdout??process.stdout).write(Gm(r));return q.exitCode}if(c&&ht(n)&&n.includes("--schema")){let q=await u({capture:!0});if(q.stdout){let w=q.exitCode===0?JSON.parse(q.stdout):void 0;(r.stdout??process.stdout).write(w?`${JSON.stringify({...w,launcher:jm(r)},null,2)}
230
+ `:q.stdout)}if(q.stderr)(r.stderr??process.stderr).write(q.stderr);return q.exitCode}if(ht(n)||["help","completion","man","generate-skills"].includes(n[0]??""))return(await u()).exitCode;if(!l)throw X("Unknown generated resource command. Use --help to list commands.");let p=n.includes("--dry-run");if(l.mutation&&!l.idempotent&&!n.includes("--no-retry"))n.push("--no-retry");let I=Tm(n);for(let q of["spaceId","organizationId"]){if(!l.parameters.some((N)=>N.name===q&&N.in==="path"))continue;let w=q==="spaceId"?"--space-id":"--organization-id",A=Ue(n,w),b=I[q];if(b!==void 0&&typeof b!=="string")throw X(`${q} must be a string.`);if(A!==void 0&&b!==void 0&&A!==b)throw X(`Conflicting ${w} and --params values.`);let g=A??b;if(p&&g!==void 0)I[q]=g;else if(q==="spaceId")I[q]=(await s.remoteSelection(g)).space.id;else{let N=await s.remoteOrganization();if(g!==void 0&&g!==N.id)throw X("The requested organization does not match your current login.");I[q]=N.id}}if(n.push("--params",JSON.stringify(I),"--base-url",s.apiUrl(),"--user-agent-suffix",`action-cli/${H}`,"--x-action-c-l-i-version",H),l.mutation&&!p&&!a){if(t.nonInteractive||!process.stdin.isTTY||!r.confirm)throw X("This mutation requires --yes in non-interactive mode.");if(!await r.confirm(`Run ${l.group} ${l.command} against ${s.apiUrl()}?`))return 0}let f=Ue(n,"--output");if(l.binaryResponse&&!p&&!f)throw X("Binary downloads require --output <path>.");let m=f!==void 0&&!p?await Nm(s.cwd(),f,o):void 0;if(m)n.push("--output",m.path);else if(f!==void 0)n.push("--output",f);let h=!1;try{let q=p?void 0:(await s.credential()).authorization.replace(/^Bearer\s+/u,""),w=await u({...q===void 0?{}:{token:q},...m?{capture:!0}:{}});if(h=w.exitCode===0,m){if(w.stderr)(r.stderr??process.stderr).write(w.stderr);if(!h&&w.stdout)(r.stdout??process.stdout).write(w.stdout)}return w.exitCode}finally{if(await m?.finish(h),m&&h&&!n.includes("--quiet")&&!n.includes("-q"))(r.stdout??process.stdout).write(JSON.stringify({saved_file:m.destination})+`
231
+ `)}}function Mm(e,r=process.platform){let i,n;if(r==="darwin")i="/usr/bin/open",n=[e];else if(r==="linux")i="xdg-open",n=[e];else if(r==="win32")return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command","Start-Process -FilePath $env:ACTION_CLI_BROWSER_URL"],command:"powershell.exe",env:{ACTION_CLI_BROWSER_URL:e}};else throw Error(`Opening a browser is not supported on ${r}.`);return{args:n,command:i}}async function Ym(e){let{args:r,command:i,env:n}=Mm(e);await new Promise((t,a)=>{let o=uX(i,r,{detached:!0,env:n?{...process.env,...n}:process.env,shell:!1,stdio:"ignore",windowsHide:!0});o.once("error",a),o.once("spawn",()=>{o.unref(),t()})})}async function Bm(e){let r=Jm({input:process.stdin,output:process.stderr});try{let i=await r.question(`${e} [y/N] `);return/^(?:y|yes)$/iu.test(i.trim())}finally{r.close()}}async function Fm(e){if(!process.stdin.isTTY)throw Error("Organization selection requires an interactive terminal.");let r=Jm({input:process.stdin,output:process.stderr});try{for(let[a,o]of e.entries())process.stderr.write(`${a+1}. ${o.name} (${o.key})
232
+ `);let i=await r.question("Choose an organization: "),n=Number.parseInt(i.trim(),10)-1,t=e[n];if(!t)throw Error("A valid organization number is required.");return t.id}finally{r.close()}}function wt(e={}){let r={confirm:e.confirm??Bm,createRuntime:({globals:i,reporter:n})=>{let t=new Qi({...e.credentialStore?{credentialStore:e.credentialStore}:{},...e.cwd?{cwd:e.cwd}:{},...e.env?{env:e.env}:{},...e.fetch?{fetch:e.fetch}:{},globals:i,...e.generatedBinaryPath?{generatedBinaryPath:e.generatedBinaryPath}:{},...e.profileStore?{profileStore:e.profileStore}:{}});return{auth:bm(t,{...e.fetch?{fetch:e.fetch}:{},openBrowser:e.openBrowser??Ym,reporter:n,selectOrganization:e.selectOrganization??Fm}),context:Rm(t),skills:Pm(t),workflows:vm(t)}},...e.readStdin?{readStdin:e.readStdin}:{},...e.stderr?{stderr:e.stderr}:{},...e.stdout?{stdout:e.stdout}:{}};return r.runGenerated=async(i)=>await Um(i,r,(n)=>new Qi({...e.credentialStore?{credentialStore:e.credentialStore}:{},...e.cwd?{cwd:e.cwd}:{},...e.env?{env:e.env}:{},...e.fetch?{fetch:e.fetch}:{},...e.profileStore?{profileStore:e.profileStore}:{},...e.generatedBinaryPath?{generatedBinaryPath:e.generatedBinaryPath}:{},globals:n})),r}function dX(){return globalThis.Bun?.isStandaloneExecutable===!0}function cX(e=process.argv[1],r=import.meta.url,i=typeof ACTION_CLI_COMPILED_ENTRYPOINT<"u"&&ACTION_CLI_COMPILED_ENTRYPOINT||dX()){if(i)return!0;if(!e)return!1;try{return Km(e)===Km(lX(r))}catch{return!1}}if(cX()){process.stdout.on("error",Jt),process.stderr.on("error",Jt);let e=await vo(process.argv.slice(2),wt());process.exitCode=Je.aborted?0:e}export{vo as runCli,gm as normalizeCliError,cX as invokedAsMain,wt as createDefaultCliDependencies,Zi as createCli};