apipost-cli 1.0.8 → 1.0.13

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 (300) hide show
  1. package/README.md +4 -0
  2. package/dist/37.index.js +452 -0
  3. package/dist/841.index.js +6984 -0
  4. package/dist/action.js +4 -0
  5. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortController.d.ts +85 -0
  6. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortSignal.d.ts +80 -0
  7. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/index.d.ts +3 -0
  8. package/dist/apipost-cli/node_modules/@azure/core-auth/types/3.1/core-auth.d.ts +229 -0
  9. package/dist/apipost-cli/node_modules/@azure/core-client/types/3.1/core-client.d.ts +900 -0
  10. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/core-paging.d.ts +77 -0
  11. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/samples-dev/getPagedAsyncIteratorSample.d.ts +2 -0
  12. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/getPagedAsyncIterator.d.ts +10 -0
  13. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/index.d.ts +3 -0
  14. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/models.d.ts +69 -0
  15. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/test/getPagedAsyncIterator.spec.d.ts +2 -0
  16. package/dist/apipost-cli/node_modules/@azure/core-rest-pipeline/types/3.1/core-rest-pipeline.d.ts +1114 -0
  17. package/dist/apipost-cli/node_modules/@azure/core-util/types/3.1/core-util.d.ts +112 -0
  18. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  19. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  20. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  21. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  22. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  23. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  24. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  25. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  26. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  27. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  28. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  29. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  30. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  31. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  32. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  33. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  34. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  35. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  36. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  37. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  38. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  39. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/package.json +44 -0
  40. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  41. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  42. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  43. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  44. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  45. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  46. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  47. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  48. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  49. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  50. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  51. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  52. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  53. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/package.json +37 -0
  54. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  55. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  56. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  57. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  58. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  59. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  60. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  61. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  62. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  63. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  64. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  65. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  66. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  67. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  68. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  69. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  70. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  71. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  72. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  73. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  74. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  75. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  76. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  77. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/package.json +44 -0
  78. package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  79. package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  80. package/dist/apipost-cli/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  81. package/dist/apipost-cli/node_modules/@types/node/ts4.8/buffer.d.ts +2351 -0
  82. package/dist/apipost-cli/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  83. package/dist/apipost-cli/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  84. package/dist/apipost-cli/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  85. package/dist/apipost-cli/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  86. package/dist/apipost-cli/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
  87. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  88. package/dist/apipost-cli/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  89. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  90. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  91. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  92. package/dist/apipost-cli/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  93. package/dist/apipost-cli/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  94. package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  95. package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs.d.ts +4043 -0
  96. package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  97. package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  98. package/dist/apipost-cli/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  99. package/dist/apipost-cli/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  100. package/dist/apipost-cli/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  101. package/dist/apipost-cli/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  102. package/dist/apipost-cli/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  103. package/dist/apipost-cli/node_modules/@types/node/ts4.8/module.d.ts +116 -0
  104. package/dist/apipost-cli/node_modules/@types/node/ts4.8/net.d.ts +886 -0
  105. package/dist/apipost-cli/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  106. package/dist/apipost-cli/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  107. package/dist/apipost-cli/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  108. package/dist/apipost-cli/node_modules/@types/node/ts4.8/process.d.ts +1485 -0
  109. package/dist/apipost-cli/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  110. package/dist/apipost-cli/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  111. package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  112. package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  113. package/dist/apipost-cli/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  114. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  115. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  116. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  117. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  118. package/dist/apipost-cli/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  119. package/dist/apipost-cli/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
  120. package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  121. package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  122. package/dist/apipost-cli/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
  123. package/dist/apipost-cli/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  124. package/dist/apipost-cli/node_modules/@types/node/ts4.8/tty.d.ts +205 -0
  125. package/dist/apipost-cli/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  126. package/dist/apipost-cli/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
  127. package/dist/apipost-cli/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  128. package/dist/apipost-cli/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  129. package/dist/apipost-cli/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  130. package/dist/apipost-cli/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  131. package/dist/apipost-cli/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  132. package/dist/apipost-cli/node_modules/bignumber.js/LICENCE.md +26 -0
  133. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.d.ts +1831 -0
  134. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.js +2926 -0
  135. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.mjs +2889 -0
  136. package/dist/apipost-cli/node_modules/bignumber.js/doc/API.html +2249 -0
  137. package/dist/apipost-cli/node_modules/bignumber.js/package.json +50 -0
  138. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
  139. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
  140. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o +0 -0
  141. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o +0 -0
  142. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o +0 -0
  143. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o +0 -0
  144. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
  145. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
  146. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o +0 -0
  147. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
  148. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
  149. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
  150. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
  151. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
  152. package/dist/apipost-cli/node_modules/des.js/lib/des/cbc.js +65 -0
  153. package/dist/apipost-cli/node_modules/des.js/lib/des/cipher.js +142 -0
  154. package/dist/apipost-cli/node_modules/des.js/lib/des/des.js +150 -0
  155. package/dist/apipost-cli/node_modules/des.js/lib/des/ede.js +54 -0
  156. package/dist/apipost-cli/node_modules/des.js/lib/des/utils.js +256 -0
  157. package/dist/apipost-cli/node_modules/des.js/lib/des.js +7 -0
  158. package/dist/apipost-cli/node_modules/des.js/package.json +33 -0
  159. package/dist/apipost-cli/node_modules/des.js/test/cbc-test.js +73 -0
  160. package/dist/apipost-cli/node_modules/des.js/test/des-test.js +139 -0
  161. package/dist/apipost-cli/node_modules/des.js/test/ede-test.js +106 -0
  162. package/dist/apipost-cli/node_modules/des.js/test/fixtures.js +5 -0
  163. package/dist/apipost-cli/node_modules/des.js/test/utils-test.js +169 -0
  164. package/dist/apipost-cli/node_modules/fs.realpath/LICENSE +43 -0
  165. package/dist/apipost-cli/node_modules/fs.realpath/index.js +66 -0
  166. package/dist/apipost-cli/node_modules/fs.realpath/old.js +303 -0
  167. package/dist/apipost-cli/node_modules/fs.realpath/package.json +26 -0
  168. package/dist/apipost-cli/node_modules/function.prototype.name/LICENSE +21 -0
  169. package/dist/apipost-cli/node_modules/function.prototype.name/auto.js +3 -0
  170. package/dist/apipost-cli/node_modules/function.prototype.name/helpers/functionsHaveNames.js +5 -0
  171. package/dist/apipost-cli/node_modules/function.prototype.name/implementation.js +43 -0
  172. package/dist/apipost-cli/node_modules/function.prototype.name/index.js +18 -0
  173. package/dist/apipost-cli/node_modules/function.prototype.name/package.json +80 -0
  174. package/dist/apipost-cli/node_modules/function.prototype.name/polyfill.js +7 -0
  175. package/dist/apipost-cli/node_modules/function.prototype.name/shim.js +35 -0
  176. package/dist/apipost-cli/node_modules/function.prototype.name/test/implementation.js +20 -0
  177. package/dist/apipost-cli/node_modules/function.prototype.name/test/index.js +23 -0
  178. package/dist/apipost-cli/node_modules/function.prototype.name/test/shimmed.js +21 -0
  179. package/dist/apipost-cli/node_modules/function.prototype.name/test/tests.js +60 -0
  180. package/dist/apipost-cli/node_modules/function.prototype.name/test/uglified.js +17 -0
  181. package/dist/apipost-cli/node_modules/lodash.camelcase/LICENSE +47 -0
  182. package/dist/apipost-cli/node_modules/lodash.camelcase/index.js +599 -0
  183. package/dist/apipost-cli/node_modules/lodash.camelcase/package.json +17 -0
  184. package/dist/apipost-cli/node_modules/lodash.memoize/LICENSE +47 -0
  185. package/dist/apipost-cli/node_modules/lodash.memoize/index.js +676 -0
  186. package/dist/apipost-cli/node_modules/lodash.memoize/package.json +17 -0
  187. package/dist/apipost-cli/node_modules/lodash.uniq/LICENSE +47 -0
  188. package/dist/apipost-cli/node_modules/lodash.uniq/index.js +896 -0
  189. package/dist/apipost-cli/node_modules/lodash.uniq/package.json +17 -0
  190. package/dist/apipost-cli/node_modules/moment/ts3.1-typings/moment.d.ts +785 -0
  191. package/dist/apipost-cli/node_modules/oauth-1.0a/LICENSE +20 -0
  192. package/dist/apipost-cli/node_modules/oauth-1.0a/Makefile +36 -0
  193. package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.d.ts +192 -0
  194. package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.js +377 -0
  195. package/dist/apipost-cli/node_modules/oauth-1.0a/package.json +30 -0
  196. package/dist/apipost-cli/node_modules/oauth-1.0a/test/getParameterString.js +21 -0
  197. package/dist/apipost-cli/node_modules/oauth-1.0a/test/mocha.opts +4 -0
  198. package/dist/apipost-cli/node_modules/oauth-1.0a/test/oauth_body_hash.js +141 -0
  199. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/consumer.js +14 -0
  200. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/last_ampersand.js +55 -0
  201. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values.js +54 -0
  202. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values_qs.js +50 -0
  203. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/nonce_length.js +44 -0
  204. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/parameter_seperator.js +102 -0
  205. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/realm.js +51 -0
  206. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/signature_method.js +36 -0
  207. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/bitbucket.js +88 -0
  208. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/flickr.js +196 -0
  209. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/openbank.js +61 -0
  210. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/twitter.js +183 -0
  211. package/dist/apipost-cli/node_modules/oauth-1.0a/test/twitter_sample_data.js +94 -0
  212. package/dist/apipost-cli/node_modules/object.assign/LICENSE +21 -0
  213. package/dist/apipost-cli/node_modules/object.assign/auto.js +3 -0
  214. package/dist/apipost-cli/node_modules/object.assign/dist/browser.js +944 -0
  215. package/dist/apipost-cli/node_modules/object.assign/hasSymbols.js +43 -0
  216. package/dist/apipost-cli/node_modules/object.assign/implementation.js +46 -0
  217. package/dist/apipost-cli/node_modules/object.assign/index.js +22 -0
  218. package/dist/apipost-cli/node_modules/object.assign/package.json +96 -0
  219. package/dist/apipost-cli/node_modules/object.assign/polyfill.js +55 -0
  220. package/dist/apipost-cli/node_modules/object.assign/shim.js +14 -0
  221. package/dist/apipost-cli/node_modules/object.assign/test/implementation.js +19 -0
  222. package/dist/apipost-cli/node_modules/object.assign/test/index.js +17 -0
  223. package/dist/apipost-cli/node_modules/object.assign/test/native.js +49 -0
  224. package/dist/apipost-cli/node_modules/object.assign/test/ses-compat.js +12 -0
  225. package/dist/apipost-cli/node_modules/object.assign/test/shimmed.js +52 -0
  226. package/dist/apipost-cli/node_modules/object.assign/test/tests.js +232 -0
  227. package/dist/apipost-cli/node_modules/object.assign/test.html +18458 -0
  228. package/dist/apipost-cli/node_modules/promise.series/LICENSE +21 -0
  229. package/dist/apipost-cli/node_modules/promise.series/index.js +10 -0
  230. package/dist/apipost-cli/node_modules/promise.series/package.json +34 -0
  231. package/dist/apipost-cli/node_modules/regexp.prototype.flags/LICENSE +22 -0
  232. package/dist/apipost-cli/node_modules/regexp.prototype.flags/auto.js +3 -0
  233. package/dist/apipost-cli/node_modules/regexp.prototype.flags/implementation.js +42 -0
  234. package/dist/apipost-cli/node_modules/regexp.prototype.flags/index.js +18 -0
  235. package/dist/apipost-cli/node_modules/regexp.prototype.flags/package.json +100 -0
  236. package/dist/apipost-cli/node_modules/regexp.prototype.flags/polyfill.js +36 -0
  237. package/dist/apipost-cli/node_modules/regexp.prototype.flags/shim.js +26 -0
  238. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/implementation.js +20 -0
  239. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/index.js +17 -0
  240. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/shimmed.js +48 -0
  241. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/tests.js +143 -0
  242. package/dist/apipost-cli/node_modules/resolve.exports/dist/index.js +1 -0
  243. package/dist/apipost-cli/node_modules/resolve.exports/dist/index.mjs +1 -0
  244. package/dist/apipost-cli/node_modules/resolve.exports/index.d.ts +100 -0
  245. package/dist/apipost-cli/node_modules/resolve.exports/license +21 -0
  246. package/dist/apipost-cli/node_modules/resolve.exports/package.json +50 -0
  247. package/dist/apipost-cli/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  248. package/dist/apipost-cli/node_modules/string.prototype.trim/LICENSE +21 -0
  249. package/dist/apipost-cli/node_modules/string.prototype.trim/auto.js +3 -0
  250. package/dist/apipost-cli/node_modules/string.prototype.trim/implementation.js +21 -0
  251. package/dist/apipost-cli/node_modules/string.prototype.trim/index.js +23 -0
  252. package/dist/apipost-cli/node_modules/string.prototype.trim/package.json +101 -0
  253. package/dist/apipost-cli/node_modules/string.prototype.trim/polyfill.js +19 -0
  254. package/dist/apipost-cli/node_modules/string.prototype.trim/shim.js +14 -0
  255. package/dist/apipost-cli/node_modules/string.prototype.trim/test/implementation.js +21 -0
  256. package/dist/apipost-cli/node_modules/string.prototype.trim/test/index.js +17 -0
  257. package/dist/apipost-cli/node_modules/string.prototype.trim/test/shimmed.js +36 -0
  258. package/dist/apipost-cli/node_modules/string.prototype.trim/test/tests.js +45 -0
  259. package/dist/apipost-cli/node_modules/string.prototype.trimend/LICENSE +21 -0
  260. package/dist/apipost-cli/node_modules/string.prototype.trimend/auto.js +3 -0
  261. package/dist/apipost-cli/node_modules/string.prototype.trimend/implementation.js +15 -0
  262. package/dist/apipost-cli/node_modules/string.prototype.trimend/index.js +23 -0
  263. package/dist/apipost-cli/node_modules/string.prototype.trimend/package.json +79 -0
  264. package/dist/apipost-cli/node_modules/string.prototype.trimend/polyfill.js +15 -0
  265. package/dist/apipost-cli/node_modules/string.prototype.trimend/shim.js +14 -0
  266. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/implementation.js +20 -0
  267. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/index.js +17 -0
  268. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/shimmed.js +36 -0
  269. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/tests.js +31 -0
  270. package/dist/apipost-cli/node_modules/string.prototype.trimstart/LICENSE +21 -0
  271. package/dist/apipost-cli/node_modules/string.prototype.trimstart/auto.js +3 -0
  272. package/dist/apipost-cli/node_modules/string.prototype.trimstart/implementation.js +15 -0
  273. package/dist/apipost-cli/node_modules/string.prototype.trimstart/index.js +23 -0
  274. package/dist/apipost-cli/node_modules/string.prototype.trimstart/package.json +79 -0
  275. package/dist/apipost-cli/node_modules/string.prototype.trimstart/polyfill.js +15 -0
  276. package/dist/apipost-cli/node_modules/string.prototype.trimstart/shim.js +14 -0
  277. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/implementation.js +20 -0
  278. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/index.js +18 -0
  279. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/shimmed.js +36 -0
  280. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/tests.js +31 -0
  281. package/dist/apipost-cli/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +771 -0
  282. package/dist/apipost-http-schema.json +129 -0
  283. package/dist/bridge.js +1010 -0
  284. package/dist/build/Release/cpufeatures.node +0 -0
  285. package/dist/esprima.js +3756 -0
  286. package/dist/events.js +977 -0
  287. package/dist/index.js +565958 -0
  288. package/dist/index1.js +26 -0
  289. package/dist/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  290. package/dist/module.js +34 -0
  291. package/dist/pagent.exe +0 -0
  292. package/dist/setup-node-sandbox.js +461 -0
  293. package/dist/setup-sandbox.js +545 -0
  294. package/dist/snappy.darwin-arm64.node +0 -0
  295. package/dist/xdg-open +1066 -0
  296. package/package.json +13 -4
  297. package/bin/cli.js +0 -216
  298. package/bin/template.js +0 -803
  299. /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.html" +0 -0
  300. /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.json" +0 -0
@@ -0,0 +1,771 @@
1
+ /// <reference lib="es2018.asynciterable" />
2
+
3
+ /**
4
+ * A signal object that allows you to communicate with a request and abort it if required
5
+ * via its associated `AbortController` object.
6
+ *
7
+ * @remarks
8
+ * This interface is compatible with the `AbortSignal` interface defined in TypeScript's DOM types.
9
+ * It is redefined here, so it can be polyfilled without a DOM, for example with
10
+ * {@link https://www.npmjs.com/package/abortcontroller-polyfill | abortcontroller-polyfill} in a Node environment.
11
+ *
12
+ * @public
13
+ */
14
+ export declare interface AbortSignal {
15
+ /**
16
+ * Whether the request is aborted.
17
+ */
18
+ readonly aborted: boolean;
19
+ /**
20
+ * Add an event listener to be triggered when this signal becomes aborted.
21
+ */
22
+ addEventListener(type: 'abort', listener: () => void): void;
23
+ /**
24
+ * Remove an event listener that was previously added with {@link AbortSignal.addEventListener}.
25
+ */
26
+ removeEventListener(type: 'abort', listener: () => void): void;
27
+ }
28
+
29
+ /**
30
+ * A queuing strategy that counts the number of bytes in each chunk.
31
+ *
32
+ * @public
33
+ */
34
+ export declare class ByteLengthQueuingStrategy implements QueuingStrategy<ArrayBufferView> {
35
+ constructor(options: QueuingStrategyInit);
36
+ /**
37
+ * Returns the high water mark provided to the constructor.
38
+ */
39
+ get highWaterMark(): number;
40
+ /**
41
+ * Measures the size of `chunk` by returning the value of its `byteLength` property.
42
+ */
43
+ get size(): (chunk: ArrayBufferView) => number;
44
+ }
45
+
46
+ /**
47
+ * A queuing strategy that counts the number of chunks.
48
+ *
49
+ * @public
50
+ */
51
+ export declare class CountQueuingStrategy implements QueuingStrategy<any> {
52
+ constructor(options: QueuingStrategyInit);
53
+ /**
54
+ * Returns the high water mark provided to the constructor.
55
+ */
56
+ get highWaterMark(): number;
57
+ /**
58
+ * Measures the size of `chunk` by always returning 1.
59
+ * This ensures that the total queue size is a count of the number of chunks in the queue.
60
+ */
61
+ get size(): (chunk: any) => 1;
62
+ }
63
+
64
+ /**
65
+ * A queuing strategy.
66
+ *
67
+ * @public
68
+ */
69
+ export declare interface QueuingStrategy<T = any> {
70
+ /**
71
+ * A non-negative number indicating the high water mark of the stream using this queuing strategy.
72
+ */
73
+ highWaterMark?: number;
74
+ /**
75
+ * A function that computes and returns the finite non-negative size of the given chunk value.
76
+ */
77
+ size?: QueuingStrategySizeCallback<T>;
78
+ }
79
+
80
+ /**
81
+ * @public
82
+ */
83
+ export declare interface QueuingStrategyInit {
84
+ /**
85
+ * {@inheritDoc QueuingStrategy.highWaterMark}
86
+ */
87
+ highWaterMark: number;
88
+ }
89
+
90
+ declare type QueuingStrategySizeCallback<T = any> = (chunk: T) => number;
91
+
92
+ declare type ReadableByteStream = ReadableStream<Uint8Array> & {
93
+ _readableStreamController: ReadableByteStreamController;
94
+ };
95
+
96
+ /**
97
+ * Allows control of a {@link ReadableStream | readable byte stream}'s state and internal queue.
98
+ *
99
+ * @public
100
+ */
101
+ export declare class ReadableByteStreamController {
102
+ private constructor();
103
+ /**
104
+ * Returns the current BYOB pull request, or `null` if there isn't one.
105
+ */
106
+ get byobRequest(): ReadableStreamBYOBRequest | null;
107
+ /**
108
+ * Returns the desired size to fill the controlled stream's internal queue. It can be negative, if the queue is
109
+ * over-full. An underlying byte source ought to use this information to determine when and how to apply backpressure.
110
+ */
111
+ get desiredSize(): number | null;
112
+ /**
113
+ * Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from
114
+ * the stream, but once those are read, the stream will become closed.
115
+ */
116
+ close(): void;
117
+ /**
118
+ * Enqueues the given chunk chunk in the controlled readable stream.
119
+ * The chunk has to be an `ArrayBufferView` instance, or else a `TypeError` will be thrown.
120
+ */
121
+ enqueue(chunk: ArrayBufferView): void;
122
+ /**
123
+ * Errors the controlled readable stream, making all future interactions with it fail with the given error `e`.
124
+ */
125
+ error(e?: any): void;
126
+ }
127
+
128
+ /**
129
+ * A readable stream represents a source of data, from which you can read.
130
+ *
131
+ * @public
132
+ */
133
+ export declare class ReadableStream<R = any> {
134
+ constructor(underlyingSource: UnderlyingByteSource, strategy?: {
135
+ highWaterMark?: number;
136
+ size?: undefined;
137
+ });
138
+ constructor(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>);
139
+ /**
140
+ * Whether or not the readable stream is locked to a {@link ReadableStreamDefaultReader | reader}.
141
+ */
142
+ get locked(): boolean;
143
+ /**
144
+ * Cancels the stream, signaling a loss of interest in the stream by a consumer.
145
+ *
146
+ * The supplied `reason` argument will be given to the underlying source's {@link UnderlyingSource.cancel | cancel()}
147
+ * method, which might or might not use it.
148
+ */
149
+ cancel(reason?: any): Promise<void>;
150
+ /**
151
+ * Creates a {@link ReadableStreamBYOBReader} and locks the stream to the new reader.
152
+ *
153
+ * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams,
154
+ * i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading.
155
+ * The returned BYOB reader provides the ability to directly read individual chunks from the stream via its
156
+ * {@link ReadableStreamBYOBReader.read | read()} method, into developer-supplied buffers, allowing more precise
157
+ * control over allocation.
158
+ */
159
+ getReader({ mode }: {
160
+ mode: 'byob';
161
+ }): ReadableStreamBYOBReader;
162
+ /**
163
+ * Creates a {@link ReadableStreamDefaultReader} and locks the stream to the new reader.
164
+ * While the stream is locked, no other reader can be acquired until this one is released.
165
+ *
166
+ * This functionality is especially useful for creating abstractions that desire the ability to consume a stream
167
+ * in its entirety. By getting a reader for the stream, you can ensure nobody else can interleave reads with yours
168
+ * or cancel the stream, which would interfere with your abstraction.
169
+ */
170
+ getReader(): ReadableStreamDefaultReader<R>;
171
+ /**
172
+ * Provides a convenient, chainable way of piping this readable stream through a transform stream
173
+ * (or any other `{ writable, readable }` pair). It simply {@link ReadableStream.pipeTo | pipes} the stream
174
+ * into the writable side of the supplied pair, and returns the readable side for further use.
175
+ *
176
+ * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
177
+ */
178
+ pipeThrough<RS extends ReadableStream>(transform: {
179
+ readable: RS;
180
+ writable: WritableStream<R>;
181
+ }, options?: StreamPipeOptions): RS;
182
+ /**
183
+ * Pipes this readable stream to a given writable stream. The way in which the piping process behaves under
184
+ * various error conditions can be customized with a number of passed options. It returns a promise that fulfills
185
+ * when the piping process completes successfully, or rejects if any errors were encountered.
186
+ *
187
+ * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
188
+ */
189
+ pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
190
+ /**
191
+ * Tees this readable stream, returning a two-element array containing the two resulting branches as
192
+ * new {@link ReadableStream} instances.
193
+ *
194
+ * Teeing a stream will lock it, preventing any other consumer from acquiring a reader.
195
+ * To cancel the stream, cancel both of the resulting branches; a composite cancellation reason will then be
196
+ * propagated to the stream's underlying source.
197
+ *
198
+ * Note that the chunks seen in each branch will be the same object. If the chunks are not immutable,
199
+ * this could allow interference between the two branches.
200
+ */
201
+ tee(): [ReadableStream<R>, ReadableStream<R>];
202
+ /**
203
+ * Asynchronously iterates over the chunks in the stream's internal queue.
204
+ *
205
+ * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader.
206
+ * The lock will be released if the async iterator's {@link ReadableStreamAsyncIterator.return | return()} method
207
+ * is called, e.g. by breaking out of the loop.
208
+ *
209
+ * By default, calling the async iterator's {@link ReadableStreamAsyncIterator.return | return()} method will also
210
+ * cancel the stream. To prevent this, use the stream's {@link ReadableStream.values | values()} method, passing
211
+ * `true` for the `preventCancel` option.
212
+ */
213
+ values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
214
+ /**
215
+ * {@inheritDoc ReadableStream.values}
216
+ */
217
+ [Symbol.asyncIterator]: (options?: ReadableStreamIteratorOptions) => ReadableStreamAsyncIterator<R>;
218
+ }
219
+
220
+ /**
221
+ * An async iterator returned by {@link ReadableStream.values}.
222
+ *
223
+ * @public
224
+ */
225
+ export declare interface ReadableStreamAsyncIterator<R> extends AsyncIterator<R> {
226
+ next(): Promise<IteratorResult<R, undefined>>;
227
+ return(value?: any): Promise<IteratorResult<any>>;
228
+ }
229
+
230
+ /**
231
+ * A BYOB reader vended by a {@link ReadableStream}.
232
+ *
233
+ * @public
234
+ */
235
+ export declare class ReadableStreamBYOBReader {
236
+ constructor(stream: ReadableByteStream);
237
+ /**
238
+ * Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or
239
+ * the reader's lock is released before the stream finishes closing.
240
+ */
241
+ get closed(): Promise<undefined>;
242
+ /**
243
+ * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}.
244
+ */
245
+ cancel(reason?: any): Promise<void>;
246
+ /**
247
+ * Attempts to reads bytes into view, and returns a promise resolved with the result.
248
+ *
249
+ * If reading a chunk causes the queue to become empty, more data will be pulled from the underlying source.
250
+ */
251
+ read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamBYOBReadResult<T>>;
252
+ /**
253
+ * Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active.
254
+ * If the associated stream is errored when the lock is released, the reader will appear errored in the same way
255
+ * from now on; otherwise, the reader will appear closed.
256
+ *
257
+ * A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by
258
+ * the reader's {@link ReadableStreamBYOBReader.read | read()} method has not yet been settled. Attempting to
259
+ * do so will throw a `TypeError` and leave the reader locked to the stream.
260
+ */
261
+ releaseLock(): void;
262
+ }
263
+
264
+ /**
265
+ * A result returned by {@link ReadableStreamBYOBReader.read}.
266
+ *
267
+ * @public
268
+ */
269
+ export declare type ReadableStreamBYOBReadResult<T extends ArrayBufferView> = {
270
+ done: false;
271
+ value: T;
272
+ } | {
273
+ done: true;
274
+ value: T | undefined;
275
+ };
276
+
277
+ /**
278
+ * A pull-into request in a {@link ReadableByteStreamController}.
279
+ *
280
+ * @public
281
+ */
282
+ export declare class ReadableStreamBYOBRequest {
283
+ private constructor();
284
+ /**
285
+ * Returns the view for writing in to, or `null` if the BYOB request has already been responded to.
286
+ */
287
+ get view(): ArrayBufferView | null;
288
+ /**
289
+ * Indicates to the associated readable byte stream that `bytesWritten` bytes were written into
290
+ * {@link ReadableStreamBYOBRequest.view | view}, causing the result be surfaced to the consumer.
291
+ *
292
+ * After this method is called, {@link ReadableStreamBYOBRequest.view | view} will be transferred and no longer
293
+ * modifiable.
294
+ */
295
+ respond(bytesWritten: number): void;
296
+ /**
297
+ * Indicates to the associated readable byte stream that instead of writing into
298
+ * {@link ReadableStreamBYOBRequest.view | view}, the underlying byte source is providing a new `ArrayBufferView`,
299
+ * which will be given to the consumer of the readable byte stream.
300
+ *
301
+ * After this method is called, `view` will be transferred and no longer modifiable.
302
+ */
303
+ respondWithNewView(view: ArrayBufferView): void;
304
+ }
305
+
306
+ /**
307
+ * Allows control of a {@link ReadableStream | readable stream}'s state and internal queue.
308
+ *
309
+ * @public
310
+ */
311
+ export declare class ReadableStreamDefaultController<R> {
312
+ private constructor();
313
+ /**
314
+ * Returns the desired size to fill the controlled stream's internal queue. It can be negative, if the queue is
315
+ * over-full. An underlying source ought to use this information to determine when and how to apply backpressure.
316
+ */
317
+ get desiredSize(): number | null;
318
+ /**
319
+ * Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from
320
+ * the stream, but once those are read, the stream will become closed.
321
+ */
322
+ close(): void;
323
+ /**
324
+ * Enqueues the given chunk `chunk` in the controlled readable stream.
325
+ */
326
+ enqueue(chunk: R): void;
327
+ /**
328
+ * Errors the controlled readable stream, making all future interactions with it fail with the given error `e`.
329
+ */
330
+ error(e?: any): void;
331
+ }
332
+
333
+ /**
334
+ * A default reader vended by a {@link ReadableStream}.
335
+ *
336
+ * @public
337
+ */
338
+ export declare class ReadableStreamDefaultReader<R = any> {
339
+ constructor(stream: ReadableStream<R>);
340
+ /**
341
+ * Returns a promise that will be fulfilled when the stream becomes closed,
342
+ * or rejected if the stream ever errors or the reader's lock is released before the stream finishes closing.
343
+ */
344
+ get closed(): Promise<undefined>;
345
+ /**
346
+ * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}.
347
+ */
348
+ cancel(reason?: any): Promise<void>;
349
+ /**
350
+ * Returns a promise that allows access to the next chunk from the stream's internal queue, if available.
351
+ *
352
+ * If reading a chunk causes the queue to become empty, more data will be pulled from the underlying source.
353
+ */
354
+ read(): Promise<ReadableStreamDefaultReadResult<R>>;
355
+ /**
356
+ * Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active.
357
+ * If the associated stream is errored when the lock is released, the reader will appear errored in the same way
358
+ * from now on; otherwise, the reader will appear closed.
359
+ *
360
+ * A reader's lock cannot be released while it still has a pending read request, i.e., if a promise returned by
361
+ * the reader's {@link ReadableStreamDefaultReader.read | read()} method has not yet been settled. Attempting to
362
+ * do so will throw a `TypeError` and leave the reader locked to the stream.
363
+ */
364
+ releaseLock(): void;
365
+ }
366
+
367
+ /**
368
+ * A result returned by {@link ReadableStreamDefaultReader.read}.
369
+ *
370
+ * @public
371
+ */
372
+ export declare type ReadableStreamDefaultReadResult<T> = {
373
+ done: false;
374
+ value: T;
375
+ } | {
376
+ done: true;
377
+ value?: undefined;
378
+ };
379
+
380
+ /**
381
+ * Options for {@link ReadableStream.values | async iterating} a stream.
382
+ *
383
+ * @public
384
+ */
385
+ export declare interface ReadableStreamIteratorOptions {
386
+ preventCancel?: boolean;
387
+ }
388
+
389
+ /**
390
+ * A pair of a {@link ReadableStream | readable stream} and {@link WritableStream | writable stream} that can be passed
391
+ * to {@link ReadableStream.pipeThrough}.
392
+ *
393
+ * @public
394
+ */
395
+ export declare interface ReadableWritablePair<R, W> {
396
+ readable: ReadableStream<R>;
397
+ writable: WritableStream<W>;
398
+ }
399
+
400
+ /**
401
+ * Options for {@link ReadableStream.pipeTo | piping} a stream.
402
+ *
403
+ * @public
404
+ */
405
+ export declare interface StreamPipeOptions {
406
+ /**
407
+ * If set to true, {@link ReadableStream.pipeTo} will not abort the writable stream if the readable stream errors.
408
+ */
409
+ preventAbort?: boolean;
410
+ /**
411
+ * If set to true, {@link ReadableStream.pipeTo} will not cancel the readable stream if the writable stream closes
412
+ * or errors.
413
+ */
414
+ preventCancel?: boolean;
415
+ /**
416
+ * If set to true, {@link ReadableStream.pipeTo} will not close the writable stream if the readable stream closes.
417
+ */
418
+ preventClose?: boolean;
419
+ /**
420
+ * Can be set to an {@link AbortSignal} to allow aborting an ongoing pipe operation via the corresponding
421
+ * `AbortController`. In this case, the source readable stream will be canceled, and the destination writable stream
422
+ * aborted, unless the respective options `preventCancel` or `preventAbort` are set.
423
+ */
424
+ signal?: AbortSignal;
425
+ }
426
+
427
+ /**
428
+ * A transformer for constructing a {@link TransformStream}.
429
+ *
430
+ * @public
431
+ */
432
+ export declare interface Transformer<I = any, O = any> {
433
+ /**
434
+ * A function that is called immediately during creation of the {@link TransformStream}.
435
+ */
436
+ start?: TransformerStartCallback<O>;
437
+ /**
438
+ * A function called when a new chunk originally written to the writable side is ready to be transformed.
439
+ */
440
+ transform?: TransformerTransformCallback<I, O>;
441
+ /**
442
+ * A function called after all chunks written to the writable side have been transformed by successfully passing
443
+ * through {@link Transformer.transform | transform()}, and the writable side is about to be closed.
444
+ */
445
+ flush?: TransformerFlushCallback<O>;
446
+ readableType?: undefined;
447
+ writableType?: undefined;
448
+ }
449
+
450
+ /** @public */
451
+ export declare type TransformerFlushCallback<O> = (controller: TransformStreamDefaultController<O>) => void | PromiseLike<void>;
452
+
453
+ /** @public */
454
+ export declare type TransformerStartCallback<O> = (controller: TransformStreamDefaultController<O>) => void | PromiseLike<void>;
455
+
456
+ /** @public */
457
+ export declare type TransformerTransformCallback<I, O> = (chunk: I, controller: TransformStreamDefaultController<O>) => void | PromiseLike<void>;
458
+
459
+ /**
460
+ * A transform stream consists of a pair of streams: a {@link WritableStream | writable stream},
461
+ * known as its writable side, and a {@link ReadableStream | readable stream}, known as its readable side.
462
+ * In a manner specific to the transform stream in question, writes to the writable side result in new data being
463
+ * made available for reading from the readable side.
464
+ *
465
+ * @public
466
+ */
467
+ export declare class TransformStream<I = any, O = any> {
468
+ constructor(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>);
469
+ /**
470
+ * The readable side of the transform stream.
471
+ */
472
+ get readable(): ReadableStream<O>;
473
+ /**
474
+ * The writable side of the transform stream.
475
+ */
476
+ get writable(): WritableStream<I>;
477
+ }
478
+
479
+ /**
480
+ * Allows control of the {@link ReadableStream} and {@link WritableStream} of the associated {@link TransformStream}.
481
+ *
482
+ * @public
483
+ */
484
+ export declare class TransformStreamDefaultController<O> {
485
+ private constructor();
486
+ /**
487
+ * Returns the desired size to fill the readable side’s internal queue. It can be negative, if the queue is over-full.
488
+ */
489
+ get desiredSize(): number | null;
490
+ /**
491
+ * Enqueues the given chunk `chunk` in the readable side of the controlled transform stream.
492
+ */
493
+ enqueue(chunk: O): void;
494
+ /**
495
+ * Errors both the readable side and the writable side of the controlled transform stream, making all future
496
+ * interactions with it fail with the given error `e`. Any chunks queued for transformation will be discarded.
497
+ */
498
+ error(reason?: any): void;
499
+ /**
500
+ * Closes the readable side and errors the writable side of the controlled transform stream. This is useful when the
501
+ * transformer only needs to consume a portion of the chunks written to the writable side.
502
+ */
503
+ terminate(): void;
504
+ }
505
+
506
+ /**
507
+ * An underlying byte source for constructing a {@link ReadableStream}.
508
+ *
509
+ * @public
510
+ */
511
+ export declare interface UnderlyingByteSource {
512
+ /**
513
+ * {@inheritDoc UnderlyingSource.start}
514
+ */
515
+ start?: UnderlyingByteSourceStartCallback;
516
+ /**
517
+ * {@inheritDoc UnderlyingSource.pull}
518
+ */
519
+ pull?: UnderlyingByteSourcePullCallback;
520
+ /**
521
+ * {@inheritDoc UnderlyingSource.cancel}
522
+ */
523
+ cancel?: UnderlyingSourceCancelCallback;
524
+ /**
525
+ * Can be set to "bytes" to signal that the constructed {@link ReadableStream} is a readable byte stream.
526
+ * This ensures that the resulting {@link ReadableStream} will successfully be able to vend BYOB readers via its
527
+ * {@link ReadableStream.(getReader:1) | getReader()} method.
528
+ * It also affects the controller argument passed to the {@link UnderlyingByteSource.start | start()}
529
+ * and {@link UnderlyingByteSource.pull | pull()} methods.
530
+ */
531
+ type: 'bytes';
532
+ /**
533
+ * Can be set to a positive integer to cause the implementation to automatically allocate buffers for the
534
+ * underlying source code to write into. In this case, when a consumer is using a default reader, the stream
535
+ * implementation will automatically allocate an ArrayBuffer of the given size, so that
536
+ * {@link ReadableByteStreamController.byobRequest | controller.byobRequest} is always present,
537
+ * as if the consumer was using a BYOB reader.
538
+ */
539
+ autoAllocateChunkSize?: number;
540
+ }
541
+
542
+ /** @public */
543
+ export declare type UnderlyingByteSourcePullCallback = (controller: ReadableByteStreamController) => void | PromiseLike<void>;
544
+
545
+ /** @public */
546
+ export declare type UnderlyingByteSourceStartCallback = (controller: ReadableByteStreamController) => void | PromiseLike<void>;
547
+
548
+ /**
549
+ * An underlying sink for constructing a {@link WritableStream}.
550
+ *
551
+ * @public
552
+ */
553
+ export declare interface UnderlyingSink<W = any> {
554
+ /**
555
+ * A function that is called immediately during creation of the {@link WritableStream}.
556
+ */
557
+ start?: UnderlyingSinkStartCallback;
558
+ /**
559
+ * A function that is called when a new chunk of data is ready to be written to the underlying sink. The stream
560
+ * implementation guarantees that this function will be called only after previous writes have succeeded, and never
561
+ * before {@link UnderlyingSink.start | start()} has succeeded or after {@link UnderlyingSink.close | close()} or
562
+ * {@link UnderlyingSink.abort | abort()} have been called.
563
+ *
564
+ * This function is used to actually send the data to the resource presented by the underlying sink, for example by
565
+ * calling a lower-level API.
566
+ */
567
+ write?: UnderlyingSinkWriteCallback<W>;
568
+ /**
569
+ * A function that is called after the producer signals, via
570
+ * {@link WritableStreamDefaultWriter.close | writer.close()}, that they are done writing chunks to the stream, and
571
+ * subsequently all queued-up writes have successfully completed.
572
+ *
573
+ * This function can perform any actions necessary to finalize or flush writes to the underlying sink, and release
574
+ * access to any held resources.
575
+ */
576
+ close?: UnderlyingSinkCloseCallback;
577
+ /**
578
+ * A function that is called after the producer signals, via {@link WritableStream.abort | stream.abort()} or
579
+ * {@link WritableStreamDefaultWriter.abort | writer.abort()}, that they wish to abort the stream. It takes as its
580
+ * argument the same value as was passed to those methods by the producer.
581
+ *
582
+ * Writable streams can additionally be aborted under certain conditions during piping; see the definition of the
583
+ * {@link ReadableStream.pipeTo | pipeTo()} method for more details.
584
+ *
585
+ * This function can clean up any held resources, much like {@link UnderlyingSink.close | close()}, but perhaps with
586
+ * some custom handling.
587
+ */
588
+ abort?: UnderlyingSinkAbortCallback;
589
+ type?: undefined;
590
+ }
591
+
592
+ /** @public */
593
+ export declare type UnderlyingSinkAbortCallback = (reason: any) => void | PromiseLike<void>;
594
+
595
+ /** @public */
596
+ export declare type UnderlyingSinkCloseCallback = () => void | PromiseLike<void>;
597
+
598
+ /** @public */
599
+ export declare type UnderlyingSinkStartCallback = (controller: WritableStreamDefaultController) => void | PromiseLike<void>;
600
+
601
+ /** @public */
602
+ export declare type UnderlyingSinkWriteCallback<W> = (chunk: W, controller: WritableStreamDefaultController) => void | PromiseLike<void>;
603
+
604
+ /**
605
+ * An underlying source for constructing a {@link ReadableStream}.
606
+ *
607
+ * @public
608
+ */
609
+ export declare interface UnderlyingSource<R = any> {
610
+ /**
611
+ * A function that is called immediately during creation of the {@link ReadableStream}.
612
+ */
613
+ start?: UnderlyingSourceStartCallback<R>;
614
+ /**
615
+ * A function that is called whenever the stream’s internal queue of chunks becomes not full,
616
+ * i.e. whenever the queue’s desired size becomes positive. Generally, it will be called repeatedly
617
+ * until the queue reaches its high water mark (i.e. until the desired size becomes non-positive).
618
+ */
619
+ pull?: UnderlyingSourcePullCallback<R>;
620
+ /**
621
+ * A function that is called whenever the consumer cancels the stream, via
622
+ * {@link ReadableStream.cancel | stream.cancel()},
623
+ * {@link ReadableStreamDefaultReader.cancel | defaultReader.cancel()}, or
624
+ * {@link ReadableStreamBYOBReader.cancel | byobReader.cancel()}.
625
+ * It takes as its argument the same value as was passed to those methods by the consumer.
626
+ */
627
+ cancel?: UnderlyingSourceCancelCallback;
628
+ type?: undefined;
629
+ }
630
+
631
+ /** @public */
632
+ export declare type UnderlyingSourceCancelCallback = (reason: any) => void | PromiseLike<void>;
633
+
634
+ /** @public */
635
+ export declare type UnderlyingSourcePullCallback<R> = (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
636
+
637
+ /** @public */
638
+ export declare type UnderlyingSourceStartCallback<R> = (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
639
+
640
+ /**
641
+ * A writable stream represents a destination for data, into which you can write.
642
+ *
643
+ * @public
644
+ */
645
+ export declare class WritableStream<W = any> {
646
+ constructor(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>);
647
+ /**
648
+ * Returns whether or not the writable stream is locked to a writer.
649
+ */
650
+ get locked(): boolean;
651
+ /**
652
+ * Aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be
653
+ * immediately moved to an errored state, with any queued-up writes discarded. This will also execute any abort
654
+ * mechanism of the underlying sink.
655
+ *
656
+ * The returned promise will fulfill if the stream shuts down successfully, or reject if the underlying sink signaled
657
+ * that there was an error doing so. Additionally, it will reject with a `TypeError` (without attempting to cancel
658
+ * the stream) if the stream is currently locked.
659
+ */
660
+ abort(reason?: any): Promise<void>;
661
+ /**
662
+ * Closes the stream. The underlying sink will finish processing any previously-written chunks, before invoking its
663
+ * close behavior. During this time any further attempts to write will fail (without erroring the stream).
664
+ *
665
+ * The method returns a promise that will fulfill if all remaining chunks are successfully written and the stream
666
+ * successfully closes, or rejects if an error is encountered during this process. Additionally, it will reject with
667
+ * a `TypeError` (without attempting to cancel the stream) if the stream is currently locked.
668
+ */
669
+ close(): Promise<undefined>;
670
+ /**
671
+ * Creates a {@link WritableStreamDefaultWriter | writer} and locks the stream to the new writer. While the stream
672
+ * is locked, no other writer can be acquired until this one is released.
673
+ *
674
+ * This functionality is especially useful for creating abstractions that desire the ability to write to a stream
675
+ * without interruption or interleaving. By getting a writer for the stream, you can ensure nobody else can write at
676
+ * the same time, which would cause the resulting written data to be unpredictable and probably useless.
677
+ */
678
+ getWriter(): WritableStreamDefaultWriter<W>;
679
+ }
680
+
681
+ /**
682
+ * Allows control of a {@link WritableStream | writable stream}'s state and internal queue.
683
+ *
684
+ * @public
685
+ */
686
+ export declare class WritableStreamDefaultController<W = any> {
687
+ private constructor();
688
+ /**
689
+ * The reason which was passed to `WritableStream.abort(reason)` when the stream was aborted.
690
+ *
691
+ * @deprecated
692
+ * This property has been removed from the specification, see https://github.com/whatwg/streams/pull/1177.
693
+ * Use {@link WritableStreamDefaultController.signal}'s `reason` instead.
694
+ */
695
+ get abortReason(): any;
696
+ /**
697
+ * An `AbortSignal` that can be used to abort the pending write or close operation when the stream is aborted.
698
+ */
699
+ get signal(): AbortSignal;
700
+ /**
701
+ * Closes the controlled writable stream, making all future interactions with it fail with the given error `e`.
702
+ *
703
+ * This method is rarely used, since usually it suffices to return a rejected promise from one of the underlying
704
+ * sink's methods. However, it can be useful for suddenly shutting down a stream in response to an event outside the
705
+ * normal lifecycle of interactions with the underlying sink.
706
+ */
707
+ error(e?: any): void;
708
+ }
709
+
710
+ /**
711
+ * A default writer vended by a {@link WritableStream}.
712
+ *
713
+ * @public
714
+ */
715
+ export declare class WritableStreamDefaultWriter<W = any> {
716
+ constructor(stream: WritableStream<W>);
717
+ /**
718
+ * Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or
719
+ * the writer’s lock is released before the stream finishes closing.
720
+ */
721
+ get closed(): Promise<undefined>;
722
+ /**
723
+ * Returns the desired size to fill the stream’s internal queue. It can be negative, if the queue is over-full.
724
+ * A producer can use this information to determine the right amount of data to write.
725
+ *
726
+ * It will be `null` if the stream cannot be successfully written to (due to either being errored, or having an abort
727
+ * queued up). It will return zero if the stream is closed. And the getter will throw an exception if invoked when
728
+ * the writer’s lock is released.
729
+ */
730
+ get desiredSize(): number | null;
731
+ /**
732
+ * Returns a promise that will be fulfilled when the desired size to fill the stream’s internal queue transitions
733
+ * from non-positive to positive, signaling that it is no longer applying backpressure. Once the desired size dips
734
+ * back to zero or below, the getter will return a new promise that stays pending until the next transition.
735
+ *
736
+ * If the stream becomes errored or aborted, or the writer’s lock is released, the returned promise will become
737
+ * rejected.
738
+ */
739
+ get ready(): Promise<undefined>;
740
+ /**
741
+ * If the reader is active, behaves the same as {@link WritableStream.abort | stream.abort(reason)}.
742
+ */
743
+ abort(reason?: any): Promise<void>;
744
+ /**
745
+ * If the reader is active, behaves the same as {@link WritableStream.close | stream.close()}.
746
+ */
747
+ close(): Promise<void>;
748
+ /**
749
+ * Releases the writer’s lock on the corresponding stream. After the lock is released, the writer is no longer active.
750
+ * If the associated stream is errored when the lock is released, the writer will appear errored in the same way from
751
+ * now on; otherwise, the writer will appear closed.
752
+ *
753
+ * Note that the lock can still be released even if some ongoing writes have not yet finished (i.e. even if the
754
+ * promises returned from previous calls to {@link WritableStreamDefaultWriter.write | write()} have not yet settled).
755
+ * It’s not necessary to hold the lock on the writer for the duration of the write; the lock instead simply prevents
756
+ * other producers from writing in an interleaved manner.
757
+ */
758
+ releaseLock(): void;
759
+ /**
760
+ * Writes the given chunk to the writable stream, by waiting until any previous writes have finished successfully,
761
+ * and then sending the chunk to the underlying sink's {@link UnderlyingSink.write | write()} method. It will return
762
+ * a promise that fulfills with undefined upon a successful write, or rejects if the write fails or stream becomes
763
+ * errored before the writing process is initiated.
764
+ *
765
+ * Note that what "success" means is up to the underlying sink; it might indicate simply that the chunk has been
766
+ * accepted, and not necessarily that it is safely saved to its ultimate destination.
767
+ */
768
+ write(chunk: W): Promise<void>;
769
+ }
770
+
771
+ export { }