@redocly/cli 2.33.1 → 2.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (581) hide show
  1. package/LICENSE +7 -0
  2. package/THIRD_PARTY_NOTICES +767 -0
  3. package/lib/chunks/2ULY6UWW.js +13374 -0
  4. package/lib/chunks/4DNBVE5S.js +23 -0
  5. package/lib/chunks/5ILQMFXK.js +59 -0
  6. package/lib/chunks/7GOGGHM5.js +92239 -0
  7. package/lib/chunks/A6JSOHCP.js +41 -0
  8. package/lib/chunks/AIT3U3JT.js +22 -0
  9. package/lib/chunks/EIHBO33S.js +1133 -0
  10. package/lib/chunks/FDUPOI4C.js +19036 -0
  11. package/lib/chunks/FO6BDVGE.js +25 -0
  12. package/lib/chunks/FP2VGYMF.js +90 -0
  13. package/lib/chunks/GRMVFQAA.js +17782 -0
  14. package/lib/chunks/ICAVAH7N.js +387 -0
  15. package/lib/chunks/OEYVENNB.js +37533 -0
  16. package/lib/chunks/TS33ZDKX.js +35 -0
  17. package/lib/chunks/VUDTNFRL.js +42 -0
  18. package/lib/chunks/VXIQEZPR.js +2564 -0
  19. package/lib/chunks/W7G5WVPB.js +44 -0
  20. package/lib/chunks/XHPY6UJF.js +1638 -0
  21. package/lib/chunks/Y6DTFCLS.js +15 -0
  22. package/lib/chunks/YA5P3RI2.js +13 -0
  23. package/lib/chunks/ZIYSHX6D.js +3617 -0
  24. package/lib/index.js +13606 -620
  25. package/package.json +13 -53
  26. package/lib/auth/device-flow.d.ts +0 -24
  27. package/lib/auth/device-flow.d.ts.map +0 -1
  28. package/lib/auth/device-flow.js +0 -140
  29. package/lib/auth/device-flow.js.map +0 -1
  30. package/lib/auth/oauth-client.d.ts +0 -18
  31. package/lib/auth/oauth-client.d.ts.map +0 -1
  32. package/lib/auth/oauth-client.js +0 -117
  33. package/lib/auth/oauth-client.js.map +0 -1
  34. package/lib/commands/auth.d.ts +0 -12
  35. package/lib/commands/auth.d.ts.map +0 -1
  36. package/lib/commands/auth.js +0 -34
  37. package/lib/commands/auth.js.map +0 -1
  38. package/lib/commands/build-docs/index.d.ts +0 -4
  39. package/lib/commands/build-docs/index.d.ts.map +0 -1
  40. package/lib/commands/build-docs/index.js +0 -38
  41. package/lib/commands/build-docs/index.js.map +0 -1
  42. package/lib/commands/build-docs/template.hbs +0 -23
  43. package/lib/commands/build-docs/types.d.ts +0 -24
  44. package/lib/commands/build-docs/types.d.ts.map +0 -1
  45. package/lib/commands/build-docs/types.js +0 -2
  46. package/lib/commands/build-docs/types.js.map +0 -1
  47. package/lib/commands/build-docs/utils.d.ts +0 -8
  48. package/lib/commands/build-docs/utils.d.ts.map +0 -1
  49. package/lib/commands/build-docs/utils.js +0 -84
  50. package/lib/commands/build-docs/utils.js.map +0 -1
  51. package/lib/commands/bundle.d.ts +0 -20
  52. package/lib/commands/bundle.d.ts.map +0 -1
  53. package/lib/commands/bundle.js +0 -93
  54. package/lib/commands/bundle.js.map +0 -1
  55. package/lib/commands/eject.d.ts +0 -10
  56. package/lib/commands/eject.d.ts.map +0 -1
  57. package/lib/commands/eject.js +0 -26
  58. package/lib/commands/eject.js.map +0 -1
  59. package/lib/commands/generate-arazzo.d.ts +0 -8
  60. package/lib/commands/generate-arazzo.d.ts.map +0 -1
  61. package/lib/commands/generate-arazzo.js +0 -25
  62. package/lib/commands/generate-arazzo.js.map +0 -1
  63. package/lib/commands/join/index.d.ts +0 -4
  64. package/lib/commands/join/index.d.ts.map +0 -1
  65. package/lib/commands/join/index.js +0 -141
  66. package/lib/commands/join/index.js.map +0 -1
  67. package/lib/commands/join/types.d.ts +0 -22
  68. package/lib/commands/join/types.d.ts.map +0 -1
  69. package/lib/commands/join/types.js +0 -2
  70. package/lib/commands/join/types.js.map +0 -1
  71. package/lib/commands/join/utils/add-components-prefix.d.ts +0 -2
  72. package/lib/commands/join/utils/add-components-prefix.d.ts.map +0 -1
  73. package/lib/commands/join/utils/add-components-prefix.js +0 -9
  74. package/lib/commands/join/utils/add-components-prefix.js.map +0 -1
  75. package/lib/commands/join/utils/add-info-section.d.ts +0 -2
  76. package/lib/commands/join/utils/add-info-section.d.ts.map +0 -1
  77. package/lib/commands/join/utils/add-info-section.js +0 -19
  78. package/lib/commands/join/utils/add-info-section.js.map +0 -1
  79. package/lib/commands/join/utils/add-prefix.d.ts +0 -2
  80. package/lib/commands/join/utils/add-prefix.d.ts.map +0 -1
  81. package/lib/commands/join/utils/add-prefix.js +0 -4
  82. package/lib/commands/join/utils/add-prefix.js.map +0 -1
  83. package/lib/commands/join/utils/add-security-prefix.d.ts +0 -2
  84. package/lib/commands/join/utils/add-security-prefix.d.ts.map +0 -1
  85. package/lib/commands/join/utils/add-security-prefix.js +0 -12
  86. package/lib/commands/join/utils/add-security-prefix.js.map +0 -1
  87. package/lib/commands/join/utils/collect-components.d.ts +0 -7
  88. package/lib/commands/join/utils/collect-components.d.ts.map +0 -1
  89. package/lib/commands/join/utils/collect-components.js +0 -26
  90. package/lib/commands/join/utils/collect-components.js.map +0 -1
  91. package/lib/commands/join/utils/collect-external-docs.d.ts +0 -7
  92. package/lib/commands/join/utils/collect-external-docs.d.ts.map +0 -1
  93. package/lib/commands/join/utils/collect-external-docs.js +0 -15
  94. package/lib/commands/join/utils/collect-external-docs.js.map +0 -1
  95. package/lib/commands/join/utils/collect-paths.d.ts +0 -9
  96. package/lib/commands/join/utils/collect-paths.d.ts.map +0 -1
  97. package/lib/commands/join/utils/collect-paths.js +0 -172
  98. package/lib/commands/join/utils/collect-paths.js.map +0 -1
  99. package/lib/commands/join/utils/collect-webhooks.d.ts +0 -8
  100. package/lib/commands/join/utils/collect-webhooks.d.ts.map +0 -1
  101. package/lib/commands/join/utils/collect-webhooks.js +0 -46
  102. package/lib/commands/join/utils/collect-webhooks.js.map +0 -1
  103. package/lib/commands/join/utils/duplicate-tag-description-warning.d.ts +0 -2
  104. package/lib/commands/join/utils/duplicate-tag-description-warning.d.ts.map +0 -1
  105. package/lib/commands/join/utils/duplicate-tag-description-warning.js +0 -8
  106. package/lib/commands/join/utils/duplicate-tag-description-warning.js.map +0 -1
  107. package/lib/commands/join/utils/filter-conflicts.d.ts +0 -2
  108. package/lib/commands/join/utils/filter-conflicts.d.ts.map +0 -1
  109. package/lib/commands/join/utils/filter-conflicts.js +0 -4
  110. package/lib/commands/join/utils/filter-conflicts.js.map +0 -1
  111. package/lib/commands/join/utils/format-tags.d.ts +0 -4
  112. package/lib/commands/join/utils/format-tags.d.ts.map +0 -1
  113. package/lib/commands/join/utils/format-tags.js +0 -4
  114. package/lib/commands/join/utils/format-tags.js.map +0 -1
  115. package/lib/commands/join/utils/get-api-filename.d.ts +0 -2
  116. package/lib/commands/join/utils/get-api-filename.d.ts.map +0 -1
  117. package/lib/commands/join/utils/get-api-filename.js +0 -5
  118. package/lib/commands/join/utils/get-api-filename.js.map +0 -1
  119. package/lib/commands/join/utils/get-info-prefix.d.ts +0 -2
  120. package/lib/commands/join/utils/get-info-prefix.d.ts.map +0 -1
  121. package/lib/commands/join/utils/get-info-prefix.js +0 -17
  122. package/lib/commands/join/utils/get-info-prefix.js.map +0 -1
  123. package/lib/commands/join/utils/index.d.ts +0 -19
  124. package/lib/commands/join/utils/index.d.ts.map +0 -1
  125. package/lib/commands/join/utils/index.js +0 -19
  126. package/lib/commands/join/utils/index.js.map +0 -1
  127. package/lib/commands/join/utils/iterate-potential-conflicts.d.ts +0 -5
  128. package/lib/commands/join/utils/iterate-potential-conflicts.d.ts.map +0 -1
  129. package/lib/commands/join/utils/iterate-potential-conflicts.js +0 -53
  130. package/lib/commands/join/utils/iterate-potential-conflicts.js.map +0 -1
  131. package/lib/commands/join/utils/populate-tags.d.ts +0 -7
  132. package/lib/commands/join/utils/populate-tags.d.ts.map +0 -1
  133. package/lib/commands/join/utils/populate-tags.js +0 -77
  134. package/lib/commands/join/utils/populate-tags.js.map +0 -1
  135. package/lib/commands/join/utils/prefix-tag-suggestion.d.ts +0 -2
  136. package/lib/commands/join/utils/prefix-tag-suggestion.d.ts.map +0 -1
  137. package/lib/commands/join/utils/prefix-tag-suggestion.js +0 -6
  138. package/lib/commands/join/utils/prefix-tag-suggestion.js.map +0 -1
  139. package/lib/commands/join/utils/replace-$-refs.d.ts +0 -2
  140. package/lib/commands/join/utils/replace-$-refs.d.ts.map +0 -1
  141. package/lib/commands/join/utils/replace-$-refs.js +0 -29
  142. package/lib/commands/join/utils/replace-$-refs.js.map +0 -1
  143. package/lib/commands/join/utils/show-conflicts.d.ts +0 -2
  144. package/lib/commands/join/utils/show-conflicts.d.ts.map +0 -1
  145. package/lib/commands/join/utils/show-conflicts.js +0 -8
  146. package/lib/commands/join/utils/show-conflicts.js.map +0 -1
  147. package/lib/commands/lint.d.ts +0 -15
  148. package/lib/commands/lint.d.ts.map +0 -1
  149. package/lib/commands/lint.js +0 -112
  150. package/lib/commands/lint.js.map +0 -1
  151. package/lib/commands/preview-project/constants.d.ts +0 -15
  152. package/lib/commands/preview-project/constants.d.ts.map +0 -1
  153. package/lib/commands/preview-project/constants.js +0 -20
  154. package/lib/commands/preview-project/constants.js.map +0 -1
  155. package/lib/commands/preview-project/index.d.ts +0 -4
  156. package/lib/commands/preview-project/index.d.ts.map +0 -1
  157. package/lib/commands/preview-project/index.js +0 -54
  158. package/lib/commands/preview-project/index.js.map +0 -1
  159. package/lib/commands/preview-project/types.d.ts +0 -11
  160. package/lib/commands/preview-project/types.d.ts.map +0 -1
  161. package/lib/commands/preview-project/types.js +0 -2
  162. package/lib/commands/preview-project/types.js.map +0 -1
  163. package/lib/commands/respect/connection-client.d.ts +0 -12
  164. package/lib/commands/respect/connection-client.d.ts.map +0 -1
  165. package/lib/commands/respect/connection-client.js +0 -73
  166. package/lib/commands/respect/connection-client.js.map +0 -1
  167. package/lib/commands/respect/display-files-summary-table.d.ts +0 -12
  168. package/lib/commands/respect/display-files-summary-table.d.ts.map +0 -1
  169. package/lib/commands/respect/display-files-summary-table.js +0 -65
  170. package/lib/commands/respect/display-files-summary-table.js.map +0 -1
  171. package/lib/commands/respect/har-logs/har-logs.d.ts +0 -6
  172. package/lib/commands/respect/har-logs/har-logs.d.ts.map +0 -1
  173. package/lib/commands/respect/har-logs/har-logs.js +0 -28
  174. package/lib/commands/respect/har-logs/har-logs.js.map +0 -1
  175. package/lib/commands/respect/har-logs/helpers/add-headers.d.ts +0 -2
  176. package/lib/commands/respect/har-logs/helpers/add-headers.d.ts.map +0 -1
  177. package/lib/commands/respect/har-logs/helpers/add-headers.js +0 -17
  178. package/lib/commands/respect/har-logs/helpers/add-headers.js.map +0 -1
  179. package/lib/commands/respect/har-logs/helpers/build-headers.d.ts +0 -10
  180. package/lib/commands/respect/har-logs/helpers/build-headers.d.ts.map +0 -1
  181. package/lib/commands/respect/har-logs/helpers/build-headers.js +0 -33
  182. package/lib/commands/respect/har-logs/helpers/build-headers.js.map +0 -1
  183. package/lib/commands/respect/har-logs/helpers/build-request-cookies.d.ts +0 -2
  184. package/lib/commands/respect/har-logs/helpers/build-request-cookies.d.ts.map +0 -1
  185. package/lib/commands/respect/har-logs/helpers/build-request-cookies.js +0 -18
  186. package/lib/commands/respect/har-logs/helpers/build-request-cookies.js.map +0 -1
  187. package/lib/commands/respect/har-logs/helpers/build-response-cookies.d.ts +0 -2
  188. package/lib/commands/respect/har-logs/helpers/build-response-cookies.d.ts.map +0 -1
  189. package/lib/commands/respect/har-logs/helpers/build-response-cookies.js +0 -40
  190. package/lib/commands/respect/har-logs/helpers/build-response-cookies.js.map +0 -1
  191. package/lib/commands/respect/har-logs/helpers/get-duration.d.ts +0 -2
  192. package/lib/commands/respect/har-logs/helpers/get-duration.d.ts.map +0 -1
  193. package/lib/commands/respect/har-logs/helpers/get-duration.js +0 -6
  194. package/lib/commands/respect/har-logs/helpers/get-duration.js.map +0 -1
  195. package/lib/commands/respect/har-logs/index.d.ts +0 -2
  196. package/lib/commands/respect/har-logs/index.d.ts.map +0 -1
  197. package/lib/commands/respect/har-logs/index.js +0 -2
  198. package/lib/commands/respect/har-logs/index.js.map +0 -1
  199. package/lib/commands/respect/har-logs/with-har.d.ts +0 -7
  200. package/lib/commands/respect/har-logs/with-har.d.ts.map +0 -1
  201. package/lib/commands/respect/har-logs/with-har.js +0 -182
  202. package/lib/commands/respect/har-logs/with-har.js.map +0 -1
  203. package/lib/commands/respect/index.d.ts +0 -27
  204. package/lib/commands/respect/index.d.ts.map +0 -1
  205. package/lib/commands/respect/index.js +0 -115
  206. package/lib/commands/respect/index.js.map +0 -1
  207. package/lib/commands/respect/json-logs.d.ts +0 -11
  208. package/lib/commands/respect/json-logs.d.ts.map +0 -1
  209. package/lib/commands/respect/json-logs.js +0 -85
  210. package/lib/commands/respect/json-logs.js.map +0 -1
  211. package/lib/commands/respect/mtls/resolve-mtls-certificates.d.ts +0 -9
  212. package/lib/commands/respect/mtls/resolve-mtls-certificates.d.ts.map +0 -1
  213. package/lib/commands/respect/mtls/resolve-mtls-certificates.js +0 -48
  214. package/lib/commands/respect/mtls/resolve-mtls-certificates.js.map +0 -1
  215. package/lib/commands/respect/mtls/validate-mtls-command-option.d.ts +0 -3
  216. package/lib/commands/respect/mtls/validate-mtls-command-option.d.ts.map +0 -1
  217. package/lib/commands/respect/mtls/validate-mtls-command-option.js +0 -55
  218. package/lib/commands/respect/mtls/validate-mtls-command-option.js.map +0 -1
  219. package/lib/commands/score/collect-metrics.d.ts +0 -17
  220. package/lib/commands/score/collect-metrics.d.ts.map +0 -1
  221. package/lib/commands/score/collect-metrics.js +0 -195
  222. package/lib/commands/score/collect-metrics.js.map +0 -1
  223. package/lib/commands/score/collectors/dependency-graph.d.ts +0 -9
  224. package/lib/commands/score/collectors/dependency-graph.d.ts.map +0 -1
  225. package/lib/commands/score/collectors/dependency-graph.js +0 -61
  226. package/lib/commands/score/collectors/dependency-graph.js.map +0 -1
  227. package/lib/commands/score/collectors/document-metrics.d.ts +0 -69
  228. package/lib/commands/score/collectors/document-metrics.d.ts.map +0 -1
  229. package/lib/commands/score/collectors/document-metrics.js +0 -343
  230. package/lib/commands/score/collectors/document-metrics.js.map +0 -1
  231. package/lib/commands/score/constants.d.ts +0 -4
  232. package/lib/commands/score/constants.d.ts.map +0 -1
  233. package/lib/commands/score/constants.js +0 -47
  234. package/lib/commands/score/constants.js.map +0 -1
  235. package/lib/commands/score/formatters/json.d.ts +0 -3
  236. package/lib/commands/score/formatters/json.d.ts.map +0 -1
  237. package/lib/commands/score/formatters/json.js +0 -20
  238. package/lib/commands/score/formatters/json.js.map +0 -1
  239. package/lib/commands/score/formatters/stylish.d.ts +0 -4
  240. package/lib/commands/score/formatters/stylish.d.ts.map +0 -1
  241. package/lib/commands/score/formatters/stylish.js +0 -235
  242. package/lib/commands/score/formatters/stylish.js.map +0 -1
  243. package/lib/commands/score/hotspots.d.ts +0 -3
  244. package/lib/commands/score/hotspots.d.ts.map +0 -1
  245. package/lib/commands/score/hotspots.js +0 -70
  246. package/lib/commands/score/hotspots.js.map +0 -1
  247. package/lib/commands/score/index.d.ts +0 -11
  248. package/lib/commands/score/index.d.ts.map +0 -1
  249. package/lib/commands/score/index.js +0 -69
  250. package/lib/commands/score/index.js.map +0 -1
  251. package/lib/commands/score/scoring.d.ts +0 -14
  252. package/lib/commands/score/scoring.d.ts.map +0 -1
  253. package/lib/commands/score/scoring.js +0 -136
  254. package/lib/commands/score/scoring.js.map +0 -1
  255. package/lib/commands/score/types.d.ts +0 -119
  256. package/lib/commands/score/types.d.ts.map +0 -1
  257. package/lib/commands/score/types.js +0 -2
  258. package/lib/commands/score/types.js.map +0 -1
  259. package/lib/commands/score/utils.d.ts +0 -2
  260. package/lib/commands/score/utils.d.ts.map +0 -1
  261. package/lib/commands/score/utils.js +0 -8
  262. package/lib/commands/score/utils.js.map +0 -1
  263. package/lib/commands/scorecard-classic/auth/login-handler.d.ts +0 -3
  264. package/lib/commands/scorecard-classic/auth/login-handler.d.ts.map +0 -1
  265. package/lib/commands/scorecard-classic/auth/login-handler.js +0 -31
  266. package/lib/commands/scorecard-classic/auth/login-handler.js.map +0 -1
  267. package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.d.ts +0 -3
  268. package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.d.ts.map +0 -1
  269. package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.js +0 -28
  270. package/lib/commands/scorecard-classic/formatters/checkstyle-formatter.js.map +0 -1
  271. package/lib/commands/scorecard-classic/formatters/json-formatter.d.ts +0 -27
  272. package/lib/commands/scorecard-classic/formatters/json-formatter.d.ts.map +0 -1
  273. package/lib/commands/scorecard-classic/formatters/json-formatter.js +0 -67
  274. package/lib/commands/scorecard-classic/formatters/json-formatter.js.map +0 -1
  275. package/lib/commands/scorecard-classic/formatters/junit-formatter.d.ts +0 -3
  276. package/lib/commands/scorecard-classic/formatters/junit-formatter.d.ts.map +0 -1
  277. package/lib/commands/scorecard-classic/formatters/junit-formatter.js +0 -67
  278. package/lib/commands/scorecard-classic/formatters/junit-formatter.js.map +0 -1
  279. package/lib/commands/scorecard-classic/formatters/stylish-formatter.d.ts +0 -3
  280. package/lib/commands/scorecard-classic/formatters/stylish-formatter.d.ts.map +0 -1
  281. package/lib/commands/scorecard-classic/formatters/stylish-formatter.js +0 -57
  282. package/lib/commands/scorecard-classic/formatters/stylish-formatter.js.map +0 -1
  283. package/lib/commands/scorecard-classic/index.d.ts +0 -4
  284. package/lib/commands/scorecard-classic/index.d.ts.map +0 -1
  285. package/lib/commands/scorecard-classic/index.js +0 -120
  286. package/lib/commands/scorecard-classic/index.js.map +0 -1
  287. package/lib/commands/scorecard-classic/remote/fetch-scorecard.d.ts +0 -9
  288. package/lib/commands/scorecard-classic/remote/fetch-scorecard.d.ts.map +0 -1
  289. package/lib/commands/scorecard-classic/remote/fetch-scorecard.js +0 -126
  290. package/lib/commands/scorecard-classic/remote/fetch-scorecard.js.map +0 -1
  291. package/lib/commands/scorecard-classic/targets-handler/targets-handler.d.ts +0 -13
  292. package/lib/commands/scorecard-classic/targets-handler/targets-handler.d.ts.map +0 -1
  293. package/lib/commands/scorecard-classic/targets-handler/targets-handler.js +0 -55
  294. package/lib/commands/scorecard-classic/targets-handler/targets-handler.js.map +0 -1
  295. package/lib/commands/scorecard-classic/types.d.ts +0 -27
  296. package/lib/commands/scorecard-classic/types.d.ts.map +0 -1
  297. package/lib/commands/scorecard-classic/types.js +0 -2
  298. package/lib/commands/scorecard-classic/types.js.map +0 -1
  299. package/lib/commands/scorecard-classic/validation/plugin-evaluator.d.ts +0 -3
  300. package/lib/commands/scorecard-classic/validation/plugin-evaluator.d.ts.map +0 -1
  301. package/lib/commands/scorecard-classic/validation/plugin-evaluator.js +0 -45
  302. package/lib/commands/scorecard-classic/validation/plugin-evaluator.js.map +0 -1
  303. package/lib/commands/scorecard-classic/validation/project-url.d.ts +0 -2
  304. package/lib/commands/scorecard-classic/validation/project-url.d.ts.map +0 -1
  305. package/lib/commands/scorecard-classic/validation/project-url.js +0 -11
  306. package/lib/commands/scorecard-classic/validation/project-url.js.map +0 -1
  307. package/lib/commands/scorecard-classic/validation/validate-scorecard.d.ts +0 -21
  308. package/lib/commands/scorecard-classic/validation/validate-scorecard.d.ts.map +0 -1
  309. package/lib/commands/scorecard-classic/validation/validate-scorecard.js +0 -87
  310. package/lib/commands/scorecard-classic/validation/validate-scorecard.js.map +0 -1
  311. package/lib/commands/split/asyncapi/constants.d.ts +0 -6
  312. package/lib/commands/split/asyncapi/constants.d.ts.map +0 -1
  313. package/lib/commands/split/asyncapi/constants.js +0 -71
  314. package/lib/commands/split/asyncapi/constants.js.map +0 -1
  315. package/lib/commands/split/asyncapi/find-asyncapi-component-types.d.ts +0 -2
  316. package/lib/commands/split/asyncapi/find-asyncapi-component-types.d.ts.map +0 -1
  317. package/lib/commands/split/asyncapi/find-asyncapi-component-types.js +0 -8
  318. package/lib/commands/split/asyncapi/find-asyncapi-component-types.js.map +0 -1
  319. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.d.ts +0 -9
  320. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.d.ts.map +0 -1
  321. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.js +0 -28
  322. package/lib/commands/split/asyncapi/gather-asyncapi-component-files.js.map +0 -1
  323. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.d.ts +0 -10
  324. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.d.ts.map +0 -1
  325. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.js +0 -27
  326. package/lib/commands/split/asyncapi/iterate-asyncapi-channels.js.map +0 -1
  327. package/lib/commands/split/asyncapi/iterate-asyncapi-components.d.ts +0 -10
  328. package/lib/commands/split/asyncapi/iterate-asyncapi-components.d.ts.map +0 -1
  329. package/lib/commands/split/asyncapi/iterate-asyncapi-components.js +0 -41
  330. package/lib/commands/split/asyncapi/iterate-asyncapi-components.js.map +0 -1
  331. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.d.ts +0 -11
  332. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.d.ts.map +0 -1
  333. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.js +0 -26
  334. package/lib/commands/split/asyncapi/iterate-asyncapi-operations.js.map +0 -1
  335. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.d.ts +0 -3
  336. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.d.ts.map +0 -1
  337. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.js +0 -13
  338. package/lib/commands/split/asyncapi/remove-asyncapi-empty-components.js.map +0 -1
  339. package/lib/commands/split/asyncapi/split-asyncapi-definition.d.ts +0 -9
  340. package/lib/commands/split/asyncapi/split-asyncapi-definition.d.ts.map +0 -1
  341. package/lib/commands/split/asyncapi/split-asyncapi-definition.js +0 -51
  342. package/lib/commands/split/asyncapi/split-asyncapi-definition.js.map +0 -1
  343. package/lib/commands/split/constants.d.ts +0 -7
  344. package/lib/commands/split/constants.d.ts.map +0 -1
  345. package/lib/commands/split/constants.js +0 -7
  346. package/lib/commands/split/constants.js.map +0 -1
  347. package/lib/commands/split/index.d.ts +0 -6
  348. package/lib/commands/split/index.d.ts.map +0 -1
  349. package/lib/commands/split/index.js +0 -46
  350. package/lib/commands/split/index.js.map +0 -1
  351. package/lib/commands/split/oas/constants.d.ts +0 -3
  352. package/lib/commands/split/oas/constants.d.ts.map +0 -1
  353. package/lib/commands/split/oas/constants.js +0 -23
  354. package/lib/commands/split/oas/constants.js.map +0 -1
  355. package/lib/commands/split/oas/split-oas-definition.d.ts +0 -3
  356. package/lib/commands/split/oas/split-oas-definition.d.ts.map +0 -1
  357. package/lib/commands/split/oas/split-oas-definition.js +0 -19
  358. package/lib/commands/split/oas/split-oas-definition.js.map +0 -1
  359. package/lib/commands/split/types.d.ts +0 -28
  360. package/lib/commands/split/types.d.ts.map +0 -1
  361. package/lib/commands/split/types.js +0 -2
  362. package/lib/commands/split/types.js.map +0 -1
  363. package/lib/commands/split/utils/crawl.d.ts +0 -2
  364. package/lib/commands/split/utils/crawl.d.ts.map +0 -1
  365. package/lib/commands/split/utils/crawl.js +0 -15
  366. package/lib/commands/split/utils/crawl.js.map +0 -1
  367. package/lib/commands/split/utils/create-component-dir.d.ts +0 -2
  368. package/lib/commands/split/utils/create-component-dir.d.ts.map +0 -1
  369. package/lib/commands/split/utils/create-component-dir.js +0 -8
  370. package/lib/commands/split/utils/create-component-dir.js.map +0 -1
  371. package/lib/commands/split/utils/does-file-differ.d.ts +0 -2
  372. package/lib/commands/split/utils/does-file-differ.d.ts.map +0 -1
  373. package/lib/commands/split/utils/does-file-differ.js +0 -7
  374. package/lib/commands/split/utils/does-file-differ.js.map +0 -1
  375. package/lib/commands/split/utils/extract-filename-from-path.d.ts +0 -2
  376. package/lib/commands/split/utils/extract-filename-from-path.d.ts.map +0 -1
  377. package/lib/commands/split/utils/extract-filename-from-path.js +0 -5
  378. package/lib/commands/split/utils/extract-filename-from-path.js.map +0 -1
  379. package/lib/commands/split/utils/find-component-type.d.ts +0 -3
  380. package/lib/commands/split/utils/find-component-type.d.ts.map +0 -1
  381. package/lib/commands/split/utils/find-component-type.js +0 -8
  382. package/lib/commands/split/utils/find-component-type.js.map +0 -1
  383. package/lib/commands/split/utils/gather-components-files.d.ts +0 -4
  384. package/lib/commands/split/utils/gather-components-files.d.ts.map +0 -1
  385. package/lib/commands/split/utils/gather-components-files.js +0 -12
  386. package/lib/commands/split/utils/gather-components-files.js.map +0 -1
  387. package/lib/commands/split/utils/get-file-name-path.d.ts +0 -2
  388. package/lib/commands/split/utils/get-file-name-path.d.ts.map +0 -1
  389. package/lib/commands/split/utils/get-file-name-path.js +0 -5
  390. package/lib/commands/split/utils/get-file-name-path.js.map +0 -1
  391. package/lib/commands/split/utils/implicitly-reference-discriminator.d.ts +0 -2
  392. package/lib/commands/split/utils/implicitly-reference-discriminator.d.ts.map +0 -1
  393. package/lib/commands/split/utils/implicitly-reference-discriminator.js +0 -31
  394. package/lib/commands/split/utils/implicitly-reference-discriminator.js.map +0 -1
  395. package/lib/commands/split/utils/is-not-security-component-type.d.ts +0 -2
  396. package/lib/commands/split/utils/is-not-security-component-type.d.ts.map +0 -1
  397. package/lib/commands/split/utils/is-not-security-component-type.js +0 -4
  398. package/lib/commands/split/utils/is-not-security-component-type.js.map +0 -1
  399. package/lib/commands/split/utils/is-supported-extension.d.ts +0 -2
  400. package/lib/commands/split/utils/is-supported-extension.d.ts.map +0 -1
  401. package/lib/commands/split/utils/is-supported-extension.js +0 -4
  402. package/lib/commands/split/utils/is-supported-extension.js.map +0 -1
  403. package/lib/commands/split/utils/iterate-components.d.ts +0 -3
  404. package/lib/commands/split/utils/iterate-components.d.ts.map +0 -1
  405. package/lib/commands/split/utils/iterate-components.js +0 -55
  406. package/lib/commands/split/utils/iterate-components.js.map +0 -1
  407. package/lib/commands/split/utils/iterate-path-items.d.ts +0 -3
  408. package/lib/commands/split/utils/iterate-path-items.d.ts.map +0 -1
  409. package/lib/commands/split/utils/iterate-path-items.js +0 -42
  410. package/lib/commands/split/utils/iterate-path-items.js.map +0 -1
  411. package/lib/commands/split/utils/remove-empty-components.d.ts +0 -4
  412. package/lib/commands/split/utils/remove-empty-components.d.ts.map +0 -1
  413. package/lib/commands/split/utils/remove-empty-components.js +0 -10
  414. package/lib/commands/split/utils/remove-empty-components.js.map +0 -1
  415. package/lib/commands/split/utils/replace-$-refs.d.ts +0 -3
  416. package/lib/commands/split/utils/replace-$-refs.d.ts.map +0 -1
  417. package/lib/commands/split/utils/replace-$-refs.js +0 -34
  418. package/lib/commands/split/utils/replace-$-refs.js.map +0 -1
  419. package/lib/commands/split/utils/replace-channel-refs.d.ts +0 -3
  420. package/lib/commands/split/utils/replace-channel-refs.d.ts.map +0 -1
  421. package/lib/commands/split/utils/replace-channel-refs.js +0 -30
  422. package/lib/commands/split/utils/replace-channel-refs.js.map +0 -1
  423. package/lib/commands/split/utils/starts-with-components.d.ts +0 -2
  424. package/lib/commands/split/utils/starts-with-components.d.ts.map +0 -1
  425. package/lib/commands/split/utils/starts-with-components.js +0 -5
  426. package/lib/commands/split/utils/starts-with-components.js.map +0 -1
  427. package/lib/commands/split/utils/traverse-directory-deep.d.ts +0 -3
  428. package/lib/commands/split/utils/traverse-directory-deep.d.ts.map +0 -1
  429. package/lib/commands/split/utils/traverse-directory-deep.js +0 -27
  430. package/lib/commands/split/utils/traverse-directory-deep.js.map +0 -1
  431. package/lib/commands/stats/index.d.ts +0 -9
  432. package/lib/commands/stats/index.d.ts.map +0 -1
  433. package/lib/commands/stats/index.js +0 -42
  434. package/lib/commands/stats/index.js.map +0 -1
  435. package/lib/commands/stats/print-stats/index.d.ts +0 -3
  436. package/lib/commands/stats/print-stats/index.d.ts.map +0 -1
  437. package/lib/commands/stats/print-stats/index.js +0 -22
  438. package/lib/commands/stats/print-stats/index.js.map +0 -1
  439. package/lib/commands/stats/print-stats/json.d.ts +0 -3
  440. package/lib/commands/stats/print-stats/json.d.ts.map +0 -1
  441. package/lib/commands/stats/print-stats/json.js +0 -13
  442. package/lib/commands/stats/print-stats/json.js.map +0 -1
  443. package/lib/commands/stats/print-stats/markdown.d.ts +0 -3
  444. package/lib/commands/stats/print-stats/markdown.d.ts.map +0 -1
  445. package/lib/commands/stats/print-stats/markdown.js +0 -10
  446. package/lib/commands/stats/print-stats/markdown.js.map +0 -1
  447. package/lib/commands/stats/print-stats/stylish.d.ts +0 -3
  448. package/lib/commands/stats/print-stats/stylish.d.ts.map +0 -1
  449. package/lib/commands/stats/print-stats/stylish.js +0 -11
  450. package/lib/commands/stats/print-stats/stylish.js.map +0 -1
  451. package/lib/commands/stats/visitor-and-accumulator-resolver.d.ts +0 -103
  452. package/lib/commands/stats/visitor-and-accumulator-resolver.d.ts.map +0 -1
  453. package/lib/commands/stats/visitor-and-accumulator-resolver.js +0 -46
  454. package/lib/commands/stats/visitor-and-accumulator-resolver.js.map +0 -1
  455. package/lib/commands/translations.d.ts +0 -8
  456. package/lib/commands/translations.d.ts.map +0 -1
  457. package/lib/commands/translations.js +0 -18
  458. package/lib/commands/translations.js.map +0 -1
  459. package/lib/index.d.ts +0 -3
  460. package/lib/index.d.ts.map +0 -1
  461. package/lib/index.js.map +0 -1
  462. package/lib/reunite/api/api-client.d.ts +0 -83
  463. package/lib/reunite/api/api-client.d.ts.map +0 -1
  464. package/lib/reunite/api/api-client.js +0 -262
  465. package/lib/reunite/api/api-client.js.map +0 -1
  466. package/lib/reunite/api/api-keys.d.ts +0 -2
  467. package/lib/reunite/api/api-keys.d.ts.map +0 -1
  468. package/lib/reunite/api/api-keys.js +0 -7
  469. package/lib/reunite/api/api-keys.js.map +0 -1
  470. package/lib/reunite/api/domains.d.ts +0 -12
  471. package/lib/reunite/api/domains.d.ts.map +0 -1
  472. package/lib/reunite/api/domains.js +0 -52
  473. package/lib/reunite/api/domains.js.map +0 -1
  474. package/lib/reunite/api/index.d.ts +0 -4
  475. package/lib/reunite/api/index.d.ts.map +0 -1
  476. package/lib/reunite/api/index.js +0 -4
  477. package/lib/reunite/api/index.js.map +0 -1
  478. package/lib/reunite/api/types.d.ts +0 -103
  479. package/lib/reunite/api/types.d.ts.map +0 -1
  480. package/lib/reunite/api/types.js +0 -2
  481. package/lib/reunite/api/types.js.map +0 -1
  482. package/lib/reunite/commands/push-status.d.ts +0 -24
  483. package/lib/reunite/commands/push-status.d.ts.map +0 -1
  484. package/lib/reunite/commands/push-status.js +0 -199
  485. package/lib/reunite/commands/push-status.js.map +0 -1
  486. package/lib/reunite/commands/push.d.ts +0 -28
  487. package/lib/reunite/commands/push.d.ts.map +0 -1
  488. package/lib/reunite/commands/push.js +0 -135
  489. package/lib/reunite/commands/push.js.map +0 -1
  490. package/lib/reunite/commands/utils.d.ts +0 -26
  491. package/lib/reunite/commands/utils.d.ts.map +0 -1
  492. package/lib/reunite/commands/utils.js +0 -49
  493. package/lib/reunite/commands/utils.js.map +0 -1
  494. package/lib/reunite/utils.d.ts +0 -3
  495. package/lib/reunite/utils.d.ts.map +0 -1
  496. package/lib/reunite/utils.js +0 -3
  497. package/lib/reunite/utils.js.map +0 -1
  498. package/lib/types.d.ts +0 -33
  499. package/lib/types.d.ts.map +0 -1
  500. package/lib/types.js +0 -2
  501. package/lib/types.js.map +0 -1
  502. package/lib/utils/assert-node-version.d.ts +0 -2
  503. package/lib/utils/assert-node-version.d.ts.map +0 -1
  504. package/lib/utils/assert-node-version.js +0 -14
  505. package/lib/utils/assert-node-version.js.map +0 -1
  506. package/lib/utils/constants.d.ts +0 -5
  507. package/lib/utils/constants.d.ts.map +0 -1
  508. package/lib/utils/constants.js +0 -5
  509. package/lib/utils/constants.js.map +0 -1
  510. package/lib/utils/error.d.ts +0 -4
  511. package/lib/utils/error.d.ts.map +0 -1
  512. package/lib/utils/error.js +0 -8
  513. package/lib/utils/error.js.map +0 -1
  514. package/lib/utils/fetch-with-timeout.d.ts +0 -6
  515. package/lib/utils/fetch-with-timeout.d.ts.map +0 -1
  516. package/lib/utils/fetch-with-timeout.js +0 -24
  517. package/lib/utils/fetch-with-timeout.js.map +0 -1
  518. package/lib/utils/get-command-name-from-args.d.ts +0 -3
  519. package/lib/utils/get-command-name-from-args.d.ts.map +0 -1
  520. package/lib/utils/get-command-name-from-args.js +0 -4
  521. package/lib/utils/get-command-name-from-args.js.map +0 -1
  522. package/lib/utils/json-stringify-with-array-buffer.d.ts +0 -2
  523. package/lib/utils/json-stringify-with-array-buffer.d.ts.map +0 -1
  524. package/lib/utils/json-stringify-with-array-buffer.js +0 -32
  525. package/lib/utils/json-stringify-with-array-buffer.js.map +0 -1
  526. package/lib/utils/miscellaneous.d.ts +0 -46
  527. package/lib/utils/miscellaneous.d.ts.map +0 -1
  528. package/lib/utils/miscellaneous.js +0 -443
  529. package/lib/utils/miscellaneous.js.map +0 -1
  530. package/lib/utils/network-check.d.ts +0 -2
  531. package/lib/utils/network-check.d.ts.map +0 -1
  532. package/lib/utils/network-check.js +0 -12
  533. package/lib/utils/network-check.js.map +0 -1
  534. package/lib/utils/otel.d.ts +0 -8
  535. package/lib/utils/otel.d.ts.map +0 -1
  536. package/lib/utils/otel.js +0 -40
  537. package/lib/utils/otel.js.map +0 -1
  538. package/lib/utils/package.d.ts +0 -2
  539. package/lib/utils/package.d.ts.map +0 -1
  540. package/lib/utils/package.js +0 -4
  541. package/lib/utils/package.js.map +0 -1
  542. package/lib/utils/platform.d.ts +0 -17
  543. package/lib/utils/platform.d.ts.map +0 -1
  544. package/lib/utils/platform.js +0 -30
  545. package/lib/utils/platform.js.map +0 -1
  546. package/lib/utils/proxy-agent.d.ts +0 -5
  547. package/lib/utils/proxy-agent.d.ts.map +0 -1
  548. package/lib/utils/proxy-agent.js +0 -41
  549. package/lib/utils/proxy-agent.js.map +0 -1
  550. package/lib/utils/read-env-variables.d.ts +0 -2
  551. package/lib/utils/read-env-variables.d.ts.map +0 -1
  552. package/lib/utils/read-env-variables.js +0 -18
  553. package/lib/utils/read-env-variables.js.map +0 -1
  554. package/lib/utils/spinner.d.ts +0 -11
  555. package/lib/utils/spinner.d.ts.map +0 -1
  556. package/lib/utils/spinner.js +0 -44
  557. package/lib/utils/spinner.js.map +0 -1
  558. package/lib/utils/strip-ansi-codes.d.ts +0 -2
  559. package/lib/utils/strip-ansi-codes.d.ts.map +0 -1
  560. package/lib/utils/strip-ansi-codes.js +0 -6
  561. package/lib/utils/strip-ansi-codes.js.map +0 -1
  562. package/lib/utils/telemetry.d.ts +0 -26
  563. package/lib/utils/telemetry.d.ts.map +0 -1
  564. package/lib/utils/telemetry.js +0 -291
  565. package/lib/utils/telemetry.js.map +0 -1
  566. package/lib/utils/update-version-notifier.d.ts +0 -3
  567. package/lib/utils/update-version-notifier.d.ts.map +0 -1
  568. package/lib/utils/update-version-notifier.js +0 -100
  569. package/lib/utils/update-version-notifier.js.map +0 -1
  570. package/lib/utils/validate-mount-path.d.ts +0 -2
  571. package/lib/utils/validate-mount-path.d.ts.map +0 -1
  572. package/lib/utils/validate-mount-path.js +0 -7
  573. package/lib/utils/validate-mount-path.js.map +0 -1
  574. package/lib/utils/validate-positive-number.d.ts +0 -2
  575. package/lib/utils/validate-positive-number.d.ts.map +0 -1
  576. package/lib/utils/validate-positive-number.js +0 -13
  577. package/lib/utils/validate-positive-number.js.map +0 -1
  578. package/lib/wrapper.d.ts +0 -11
  579. package/lib/wrapper.d.ts.map +0 -1
  580. package/lib/wrapper.js +0 -99
  581. package/lib/wrapper.js.map +0 -1
@@ -0,0 +1,387 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ const require = __createRequire(import.meta.url);
3
+ import {
4
+ __commonJS,
5
+ __require,
6
+ __toESM
7
+ } from "./5ILQMFXK.js";
8
+
9
+ // ../../node_modules/@redocly/cli-otel/node_modules/ulid/dist/index.umd.js
10
+ var require_index_umd = __commonJS({
11
+ "../../node_modules/@redocly/cli-otel/node_modules/ulid/dist/index.umd.js"(exports, module) {
12
+ (function(global2, factory) {
13
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.ULID = {}));
14
+ })(exports, (function(exports2) {
15
+ "use strict";
16
+ function createError(message) {
17
+ const err = new Error(message);
18
+ err.source = "ulid";
19
+ return err;
20
+ }
21
+ const ENCODING2 = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
22
+ const ENCODING_LEN2 = ENCODING2.length;
23
+ const TIME_MAX2 = Math.pow(2, 48) - 1;
24
+ const TIME_LEN2 = 10;
25
+ const RANDOM_LEN2 = 16;
26
+ function replaceCharAt(str, index, char) {
27
+ if (index > str.length - 1) {
28
+ return str;
29
+ }
30
+ return str.substr(0, index) + char + str.substr(index + 1);
31
+ }
32
+ function incrementBase32(str) {
33
+ let done = void 0;
34
+ let index = str.length;
35
+ let char;
36
+ let charIndex;
37
+ const maxCharIndex = ENCODING_LEN2 - 1;
38
+ while (!done && index-- >= 0) {
39
+ char = str[index];
40
+ charIndex = ENCODING2.indexOf(char);
41
+ if (charIndex === -1) {
42
+ throw createError("incorrectly encoded string");
43
+ }
44
+ if (charIndex === maxCharIndex) {
45
+ str = replaceCharAt(str, index, ENCODING2[0]);
46
+ continue;
47
+ }
48
+ done = replaceCharAt(str, index, ENCODING2[charIndex + 1]);
49
+ }
50
+ if (typeof done === "string") {
51
+ return done;
52
+ }
53
+ throw createError("cannot increment this string");
54
+ }
55
+ function randomChar2(prng) {
56
+ let rand = Math.floor(prng() * ENCODING_LEN2);
57
+ if (rand === ENCODING_LEN2) {
58
+ rand = ENCODING_LEN2 - 1;
59
+ }
60
+ return ENCODING2.charAt(rand);
61
+ }
62
+ function encodeTime2(now, len) {
63
+ if (isNaN(now)) {
64
+ throw new Error(now + " must be a number");
65
+ }
66
+ if (now > TIME_MAX2) {
67
+ throw createError("cannot encode time greater than " + TIME_MAX2);
68
+ }
69
+ if (now < 0) {
70
+ throw createError("time must be positive");
71
+ }
72
+ if (Number.isInteger(Number(now)) === false) {
73
+ throw createError("time must be an integer");
74
+ }
75
+ let mod;
76
+ let str = "";
77
+ for (; len > 0; len--) {
78
+ mod = now % ENCODING_LEN2;
79
+ str = ENCODING2.charAt(mod) + str;
80
+ now = (now - mod) / ENCODING_LEN2;
81
+ }
82
+ return str;
83
+ }
84
+ function encodeRandom2(len, prng) {
85
+ let str = "";
86
+ for (; len > 0; len--) {
87
+ str = randomChar2(prng) + str;
88
+ }
89
+ return str;
90
+ }
91
+ function decodeTime(id) {
92
+ if (id.length !== TIME_LEN2 + RANDOM_LEN2) {
93
+ throw createError("malformed ulid");
94
+ }
95
+ var time = id.substr(0, TIME_LEN2).split("").reverse().reduce((carry, char, index) => {
96
+ const encodingIndex = ENCODING2.indexOf(char);
97
+ if (encodingIndex === -1) {
98
+ throw createError("invalid character found: " + char);
99
+ }
100
+ return carry += encodingIndex * Math.pow(ENCODING_LEN2, index);
101
+ }, 0);
102
+ if (time > TIME_MAX2) {
103
+ throw createError("malformed ulid, timestamp too large");
104
+ }
105
+ return time;
106
+ }
107
+ function detectPrng(allowInsecure = false, root) {
108
+ if (!root) {
109
+ root = typeof window !== "undefined" ? window : null;
110
+ }
111
+ const browserCrypto = root && (root.crypto || root.msCrypto);
112
+ if (browserCrypto) {
113
+ return () => {
114
+ const buffer = new Uint8Array(1);
115
+ browserCrypto.getRandomValues(buffer);
116
+ return buffer[0] / 255;
117
+ };
118
+ } else {
119
+ try {
120
+ const nodeCrypto = __require("crypto");
121
+ return () => nodeCrypto.randomBytes(1).readUInt8() / 255;
122
+ } catch (e) {
123
+ }
124
+ }
125
+ if (allowInsecure) {
126
+ try {
127
+ console.error("secure crypto unusable, falling back to insecure Math.random()!");
128
+ } catch (e) {
129
+ }
130
+ return () => Math.random();
131
+ }
132
+ throw createError("secure crypto unusable, insecure Math.random not allowed");
133
+ }
134
+ function factory(currPrng) {
135
+ if (!currPrng) {
136
+ currPrng = detectPrng();
137
+ }
138
+ return function ulid3(seedTime) {
139
+ if (isNaN(seedTime)) {
140
+ seedTime = Date.now();
141
+ }
142
+ return encodeTime2(seedTime, TIME_LEN2) + encodeRandom2(RANDOM_LEN2, currPrng);
143
+ };
144
+ }
145
+ function monotonicFactory(currPrng) {
146
+ if (!currPrng) {
147
+ currPrng = detectPrng();
148
+ }
149
+ let lastTime = 0;
150
+ let lastRandom;
151
+ return function ulid3(seedTime) {
152
+ if (isNaN(seedTime)) {
153
+ seedTime = Date.now();
154
+ }
155
+ if (seedTime <= lastTime) {
156
+ const incrementedRandom = lastRandom = incrementBase32(lastRandom);
157
+ return encodeTime2(lastTime, TIME_LEN2) + incrementedRandom;
158
+ }
159
+ lastTime = seedTime;
160
+ const newRandom = lastRandom = encodeRandom2(RANDOM_LEN2, currPrng);
161
+ return encodeTime2(seedTime, TIME_LEN2) + newRandom;
162
+ };
163
+ }
164
+ const ulid2 = factory();
165
+ exports2.decodeTime = decodeTime;
166
+ exports2.detectPrng = detectPrng;
167
+ exports2.encodeRandom = encodeRandom2;
168
+ exports2.encodeTime = encodeTime2;
169
+ exports2.factory = factory;
170
+ exports2.incrementBase32 = incrementBase32;
171
+ exports2.monotonicFactory = monotonicFactory;
172
+ exports2.randomChar = randomChar2;
173
+ exports2.replaceCharAt = replaceCharAt;
174
+ exports2.ulid = ulid2;
175
+ }));
176
+ }
177
+ });
178
+
179
+ // ../../node_modules/@redocly/cli-otel/lib/index.js
180
+ var import_ulid = __toESM(require_index_umd(), 1);
181
+ var z = Object.defineProperty;
182
+ var N = (e, n) => {
183
+ for (var o in n) z(e, o, { get: n[o], enumerable: true });
184
+ };
185
+ var j = {};
186
+ N(j, { CLOUD_EVENT_STANDARD_KEYS: () => b, mapToCloudEvent: () => q });
187
+ var b = ["id", "specversion", "object", "datacontenttype", "type", "time", "origin", "env", "category", "signal", "source", "subject", "subjects", "data", "actor", "requestId", "clientIp", "organizationId", "organizationSlug", "projectId", "projectSlug", "osPlatform", "userAgent", "sessionId"];
188
+ function q(e) {
189
+ let { type: n, data: o, actor: t, requestId: s, clientIp: r, origin: i, env: c, source: a, organizationId: m, organizationSlug: C, projectId: A, projectSlug: _, category: k = "product", signal: D = "log", osPlatform: h, userAgent: w, sessionId: P } = e, $ = !!(o && Array.isArray(o)), v = t ? { id: t.id ?? `ann_${(0, import_ulid.ulid)()}`, object: t.object ?? "user", uri: t.uri ?? "" } : null, E = `evt_${(0, import_ulid.ulid)()}`.toLowerCase(), x = /* @__PURE__ */ new Date(), I = a ?? v?.uri ?? null, T = { ...m !== void 0 && { organizationId: m }, ...C !== void 0 && { organizationSlug: C }, ...A !== void 0 && { projectId: A }, ..._ !== void 0 && { projectSlug: _ } }, g = { specversion: "1.0", object: "event", datacontenttype: "application/json; charset=utf-8", origin: i, env: c, category: k, signal: D, osPlatform: h, userAgent: w, clientIp: r, sessionId: P };
190
+ if ($) {
191
+ let u = o, B = u.map((y) => ({ id: y.id ?? "", object: y.object ?? "", uri: y.uri ?? "" })), U = u[0]?.id ?? null;
192
+ Object.assign(g, { ...T, id: E, type: n, time: x, source: I, actor: v, subject: U, subjects: B, data: u, requestId: s ?? "" });
193
+ } else {
194
+ let u = (Array.isArray(o) ? o[0] : o)?.id ?? null;
195
+ Object.assign(g, { ...T, id: E, type: n, time: x, source: I, actor: v, subject: u, requestId: s ?? "", data: o, ...a != null && { request: { source: a } } });
196
+ }
197
+ return g;
198
+ }
199
+ var O = "context";
200
+ var d = [O];
201
+ function f(e) {
202
+ return e.replace(/([A-Z])/g, "_$1").toLowerCase();
203
+ }
204
+ function S(e) {
205
+ let n = { updated: [], notUpdated: [] };
206
+ for (let o of e) {
207
+ if (!o || typeof o != "object") continue;
208
+ let t = o.object;
209
+ if (typeof t != "string") continue;
210
+ let s = o, r = n.notUpdated.find((i) => i.object === t);
211
+ r ? (n.updated = [r, s], n.notUpdated = n.notUpdated.filter((i) => i.object !== t)) : n.updated.some((i) => i.object === t) || n.notUpdated.push(s);
212
+ }
213
+ return n;
214
+ }
215
+ function p(e, n, o) {
216
+ let t = o ? `${o}.` : "", s = n === "" ? "" : `${n}.`;
217
+ return `${e}.${t}${s}`;
218
+ }
219
+ function R(e, n) {
220
+ let o = e[O];
221
+ return o === "before" || o === "after" ? o : n === 0 ? "after" : "before";
222
+ }
223
+ function l(e, n, o, t = true, s) {
224
+ let r = s?.length ? new Set(s) : null;
225
+ for (let [i, c] of Object.entries(e)) if (!r?.has(i) && c !== void 0) {
226
+ let a = t ? f(i) : i;
227
+ o[`${n}${a}`] = c;
228
+ }
229
+ }
230
+ function W(e, n, o) {
231
+ for (let [t, s] of Object.entries(e)) s == null || typeof s == "object" || (o[`${n}.${f(t)}`] = s);
232
+ }
233
+ function K(e, n, o) {
234
+ let t = n instanceof Date ? n.toISOString() : new Date(n).toISOString();
235
+ return { "cloudevents.event_id": e.id, "cloudevents.event_type": e.type, "cloudevents.event_source": e.source ?? void 0, "cloudevents.event_spec_version": e.specversion, "cloudevents.event_data_content_type": e.datacontenttype ?? "application/json; charset=utf-8", "cloudevents.event_time": t, "cloudevents.event_subject": e.subject ?? "", "cloudevents.page.uri": typeof location < "u" ? location.href : void 0, "cloudevents.event_version": o?.version, "cloudevents.event_origin": e.origin ?? o?.serviceName, "cloudevents.event_env": e.env, "cloudevents.event_source_details.id": e.actor?.id ?? "anonymous", "cloudevents.event_source_details.object": e.actor?.object ?? "anonymous", "cloudevents.event_source_details.uri": e.actor?.uri ?? void 0, "cloudevents.event_client_ip": e.clientIp, "cloudevents.event_object": e.object || "event", "cloudevents.event_category": e.category, "cloudevents.event_signal": e.signal, "cloudevents.event_actor.id": e.actor?.id ?? void 0, "cloudevents.event_actor.object": e.actor?.object ?? void 0, "cloudevents.event_actor.uri": e.actor?.uri ?? void 0, "cloudevents.event_organization_id": e.organizationId, "cloudevents.event_organization_slug": e.organizationSlug, "cloudevents.event_project_id": e.projectId, "cloudevents.event_project_slug": e.projectSlug, "cloudevents.event_request_id": e.requestId, "cloudevents.event_os_platform": e.osPlatform, "cloudevents.event_user_agent": e.userAgent, "cloudevents.event_session_id": e.sessionId };
236
+ }
237
+ function G(e, n, o) {
238
+ let t = e.data, s = { ...K(e, n, o) };
239
+ return L(t, s), X(e, s), Z(e, s), s;
240
+ }
241
+ function L(e, n) {
242
+ !e || typeof e != "object" || (Array.isArray(e) ? V(e, n) : H(e, n));
243
+ }
244
+ function V(e, n) {
245
+ e.some((t) => t && typeof t == "object" && typeof t.object == "string") ? Y(e, n) : F(e, n);
246
+ }
247
+ function Y(e, n) {
248
+ let o = S(e);
249
+ o.updated.forEach((t, s) => {
250
+ let r = p("cloudevents.event_data", t.object, R(t, s));
251
+ l(t, r, n, true, d);
252
+ }), o.notUpdated.forEach((t) => {
253
+ let s = p("cloudevents.event_data", t.object, void 0);
254
+ l(t, s, n, true, d);
255
+ });
256
+ }
257
+ function F(e, n) {
258
+ for (let o of e) if (!(!o || typeof o != "object")) for (let [t, s] of Object.entries(o)) {
259
+ if (s === void 0) continue;
260
+ let r = f(t);
261
+ s !== null && typeof s == "object" && !Array.isArray(s) ? W(s, `cloudevents.event_data.${r}`, n) : n[`cloudevents.event_data.${r}`] = s;
262
+ }
263
+ }
264
+ function H(e, n) {
265
+ for (let [o, t] of Object.entries(e)) {
266
+ if (t == null) continue;
267
+ let s = f(o);
268
+ if (typeof t == "object" && !Array.isArray(t)) for (let [r, i] of Object.entries(t)) i != null && (typeof i == "string" || typeof i == "number" || typeof i == "boolean") && (n[`cloudevents.event_data.${s}.${r}`] = i);
269
+ else (typeof t == "string" || typeof t == "number" || typeof t == "boolean") && (n[`cloudevents.event_data.${s}`] = t);
270
+ }
271
+ }
272
+ function X(e, n) {
273
+ if (!e.subjects || !Array.isArray(e.subjects)) return;
274
+ let o = S(e.subjects);
275
+ o.updated.forEach((t, s) => {
276
+ let r = p("cloudevents.event_subjects", t.object, R(t, s));
277
+ l(t, r, n, false, d);
278
+ }), o.notUpdated.forEach((t) => {
279
+ let s = p("cloudevents.event_subjects", t.object, void 0);
280
+ l(t, s, n, false, d);
281
+ });
282
+ }
283
+ function Z(e, n) {
284
+ for (let [o, t] of Object.entries(e)) if (!(b.includes(o) || t === void 0)) if (t instanceof Object) for (let [s, r] of Object.entries(t)) r !== void 0 && (n[`cloudevents.${o}.${s}`] = r);
285
+ else n[`cloudevents.${o}`] = t;
286
+ }
287
+
288
+ // ../../node_modules/ulid/dist/node/index.js
289
+ import crypto from "node:crypto";
290
+ var ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
291
+ var ENCODING_LEN = 32;
292
+ var RANDOM_LEN = 16;
293
+ var TIME_LEN = 10;
294
+ var TIME_MAX = 281474976710655;
295
+ var ULIDErrorCode;
296
+ (function(ULIDErrorCode2) {
297
+ ULIDErrorCode2["Base32IncorrectEncoding"] = "B32_ENC_INVALID";
298
+ ULIDErrorCode2["DecodeTimeInvalidCharacter"] = "DEC_TIME_CHAR";
299
+ ULIDErrorCode2["DecodeTimeValueMalformed"] = "DEC_TIME_MALFORMED";
300
+ ULIDErrorCode2["EncodeTimeNegative"] = "ENC_TIME_NEG";
301
+ ULIDErrorCode2["EncodeTimeSizeExceeded"] = "ENC_TIME_SIZE_EXCEED";
302
+ ULIDErrorCode2["EncodeTimeValueMalformed"] = "ENC_TIME_MALFORMED";
303
+ ULIDErrorCode2["PRNGDetectFailure"] = "PRNG_DETECT";
304
+ ULIDErrorCode2["ULIDInvalid"] = "ULID_INVALID";
305
+ ULIDErrorCode2["Unexpected"] = "UNEXPECTED";
306
+ ULIDErrorCode2["UUIDInvalid"] = "UUID_INVALID";
307
+ })(ULIDErrorCode || (ULIDErrorCode = {}));
308
+ var ULIDError = class extends Error {
309
+ constructor(errorCode, message) {
310
+ super(`${message} (${errorCode})`);
311
+ this.name = "ULIDError";
312
+ this.code = errorCode;
313
+ }
314
+ };
315
+ function randomChar(prng) {
316
+ const randomPosition = Math.floor(prng() * ENCODING_LEN) % ENCODING_LEN;
317
+ return ENCODING.charAt(randomPosition);
318
+ }
319
+ function detectPRNG(root) {
320
+ const rootLookup = detectRoot();
321
+ const globalCrypto = rootLookup && (rootLookup.crypto || rootLookup.msCrypto) || (typeof crypto !== "undefined" ? crypto : null);
322
+ if (typeof globalCrypto?.getRandomValues === "function") {
323
+ return () => {
324
+ const buffer = new Uint8Array(1);
325
+ globalCrypto.getRandomValues(buffer);
326
+ return buffer[0] / 256;
327
+ };
328
+ } else if (typeof globalCrypto?.randomBytes === "function") {
329
+ return () => globalCrypto.randomBytes(1).readUInt8() / 256;
330
+ } else if (crypto?.randomBytes) {
331
+ return () => crypto.randomBytes(1).readUInt8() / 256;
332
+ }
333
+ throw new ULIDError(ULIDErrorCode.PRNGDetectFailure, "Failed to find a reliable PRNG");
334
+ }
335
+ function detectRoot() {
336
+ if (inWebWorker())
337
+ return self;
338
+ if (typeof window !== "undefined") {
339
+ return window;
340
+ }
341
+ if (typeof global !== "undefined") {
342
+ return global;
343
+ }
344
+ if (typeof globalThis !== "undefined") {
345
+ return globalThis;
346
+ }
347
+ return null;
348
+ }
349
+ function encodeRandom(len, prng) {
350
+ let str = "";
351
+ for (; len > 0; len--) {
352
+ str = randomChar(prng) + str;
353
+ }
354
+ return str;
355
+ }
356
+ function encodeTime(now, len = TIME_LEN) {
357
+ if (isNaN(now)) {
358
+ throw new ULIDError(ULIDErrorCode.EncodeTimeValueMalformed, `Time must be a number: ${now}`);
359
+ } else if (now > TIME_MAX) {
360
+ throw new ULIDError(ULIDErrorCode.EncodeTimeSizeExceeded, `Cannot encode a time larger than ${TIME_MAX}: ${now}`);
361
+ } else if (now < 0) {
362
+ throw new ULIDError(ULIDErrorCode.EncodeTimeNegative, `Time must be positive: ${now}`);
363
+ } else if (Number.isInteger(now) === false) {
364
+ throw new ULIDError(ULIDErrorCode.EncodeTimeValueMalformed, `Time must be an integer: ${now}`);
365
+ }
366
+ let mod, str = "";
367
+ for (let currentLen = len; currentLen > 0; currentLen--) {
368
+ mod = now % ENCODING_LEN;
369
+ str = ENCODING.charAt(mod) + str;
370
+ now = (now - mod) / ENCODING_LEN;
371
+ }
372
+ return str;
373
+ }
374
+ function inWebWorker() {
375
+ return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
376
+ }
377
+ function ulid(seedTime, prng) {
378
+ const currentPRNG = prng || detectPRNG();
379
+ const seed = !seedTime || isNaN(seedTime) ? Date.now() : seedTime;
380
+ return encodeTime(seed, TIME_LEN) + encodeRandom(RANDOM_LEN, currentPRNG);
381
+ }
382
+
383
+ export {
384
+ j,
385
+ G,
386
+ ulid
387
+ };