@slicemachine/manager 0.0.0-alpha.dev-new-release-process.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (902) hide show
  1. package/README.md +85 -0
  2. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs +68 -0
  3. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs.map +1 -0
  4. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js +68 -0
  5. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js.map +1 -0
  6. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs +43 -0
  7. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs.map +1 -0
  8. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js +43 -0
  9. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js.map +1 -0
  10. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs +804 -0
  11. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs.map +1 -0
  12. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js +804 -0
  13. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js.map +1 -0
  14. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs +354 -0
  15. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs.map +1 -0
  16. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js +354 -0
  17. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js.map +1 -0
  18. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs +14 -0
  19. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs.map +1 -0
  20. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js +14 -0
  21. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js.map +1 -0
  22. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs +65 -0
  23. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs.map +1 -0
  24. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js +65 -0
  25. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js.map +1 -0
  26. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.cjs +14 -0
  27. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.cjs.map +1 -0
  28. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.js +14 -0
  29. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.js.map +1 -0
  30. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.cjs +13 -0
  31. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.cjs.map +1 -0
  32. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.js +13 -0
  33. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.js.map +1 -0
  34. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.cjs +91 -0
  35. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.cjs.map +1 -0
  36. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.js +91 -0
  37. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.js.map +1 -0
  38. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.cjs +31 -0
  39. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.cjs.map +1 -0
  40. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.js +31 -0
  41. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.js.map +1 -0
  42. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.cjs +7 -0
  43. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.cjs.map +1 -0
  44. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.js +7 -0
  45. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.js.map +1 -0
  46. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.cjs +23 -0
  47. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.cjs.map +1 -0
  48. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.js +23 -0
  49. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.js.map +1 -0
  50. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.cjs +132 -0
  51. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.cjs.map +1 -0
  52. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.js +132 -0
  53. package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.js.map +1 -0
  54. package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.cjs +135 -0
  55. package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.cjs.map +1 -0
  56. package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.js +136 -0
  57. package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.js.map +1 -0
  58. package/dist/_node_modules/common-tags/es/commaLists/commaLists.cjs +7 -0
  59. package/dist/_node_modules/common-tags/es/commaLists/commaLists.cjs.map +1 -0
  60. package/dist/_node_modules/common-tags/es/commaLists/commaLists.js +6 -0
  61. package/dist/_node_modules/common-tags/es/commaLists/commaLists.js.map +1 -0
  62. package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.cjs +7 -0
  63. package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.cjs.map +1 -0
  64. package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.js +6 -0
  65. package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.js.map +1 -0
  66. package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.cjs +7 -0
  67. package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.cjs.map +1 -0
  68. package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.js +6 -0
  69. package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.js.map +1 -0
  70. package/dist/_node_modules/common-tags/es/html/html.cjs +9 -0
  71. package/dist/_node_modules/common-tags/es/html/html.cjs.map +1 -0
  72. package/dist/_node_modules/common-tags/es/html/html.js +8 -0
  73. package/dist/_node_modules/common-tags/es/html/html.js.map +1 -0
  74. package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.cjs +32 -0
  75. package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.cjs.map +1 -0
  76. package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.js +33 -0
  77. package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.js.map +1 -0
  78. package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.cjs +7 -0
  79. package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.cjs.map +1 -0
  80. package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.js +6 -0
  81. package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.js.map +1 -0
  82. package/dist/_node_modules/common-tags/es/oneLine/oneLine.cjs +6 -0
  83. package/dist/_node_modules/common-tags/es/oneLine/oneLine.cjs.map +1 -0
  84. package/dist/_node_modules/common-tags/es/oneLine/oneLine.js +5 -0
  85. package/dist/_node_modules/common-tags/es/oneLine/oneLine.js.map +1 -0
  86. package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.cjs +7 -0
  87. package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.cjs.map +1 -0
  88. package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.js +6 -0
  89. package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.js.map +1 -0
  90. package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.cjs +7 -0
  91. package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.cjs.map +1 -0
  92. package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.js +6 -0
  93. package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.js.map +1 -0
  94. package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.cjs +7 -0
  95. package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.cjs.map +1 -0
  96. package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.js +6 -0
  97. package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.js.map +1 -0
  98. package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.cjs +7 -0
  99. package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.cjs.map +1 -0
  100. package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.js +6 -0
  101. package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.js.map +1 -0
  102. package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.cjs +6 -0
  103. package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.cjs.map +1 -0
  104. package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.js +5 -0
  105. package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.js.map +1 -0
  106. package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.cjs +19 -0
  107. package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.cjs.map +1 -0
  108. package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js +20 -0
  109. package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js.map +1 -0
  110. package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.cjs +13 -0
  111. package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.cjs.map +1 -0
  112. package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.js +14 -0
  113. package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.js.map +1 -0
  114. package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.cjs +17 -0
  115. package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.cjs.map +1 -0
  116. package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js +18 -0
  117. package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js.map +1 -0
  118. package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.cjs +9 -0
  119. package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.cjs.map +1 -0
  120. package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.js +8 -0
  121. package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.js.map +1 -0
  122. package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.cjs +17 -0
  123. package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.cjs.map +1 -0
  124. package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.js +18 -0
  125. package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.js.map +1 -0
  126. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs +8 -0
  127. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs.map +1 -0
  128. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js +9 -0
  129. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js.map +1 -0
  130. package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.cjs +35 -0
  131. package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.cjs.map +1 -0
  132. package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.js +36 -0
  133. package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.js.map +1 -0
  134. package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.cjs +6 -0
  135. package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.cjs.map +1 -0
  136. package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.js +5 -0
  137. package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.js.map +1 -0
  138. package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.cjs +21 -0
  139. package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.cjs.map +1 -0
  140. package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.js +22 -0
  141. package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.js.map +1 -0
  142. package/dist/_node_modules/cross-spawn/index.cjs +30 -0
  143. package/dist/_node_modules/cross-spawn/index.cjs.map +1 -0
  144. package/dist/_node_modules/cross-spawn/index.js +31 -0
  145. package/dist/_node_modules/cross-spawn/index.js.map +1 -0
  146. package/dist/_node_modules/cross-spawn/lib/enoent.cjs +47 -0
  147. package/dist/_node_modules/cross-spawn/lib/enoent.cjs.map +1 -0
  148. package/dist/_node_modules/cross-spawn/lib/enoent.js +47 -0
  149. package/dist/_node_modules/cross-spawn/lib/enoent.js.map +1 -0
  150. package/dist/_node_modules/cross-spawn/lib/parse.cjs +64 -0
  151. package/dist/_node_modules/cross-spawn/lib/parse.cjs.map +1 -0
  152. package/dist/_node_modules/cross-spawn/lib/parse.js +64 -0
  153. package/dist/_node_modules/cross-spawn/lib/parse.js.map +1 -0
  154. package/dist/_node_modules/cross-spawn/lib/util/escape.cjs +22 -0
  155. package/dist/_node_modules/cross-spawn/lib/util/escape.cjs.map +1 -0
  156. package/dist/_node_modules/cross-spawn/lib/util/escape.js +23 -0
  157. package/dist/_node_modules/cross-spawn/lib/util/escape.js.map +1 -0
  158. package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs +21 -0
  159. package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -0
  160. package/dist/_node_modules/cross-spawn/lib/util/readShebang.js +21 -0
  161. package/dist/_node_modules/cross-spawn/lib/util/readShebang.js.map +1 -0
  162. package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs +42 -0
  163. package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -0
  164. package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js +42 -0
  165. package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -0
  166. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs +41 -0
  167. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +1 -0
  168. package/dist/_node_modules/data-uri-to-buffer/dist/index.js +41 -0
  169. package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
  170. package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.cjs +43 -0
  171. package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.cjs.map +1 -0
  172. package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.js +43 -0
  173. package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.js.map +1 -0
  174. package/dist/_node_modules/execa/_node_modules/get-stream/index.cjs +59 -0
  175. package/dist/_node_modules/execa/_node_modules/get-stream/index.cjs.map +1 -0
  176. package/dist/_node_modules/execa/_node_modules/get-stream/index.js +60 -0
  177. package/dist/_node_modules/execa/_node_modules/get-stream/index.js.map +1 -0
  178. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.cjs +275 -0
  179. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.cjs.map +1 -0
  180. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.js +275 -0
  181. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.js.map +1 -0
  182. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.cjs +53 -0
  183. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.cjs.map +1 -0
  184. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.js +53 -0
  185. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.js.map +1 -0
  186. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.cjs +18 -0
  187. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.cjs.map +1 -0
  188. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.js +18 -0
  189. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.js.map +1 -0
  190. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.cjs +27 -0
  191. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.cjs.map +1 -0
  192. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.js +27 -0
  193. package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.js.map +1 -0
  194. package/dist/_node_modules/execa/_node_modules/is-stream/index.cjs +11 -0
  195. package/dist/_node_modules/execa/_node_modules/is-stream/index.cjs.map +1 -0
  196. package/dist/_node_modules/execa/_node_modules/is-stream/index.js +11 -0
  197. package/dist/_node_modules/execa/_node_modules/is-stream/index.js.map +1 -0
  198. package/dist/_node_modules/execa/_node_modules/mimic-fn/index.cjs +46 -0
  199. package/dist/_node_modules/execa/_node_modules/mimic-fn/index.cjs.map +1 -0
  200. package/dist/_node_modules/execa/_node_modules/mimic-fn/index.js +47 -0
  201. package/dist/_node_modules/execa/_node_modules/mimic-fn/index.js.map +1 -0
  202. package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs +34 -0
  203. package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs.map +1 -0
  204. package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js +34 -0
  205. package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js.map +1 -0
  206. package/dist/_node_modules/execa/_node_modules/onetime/index.cjs +32 -0
  207. package/dist/_node_modules/execa/_node_modules/onetime/index.cjs.map +1 -0
  208. package/dist/_node_modules/execa/_node_modules/onetime/index.js +33 -0
  209. package/dist/_node_modules/execa/_node_modules/onetime/index.js.map +1 -0
  210. package/dist/_node_modules/execa/_node_modules/path-key/index.cjs +13 -0
  211. package/dist/_node_modules/execa/_node_modules/path-key/index.cjs.map +1 -0
  212. package/dist/_node_modules/execa/_node_modules/path-key/index.js +14 -0
  213. package/dist/_node_modules/execa/_node_modules/path-key/index.js.map +1 -0
  214. package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.cjs +14 -0
  215. package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.cjs.map +1 -0
  216. package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.js +15 -0
  217. package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.js.map +1 -0
  218. package/dist/_node_modules/execa/index.cjs +147 -0
  219. package/dist/_node_modules/execa/index.cjs.map +1 -0
  220. package/dist/_node_modules/execa/index.js +147 -0
  221. package/dist/_node_modules/execa/index.js.map +1 -0
  222. package/dist/_node_modules/execa/lib/command.cjs +37 -0
  223. package/dist/_node_modules/execa/lib/command.cjs.map +1 -0
  224. package/dist/_node_modules/execa/lib/command.js +37 -0
  225. package/dist/_node_modules/execa/lib/command.js.map +1 -0
  226. package/dist/_node_modules/execa/lib/error.cjs +73 -0
  227. package/dist/_node_modules/execa/lib/error.cjs.map +1 -0
  228. package/dist/_node_modules/execa/lib/error.js +73 -0
  229. package/dist/_node_modules/execa/lib/error.js.map +1 -0
  230. package/dist/_node_modules/execa/lib/kill.cjs +80 -0
  231. package/dist/_node_modules/execa/lib/kill.cjs.map +1 -0
  232. package/dist/_node_modules/execa/lib/kill.js +80 -0
  233. package/dist/_node_modules/execa/lib/kill.js.map +1 -0
  234. package/dist/_node_modules/execa/lib/pipe.cjs +37 -0
  235. package/dist/_node_modules/execa/lib/pipe.cjs.map +1 -0
  236. package/dist/_node_modules/execa/lib/pipe.js +37 -0
  237. package/dist/_node_modules/execa/lib/pipe.js.map +1 -0
  238. package/dist/_node_modules/execa/lib/promise.cjs +30 -0
  239. package/dist/_node_modules/execa/lib/promise.cjs.map +1 -0
  240. package/dist/_node_modules/execa/lib/promise.js +30 -0
  241. package/dist/_node_modules/execa/lib/promise.js.map +1 -0
  242. package/dist/_node_modules/execa/lib/stdio.cjs +26 -0
  243. package/dist/_node_modules/execa/lib/stdio.cjs.map +1 -0
  244. package/dist/_node_modules/execa/lib/stdio.js +26 -0
  245. package/dist/_node_modules/execa/lib/stdio.js.map +1 -0
  246. package/dist/_node_modules/execa/lib/stream.cjs +81 -0
  247. package/dist/_node_modules/execa/lib/stream.cjs.map +1 -0
  248. package/dist/_node_modules/execa/lib/stream.js +81 -0
  249. package/dist/_node_modules/execa/lib/stream.js.map +1 -0
  250. package/dist/_node_modules/execa/lib/verbose.cjs +20 -0
  251. package/dist/_node_modules/execa/lib/verbose.cjs.map +1 -0
  252. package/dist/_node_modules/execa/lib/verbose.js +20 -0
  253. package/dist/_node_modules/execa/lib/verbose.js.map +1 -0
  254. package/dist/_node_modules/fetch-blob/file.cjs +61 -0
  255. package/dist/_node_modules/fetch-blob/file.cjs.map +1 -0
  256. package/dist/_node_modules/fetch-blob/file.js +61 -0
  257. package/dist/_node_modules/fetch-blob/file.js.map +1 -0
  258. package/dist/_node_modules/fetch-blob/index.cjs +223 -0
  259. package/dist/_node_modules/fetch-blob/index.cjs.map +1 -0
  260. package/dist/_node_modules/fetch-blob/index.js +223 -0
  261. package/dist/_node_modules/fetch-blob/index.js.map +1 -0
  262. package/dist/_node_modules/fetch-blob/streams.cjs +43 -0
  263. package/dist/_node_modules/fetch-blob/streams.cjs.map +1 -0
  264. package/dist/_node_modules/fetch-blob/streams.js +42 -0
  265. package/dist/_node_modules/fetch-blob/streams.js.map +1 -0
  266. package/dist/_node_modules/file-type/core.cjs +1234 -0
  267. package/dist/_node_modules/file-type/core.cjs.map +1 -0
  268. package/dist/_node_modules/file-type/core.js +1234 -0
  269. package/dist/_node_modules/file-type/core.js.map +1 -0
  270. package/dist/_node_modules/file-type/supported.cjs +308 -0
  271. package/dist/_node_modules/file-type/supported.cjs.map +1 -0
  272. package/dist/_node_modules/file-type/supported.js +308 -0
  273. package/dist/_node_modules/file-type/supported.js.map +1 -0
  274. package/dist/_node_modules/file-type/util.cjs +27 -0
  275. package/dist/_node_modules/file-type/util.cjs.map +1 -0
  276. package/dist/_node_modules/file-type/util.js +27 -0
  277. package/dist/_node_modules/file-type/util.js.map +1 -0
  278. package/dist/_node_modules/formdata-polyfill/esm.min.cjs +116 -0
  279. package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +1 -0
  280. package/dist/_node_modules/formdata-polyfill/esm.min.js +116 -0
  281. package/dist/_node_modules/formdata-polyfill/esm.min.js.map +1 -0
  282. package/dist/_node_modules/fp-ts/es6/Either.cjs +18 -0
  283. package/dist/_node_modules/fp-ts/es6/Either.cjs.map +1 -0
  284. package/dist/_node_modules/fp-ts/es6/Either.js +18 -0
  285. package/dist/_node_modules/fp-ts/es6/Either.js.map +1 -0
  286. package/dist/_node_modules/fp-ts/es6/function.cjs +44 -0
  287. package/dist/_node_modules/fp-ts/es6/function.cjs.map +1 -0
  288. package/dist/_node_modules/fp-ts/es6/function.js +44 -0
  289. package/dist/_node_modules/fp-ts/es6/function.js.map +1 -0
  290. package/dist/_node_modules/fp-ts/es6/internal.cjs +18 -0
  291. package/dist/_node_modules/fp-ts/es6/internal.cjs.map +1 -0
  292. package/dist/_node_modules/fp-ts/es6/internal.js +18 -0
  293. package/dist/_node_modules/fp-ts/es6/internal.js.map +1 -0
  294. package/dist/_node_modules/get-port/index.cjs +113 -0
  295. package/dist/_node_modules/get-port/index.cjs.map +1 -0
  296. package/dist/_node_modules/get-port/index.js +114 -0
  297. package/dist/_node_modules/get-port/index.js.map +1 -0
  298. package/dist/_node_modules/isexe/index.cjs +56 -0
  299. package/dist/_node_modules/isexe/index.cjs.map +1 -0
  300. package/dist/_node_modules/isexe/index.js +56 -0
  301. package/dist/_node_modules/isexe/index.js.map +1 -0
  302. package/dist/_node_modules/isexe/mode.cjs +40 -0
  303. package/dist/_node_modules/isexe/mode.cjs.map +1 -0
  304. package/dist/_node_modules/isexe/mode.js +40 -0
  305. package/dist/_node_modules/isexe/mode.js.map +1 -0
  306. package/dist/_node_modules/isexe/windows.cjs +47 -0
  307. package/dist/_node_modules/isexe/windows.cjs.map +1 -0
  308. package/dist/_node_modules/isexe/windows.js +47 -0
  309. package/dist/_node_modules/isexe/windows.js.map +1 -0
  310. package/dist/_node_modules/merge-stream/index.cjs +39 -0
  311. package/dist/_node_modules/merge-stream/index.cjs.map +1 -0
  312. package/dist/_node_modules/merge-stream/index.js +40 -0
  313. package/dist/_node_modules/merge-stream/index.js.map +1 -0
  314. package/dist/_node_modules/node-domexception/index.cjs +11 -0
  315. package/dist/_node_modules/node-domexception/index.cjs.map +1 -0
  316. package/dist/_node_modules/node-domexception/index.js +10 -0
  317. package/dist/_node_modules/node-domexception/index.js.map +1 -0
  318. package/dist/_node_modules/node-fetch/src/body.cjs +262 -0
  319. package/dist/_node_modules/node-fetch/src/body.cjs.map +1 -0
  320. package/dist/_node_modules/node-fetch/src/body.js +262 -0
  321. package/dist/_node_modules/node-fetch/src/body.js.map +1 -0
  322. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs +10 -0
  323. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +1 -0
  324. package/dist/_node_modules/node-fetch/src/errors/abort-error.js +10 -0
  325. package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +1 -0
  326. package/dist/_node_modules/node-fetch/src/errors/base.cjs +17 -0
  327. package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +1 -0
  328. package/dist/_node_modules/node-fetch/src/errors/base.js +17 -0
  329. package/dist/_node_modules/node-fetch/src/errors/base.js.map +1 -0
  330. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs +19 -0
  331. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +1 -0
  332. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js +19 -0
  333. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +1 -0
  334. package/dist/_node_modules/node-fetch/src/headers.cjs +190 -0
  335. package/dist/_node_modules/node-fetch/src/headers.cjs.map +1 -0
  336. package/dist/_node_modules/node-fetch/src/headers.js +190 -0
  337. package/dist/_node_modules/node-fetch/src/headers.js.map +1 -0
  338. package/dist/_node_modules/node-fetch/src/index.cjs +292 -0
  339. package/dist/_node_modules/node-fetch/src/index.cjs.map +1 -0
  340. package/dist/_node_modules/node-fetch/src/index.js +292 -0
  341. package/dist/_node_modules/node-fetch/src/index.js.map +1 -0
  342. package/dist/_node_modules/node-fetch/src/request.cjs +206 -0
  343. package/dist/_node_modules/node-fetch/src/request.cjs.map +1 -0
  344. package/dist/_node_modules/node-fetch/src/request.js +206 -0
  345. package/dist/_node_modules/node-fetch/src/request.js.map +1 -0
  346. package/dist/_node_modules/node-fetch/src/response.cjs +122 -0
  347. package/dist/_node_modules/node-fetch/src/response.cjs.map +1 -0
  348. package/dist/_node_modules/node-fetch/src/response.js +123 -0
  349. package/dist/_node_modules/node-fetch/src/response.js.map +1 -0
  350. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs +12 -0
  351. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +1 -0
  352. package/dist/_node_modules/node-fetch/src/utils/get-search.js +12 -0
  353. package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +1 -0
  354. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs +8 -0
  355. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs.map +1 -0
  356. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js +8 -0
  357. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js.map +1 -0
  358. package/dist/_node_modules/node-fetch/src/utils/is.cjs +28 -0
  359. package/dist/_node_modules/node-fetch/src/utils/is.cjs.map +1 -0
  360. package/dist/_node_modules/node-fetch/src/utils/is.js +28 -0
  361. package/dist/_node_modules/node-fetch/src/utils/is.js.map +1 -0
  362. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs +356 -0
  363. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +1 -0
  364. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js +356 -0
  365. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +1 -0
  366. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs +149 -0
  367. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +1 -0
  368. package/dist/_node_modules/node-fetch/src/utils/referrer.js +149 -0
  369. package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +1 -0
  370. package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.cjs +89 -0
  371. package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.cjs.map +1 -0
  372. package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.js +90 -0
  373. package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.js.map +1 -0
  374. package/dist/_node_modules/p-limit/index.cjs +53 -0
  375. package/dist/_node_modules/p-limit/index.cjs.map +1 -0
  376. package/dist/_node_modules/p-limit/index.js +54 -0
  377. package/dist/_node_modules/p-limit/index.js.map +1 -0
  378. package/dist/_node_modules/path-key/index.cjs +16 -0
  379. package/dist/_node_modules/path-key/index.cjs.map +1 -0
  380. package/dist/_node_modules/path-key/index.js +16 -0
  381. package/dist/_node_modules/path-key/index.js.map +1 -0
  382. package/dist/_node_modules/peek-readable/lib/EndOfFileStream.cjs +11 -0
  383. package/dist/_node_modules/peek-readable/lib/EndOfFileStream.cjs.map +1 -0
  384. package/dist/_node_modules/peek-readable/lib/EndOfFileStream.js +11 -0
  385. package/dist/_node_modules/peek-readable/lib/EndOfFileStream.js.map +1 -0
  386. package/dist/_node_modules/r19/dist/R19Error.cjs +25 -0
  387. package/dist/_node_modules/r19/dist/R19Error.cjs.map +1 -0
  388. package/dist/_node_modules/r19/dist/R19Error.js +25 -0
  389. package/dist/_node_modules/r19/dist/R19Error.js.map +1 -0
  390. package/dist/_node_modules/r19/dist/client/createRPCClient.cjs +90 -0
  391. package/dist/_node_modules/r19/dist/client/createRPCClient.cjs.map +1 -0
  392. package/dist/_node_modules/r19/dist/client/createRPCClient.js +90 -0
  393. package/dist/_node_modules/r19/dist/client/createRPCClient.js.map +1 -0
  394. package/dist/_node_modules/r19/dist/createRPCMiddleware.cjs +36 -0
  395. package/dist/_node_modules/r19/dist/createRPCMiddleware.cjs.map +1 -0
  396. package/dist/_node_modules/r19/dist/createRPCMiddleware.js +36 -0
  397. package/dist/_node_modules/r19/dist/createRPCMiddleware.js.map +1 -0
  398. package/dist/_node_modules/r19/dist/handleRPCRequest.cjs +121 -0
  399. package/dist/_node_modules/r19/dist/handleRPCRequest.cjs.map +1 -0
  400. package/dist/_node_modules/r19/dist/handleRPCRequest.js +121 -0
  401. package/dist/_node_modules/r19/dist/handleRPCRequest.js.map +1 -0
  402. package/dist/_node_modules/r19/dist/lib/isErrorLike.cjs +7 -0
  403. package/dist/_node_modules/r19/dist/lib/isErrorLike.cjs.map +1 -0
  404. package/dist/_node_modules/r19/dist/lib/isErrorLike.js +7 -0
  405. package/dist/_node_modules/r19/dist/lib/isErrorLike.js.map +1 -0
  406. package/dist/_node_modules/r19/dist/lib/isPlainObject.cjs +11 -0
  407. package/dist/_node_modules/r19/dist/lib/isPlainObject.cjs.map +1 -0
  408. package/dist/_node_modules/r19/dist/lib/isPlainObject.js +11 -0
  409. package/dist/_node_modules/r19/dist/lib/isPlainObject.js.map +1 -0
  410. package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.cjs +8 -0
  411. package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.cjs.map +1 -0
  412. package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.js +8 -0
  413. package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.js.map +1 -0
  414. package/dist/_node_modules/r19/dist/lib/replaceLeaves.cjs +28 -0
  415. package/dist/_node_modules/r19/dist/lib/replaceLeaves.cjs.map +1 -0
  416. package/dist/_node_modules/r19/dist/lib/replaceLeaves.js +28 -0
  417. package/dist/_node_modules/r19/dist/lib/replaceLeaves.js.map +1 -0
  418. package/dist/_node_modules/r19/dist/proceduresFromInstance.cjs +33 -0
  419. package/dist/_node_modules/r19/dist/proceduresFromInstance.cjs.map +1 -0
  420. package/dist/_node_modules/r19/dist/proceduresFromInstance.js +33 -0
  421. package/dist/_node_modules/r19/dist/proceduresFromInstance.js.map +1 -0
  422. package/dist/_node_modules/shebang-command/index.cjs +18 -0
  423. package/dist/_node_modules/shebang-command/index.cjs.map +1 -0
  424. package/dist/_node_modules/shebang-command/index.js +18 -0
  425. package/dist/_node_modules/shebang-command/index.js.map +1 -0
  426. package/dist/_node_modules/shebang-regex/index.cjs +5 -0
  427. package/dist/_node_modules/shebang-regex/index.cjs.map +1 -0
  428. package/dist/_node_modules/shebang-regex/index.js +5 -0
  429. package/dist/_node_modules/shebang-regex/index.js.map +1 -0
  430. package/dist/_node_modules/signal-exit/index.cjs +150 -0
  431. package/dist/_node_modules/signal-exit/index.cjs.map +1 -0
  432. package/dist/_node_modules/signal-exit/index.js +151 -0
  433. package/dist/_node_modules/signal-exit/index.js.map +1 -0
  434. package/dist/_node_modules/signal-exit/signals.cjs +45 -0
  435. package/dist/_node_modules/signal-exit/signals.cjs.map +1 -0
  436. package/dist/_node_modules/signal-exit/signals.js +45 -0
  437. package/dist/_node_modules/signal-exit/signals.js.map +1 -0
  438. package/dist/_node_modules/strtok3/lib/AbstractTokenizer.cjs +98 -0
  439. package/dist/_node_modules/strtok3/lib/AbstractTokenizer.cjs.map +1 -0
  440. package/dist/_node_modules/strtok3/lib/AbstractTokenizer.js +98 -0
  441. package/dist/_node_modules/strtok3/lib/AbstractTokenizer.js.map +1 -0
  442. package/dist/_node_modules/strtok3/lib/BufferTokenizer.cjs +53 -0
  443. package/dist/_node_modules/strtok3/lib/BufferTokenizer.cjs.map +1 -0
  444. package/dist/_node_modules/strtok3/lib/BufferTokenizer.js +53 -0
  445. package/dist/_node_modules/strtok3/lib/BufferTokenizer.js.map +1 -0
  446. package/dist/_node_modules/strtok3/lib/core.cjs +9 -0
  447. package/dist/_node_modules/strtok3/lib/core.cjs.map +1 -0
  448. package/dist/_node_modules/strtok3/lib/core.js +9 -0
  449. package/dist/_node_modules/strtok3/lib/core.js.map +1 -0
  450. package/dist/_node_modules/token-types/lib/index.cjs +94 -0
  451. package/dist/_node_modules/token-types/lib/index.cjs.map +1 -0
  452. package/dist/_node_modules/token-types/lib/index.js +94 -0
  453. package/dist/_node_modules/token-types/lib/index.js.map +1 -0
  454. package/dist/_node_modules/unist-util-is/lib/index.cjs +76 -0
  455. package/dist/_node_modules/unist-util-is/lib/index.cjs.map +1 -0
  456. package/dist/_node_modules/unist-util-is/lib/index.js +76 -0
  457. package/dist/_node_modules/unist-util-is/lib/index.js.map +1 -0
  458. package/dist/_node_modules/unist-util-visit/lib/index.cjs +39 -0
  459. package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +1 -0
  460. package/dist/_node_modules/unist-util-visit/lib/index.js +40 -0
  461. package/dist/_node_modules/unist-util-visit/lib/index.js.map +1 -0
  462. package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.cjs +7 -0
  463. package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.cjs.map +1 -0
  464. package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.js +7 -0
  465. package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.js.map +1 -0
  466. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +86 -0
  467. package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -0
  468. package/dist/_node_modules/unist-util-visit-parents/lib/index.js +86 -0
  469. package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  470. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +3822 -0
  471. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +1 -0
  472. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +3822 -0
  473. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
  474. package/dist/_node_modules/which/which.cjs +96 -0
  475. package/dist/_node_modules/which/which.cjs.map +1 -0
  476. package/dist/_node_modules/which/which.js +96 -0
  477. package/dist/_node_modules/which/which.js.map +1 -0
  478. package/dist/_virtual/_commonjsHelpers.cjs +9 -0
  479. package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
  480. package/dist/_virtual/_commonjsHelpers.js +9 -0
  481. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  482. package/dist/_virtual/escape.cjs +5 -0
  483. package/dist/_virtual/escape.cjs.map +1 -0
  484. package/dist/_virtual/escape.js +5 -0
  485. package/dist/_virtual/escape.js.map +1 -0
  486. package/dist/_virtual/index.cjs +5 -0
  487. package/dist/_virtual/index.cjs.map +1 -0
  488. package/dist/_virtual/index.js +5 -0
  489. package/dist/_virtual/index.js.map +1 -0
  490. package/dist/_virtual/index2.cjs +5 -0
  491. package/dist/_virtual/index2.cjs.map +1 -0
  492. package/dist/_virtual/index2.js +5 -0
  493. package/dist/_virtual/index2.js.map +1 -0
  494. package/dist/_virtual/index3.cjs +5 -0
  495. package/dist/_virtual/index3.cjs.map +1 -0
  496. package/dist/_virtual/index3.js +5 -0
  497. package/dist/_virtual/index3.js.map +1 -0
  498. package/dist/_virtual/index4.cjs +5 -0
  499. package/dist/_virtual/index4.cjs.map +1 -0
  500. package/dist/_virtual/index4.js +5 -0
  501. package/dist/_virtual/index4.js.map +1 -0
  502. package/dist/_virtual/ponyfill.es2018.cjs +5 -0
  503. package/dist/_virtual/ponyfill.es2018.cjs.map +1 -0
  504. package/dist/_virtual/ponyfill.es2018.js +5 -0
  505. package/dist/_virtual/ponyfill.es2018.js.map +1 -0
  506. package/dist/_virtual/signals.cjs +5 -0
  507. package/dist/_virtual/signals.cjs.map +1 -0
  508. package/dist/_virtual/signals.js +5 -0
  509. package/dist/_virtual/signals.js.map +1 -0
  510. package/dist/auth/PrismicAuthManager.cjs +291 -0
  511. package/dist/auth/PrismicAuthManager.cjs.map +1 -0
  512. package/dist/auth/PrismicAuthManager.d.ts +58 -0
  513. package/dist/auth/PrismicAuthManager.js +269 -0
  514. package/dist/auth/PrismicAuthManager.js.map +1 -0
  515. package/dist/auth/createPrismicAuthManager.cjs +8 -0
  516. package/dist/auth/createPrismicAuthManager.cjs.map +1 -0
  517. package/dist/auth/createPrismicAuthManager.d.ts +4 -0
  518. package/dist/auth/createPrismicAuthManager.js +8 -0
  519. package/dist/auth/createPrismicAuthManager.js.map +1 -0
  520. package/dist/auth/createPrismicAuthManagerMiddleware.cjs +51 -0
  521. package/dist/auth/createPrismicAuthManagerMiddleware.cjs.map +1 -0
  522. package/dist/auth/createPrismicAuthManagerMiddleware.d.ts +14 -0
  523. package/dist/auth/createPrismicAuthManagerMiddleware.js +34 -0
  524. package/dist/auth/createPrismicAuthManagerMiddleware.js.map +1 -0
  525. package/dist/client/index.d.ts +7 -0
  526. package/dist/client.cjs +21 -0
  527. package/dist/client.cjs.map +1 -0
  528. package/dist/client.js +21 -0
  529. package/dist/client.js.map +1 -0
  530. package/dist/constants/API_ENDPOINTS.cjs +55 -0
  531. package/dist/constants/API_ENDPOINTS.cjs.map +1 -0
  532. package/dist/constants/API_ENDPOINTS.d.ts +11 -0
  533. package/dist/constants/API_ENDPOINTS.js +55 -0
  534. package/dist/constants/API_ENDPOINTS.js.map +1 -0
  535. package/dist/constants/API_TOKENS.cjs +18 -0
  536. package/dist/constants/API_TOKENS.cjs.map +1 -0
  537. package/dist/constants/API_TOKENS.d.ts +5 -0
  538. package/dist/constants/API_TOKENS.js +18 -0
  539. package/dist/constants/API_TOKENS.js.map +1 -0
  540. package/dist/constants/APPLICATION_MODE.cjs +9 -0
  541. package/dist/constants/APPLICATION_MODE.cjs.map +1 -0
  542. package/dist/constants/APPLICATION_MODE.d.ts +5 -0
  543. package/dist/constants/APPLICATION_MODE.js +9 -0
  544. package/dist/constants/APPLICATION_MODE.js.map +1 -0
  545. package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.cjs +5 -0
  546. package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.cjs.map +1 -0
  547. package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.d.ts +5 -0
  548. package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.js +5 -0
  549. package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.js.map +1 -0
  550. package/dist/constants/REPOSITORY_NAME_VALIDATION.cjs +8 -0
  551. package/dist/constants/REPOSITORY_NAME_VALIDATION.cjs.map +1 -0
  552. package/dist/constants/REPOSITORY_NAME_VALIDATION.d.ts +4 -0
  553. package/dist/constants/REPOSITORY_NAME_VALIDATION.js +8 -0
  554. package/dist/constants/REPOSITORY_NAME_VALIDATION.js.map +1 -0
  555. package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.cjs +5 -0
  556. package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.cjs.map +1 -0
  557. package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.d.ts +1 -0
  558. package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.js +5 -0
  559. package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.js.map +1 -0
  560. package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.cjs +5 -0
  561. package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.cjs.map +1 -0
  562. package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.d.ts +1 -0
  563. package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.js +5 -0
  564. package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.js.map +1 -0
  565. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.cjs +5 -0
  566. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.cjs.map +1 -0
  567. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.d.ts +1 -0
  568. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.js +5 -0
  569. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.js.map +1 -0
  570. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.cjs +5 -0
  571. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.cjs.map +1 -0
  572. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.d.ts +1 -0
  573. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.js +5 -0
  574. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.js.map +1 -0
  575. package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.cjs +5 -0
  576. package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.cjs.map +1 -0
  577. package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.d.ts +1 -0
  578. package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.js +5 -0
  579. package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.js.map +1 -0
  580. package/dist/constants/SLICE_MACHINE_USER_AGENT.cjs +5 -0
  581. package/dist/constants/SLICE_MACHINE_USER_AGENT.cjs.map +1 -0
  582. package/dist/constants/SLICE_MACHINE_USER_AGENT.d.ts +1 -0
  583. package/dist/constants/SLICE_MACHINE_USER_AGENT.js +5 -0
  584. package/dist/constants/SLICE_MACHINE_USER_AGENT.js.map +1 -0
  585. package/dist/constants/TS_CONFIG_FILENAME.cjs +5 -0
  586. package/dist/constants/TS_CONFIG_FILENAME.cjs.map +1 -0
  587. package/dist/constants/TS_CONFIG_FILENAME.d.ts +1 -0
  588. package/dist/constants/TS_CONFIG_FILENAME.js +5 -0
  589. package/dist/constants/TS_CONFIG_FILENAME.js.map +1 -0
  590. package/dist/constants/VERSION_KIND.cjs +10 -0
  591. package/dist/constants/VERSION_KIND.cjs.map +1 -0
  592. package/dist/constants/VERSION_KIND.d.ts +6 -0
  593. package/dist/constants/VERSION_KIND.js +10 -0
  594. package/dist/constants/VERSION_KIND.js.map +1 -0
  595. package/dist/errors.cjs +101 -0
  596. package/dist/errors.cjs.map +1 -0
  597. package/dist/errors.d.ts +35 -0
  598. package/dist/errors.js +101 -0
  599. package/dist/errors.js.map +1 -0
  600. package/dist/index.cjs +24 -0
  601. package/dist/index.cjs.map +1 -0
  602. package/dist/index.d.ts +16 -0
  603. package/dist/index.js +24 -0
  604. package/dist/index.js.map +1 -0
  605. package/dist/lib/DecodeError.cjs +22 -0
  606. package/dist/lib/DecodeError.cjs.map +1 -0
  607. package/dist/lib/DecodeError.d.ts +12 -0
  608. package/dist/lib/DecodeError.js +22 -0
  609. package/dist/lib/DecodeError.js.map +1 -0
  610. package/dist/lib/assertPluginsInitialized.cjs +9 -0
  611. package/dist/lib/assertPluginsInitialized.cjs.map +1 -0
  612. package/dist/lib/assertPluginsInitialized.d.ts +2 -0
  613. package/dist/lib/assertPluginsInitialized.js +9 -0
  614. package/dist/lib/assertPluginsInitialized.js.map +1 -0
  615. package/dist/lib/bufferCodec.cjs +24 -0
  616. package/dist/lib/bufferCodec.cjs.map +1 -0
  617. package/dist/lib/bufferCodec.d.ts +4 -0
  618. package/dist/lib/bufferCodec.js +7 -0
  619. package/dist/lib/bufferCodec.js.map +1 -0
  620. package/dist/lib/buildPrismicRepositoryAPIEndpoint.cjs +9 -0
  621. package/dist/lib/buildPrismicRepositoryAPIEndpoint.cjs.map +1 -0
  622. package/dist/lib/buildPrismicRepositoryAPIEndpoint.d.ts +4 -0
  623. package/dist/lib/buildPrismicRepositoryAPIEndpoint.js +9 -0
  624. package/dist/lib/buildPrismicRepositoryAPIEndpoint.js.map +1 -0
  625. package/dist/lib/castArray.cjs +7 -0
  626. package/dist/lib/castArray.cjs.map +1 -0
  627. package/dist/lib/castArray.d.ts +1 -0
  628. package/dist/lib/castArray.js +7 -0
  629. package/dist/lib/castArray.js.map +1 -0
  630. package/dist/lib/checkIsURLAccessible.d.ts +1 -0
  631. package/dist/lib/createContentDigest.cjs +25 -0
  632. package/dist/lib/createContentDigest.cjs.map +1 -0
  633. package/dist/lib/createContentDigest.d.ts +9 -0
  634. package/dist/lib/createContentDigest.js +8 -0
  635. package/dist/lib/createContentDigest.js.map +1 -0
  636. package/dist/lib/decode.cjs +18 -0
  637. package/dist/lib/decode.cjs.map +1 -0
  638. package/dist/lib/decode.d.ts +10 -0
  639. package/dist/lib/decode.js +18 -0
  640. package/dist/lib/decode.js.map +1 -0
  641. package/dist/lib/decodeHookResult.cjs +21 -0
  642. package/dist/lib/decodeHookResult.cjs.map +1 -0
  643. package/dist/lib/decodeHookResult.d.ts +10 -0
  644. package/dist/lib/decodeHookResult.js +21 -0
  645. package/dist/lib/decodeHookResult.js.map +1 -0
  646. package/dist/lib/decodePackageJSON.cjs +29 -0
  647. package/dist/lib/decodePackageJSON.cjs.map +1 -0
  648. package/dist/lib/decodePackageJSON.d.ts +12 -0
  649. package/dist/lib/decodePackageJSON.js +12 -0
  650. package/dist/lib/decodePackageJSON.js.map +1 -0
  651. package/dist/lib/decodeSliceMachineConfig.cjs +50 -0
  652. package/dist/lib/decodeSliceMachineConfig.cjs.map +1 -0
  653. package/dist/lib/decodeSliceMachineConfig.d.ts +3 -0
  654. package/dist/lib/decodeSliceMachineConfig.js +33 -0
  655. package/dist/lib/decodeSliceMachineConfig.js.map +1 -0
  656. package/dist/lib/fetch.cjs +36 -0
  657. package/dist/lib/fetch.cjs.map +1 -0
  658. package/dist/lib/fetch.d.ts +15 -0
  659. package/dist/lib/fetch.js +18 -0
  660. package/dist/lib/fetch.js.map +1 -0
  661. package/dist/lib/fetchGitHubReleaseBodyForRelease.cjs +105 -0
  662. package/dist/lib/fetchGitHubReleaseBodyForRelease.cjs.map +1 -0
  663. package/dist/lib/fetchGitHubReleaseBodyForRelease.d.ts +21 -0
  664. package/dist/lib/fetchGitHubReleaseBodyForRelease.js +88 -0
  665. package/dist/lib/fetchGitHubReleaseBodyForRelease.js.map +1 -0
  666. package/dist/lib/fetchNPMPackageVersions.cjs +41 -0
  667. package/dist/lib/fetchNPMPackageVersions.cjs.map +1 -0
  668. package/dist/lib/fetchNPMPackageVersions.d.ts +5 -0
  669. package/dist/lib/fetchNPMPackageVersions.js +24 -0
  670. package/dist/lib/fetchNPMPackageVersions.js.map +1 -0
  671. package/dist/lib/format.cjs +33 -0
  672. package/dist/lib/format.cjs.map +1 -0
  673. package/dist/lib/format.d.ts +12 -0
  674. package/dist/lib/format.js +33 -0
  675. package/dist/lib/format.js.map +1 -0
  676. package/dist/lib/functionCodec.cjs +29 -0
  677. package/dist/lib/functionCodec.cjs.map +1 -0
  678. package/dist/lib/functionCodec.d.ts +2 -0
  679. package/dist/lib/functionCodec.js +12 -0
  680. package/dist/lib/functionCodec.js.map +1 -0
  681. package/dist/lib/installDependencies.cjs +38 -0
  682. package/dist/lib/installDependencies.cjs.map +1 -0
  683. package/dist/lib/installDependencies.d.ts +13 -0
  684. package/dist/lib/installDependencies.js +38 -0
  685. package/dist/lib/installDependencies.js.map +1 -0
  686. package/dist/lib/locateFileUpward.cjs +47 -0
  687. package/dist/lib/locateFileUpward.cjs.map +1 -0
  688. package/dist/lib/locateFileUpward.d.ts +10 -0
  689. package/dist/lib/locateFileUpward.js +29 -0
  690. package/dist/lib/locateFileUpward.js.map +1 -0
  691. package/dist/lib/markdownToHTML.cjs +91 -0
  692. package/dist/lib/markdownToHTML.cjs.map +1 -0
  693. package/dist/lib/markdownToHTML.d.ts +1 -0
  694. package/dist/lib/markdownToHTML.js +69 -0
  695. package/dist/lib/markdownToHTML.js.map +1 -0
  696. package/dist/lib/mockSlice.cjs +32 -0
  697. package/dist/lib/mockSlice.cjs.map +1 -0
  698. package/dist/lib/mockSlice.d.ts +9 -0
  699. package/dist/lib/mockSlice.js +32 -0
  700. package/dist/lib/mockSlice.js.map +1 -0
  701. package/dist/lib/prismicrc.cjs +48 -0
  702. package/dist/lib/prismicrc.cjs.map +1 -0
  703. package/dist/lib/prismicrc.d.ts +10 -0
  704. package/dist/lib/prismicrc.js +29 -0
  705. package/dist/lib/prismicrc.js.map +1 -0
  706. package/dist/lib/serializeCookies.cjs +29 -0
  707. package/dist/lib/serializeCookies.cjs.map +1 -0
  708. package/dist/lib/serializeCookies.d.ts +6 -0
  709. package/dist/lib/serializeCookies.js +29 -0
  710. package/dist/lib/serializeCookies.js.map +1 -0
  711. package/dist/lib/trailingSlash.cjs +11 -0
  712. package/dist/lib/trailingSlash.cjs.map +1 -0
  713. package/dist/lib/trailingSlash.d.ts +2 -0
  714. package/dist/lib/trailingSlash.js +11 -0
  715. package/dist/lib/trailingSlash.js.map +1 -0
  716. package/dist/managers/BaseManager.cjs +69 -0
  717. package/dist/managers/BaseManager.cjs.map +1 -0
  718. package/dist/managers/BaseManager.d.ts +37 -0
  719. package/dist/managers/BaseManager.js +69 -0
  720. package/dist/managers/BaseManager.js.map +1 -0
  721. package/dist/managers/SliceMachineManager.cjs +251 -0
  722. package/dist/managers/SliceMachineManager.cjs.map +1 -0
  723. package/dist/managers/SliceMachineManager.d.ts +99 -0
  724. package/dist/managers/SliceMachineManager.js +251 -0
  725. package/dist/managers/SliceMachineManager.js.map +1 -0
  726. package/dist/managers/createSliceMachineManager.cjs +8 -0
  727. package/dist/managers/createSliceMachineManager.cjs.map +1 -0
  728. package/dist/managers/createSliceMachineManager.d.ts +5 -0
  729. package/dist/managers/createSliceMachineManager.js +8 -0
  730. package/dist/managers/createSliceMachineManager.js.map +1 -0
  731. package/dist/managers/createSliceMachineManagerClient.cjs +11 -0
  732. package/dist/managers/createSliceMachineManagerClient.cjs.map +1 -0
  733. package/dist/managers/createSliceMachineManagerClient.d.ts +8 -0
  734. package/dist/managers/createSliceMachineManagerClient.js +11 -0
  735. package/dist/managers/createSliceMachineManagerClient.js.map +1 -0
  736. package/dist/managers/createSliceMachineManagerMiddleware.cjs +44 -0
  737. package/dist/managers/createSliceMachineManagerMiddleware.cjs.map +1 -0
  738. package/dist/managers/createSliceMachineManagerMiddleware.d.ts +15 -0
  739. package/dist/managers/createSliceMachineManagerMiddleware.js +44 -0
  740. package/dist/managers/createSliceMachineManagerMiddleware.js.map +1 -0
  741. package/dist/managers/customTypes/CustomTypesManager.cjs +190 -0
  742. package/dist/managers/customTypes/CustomTypesManager.cjs.map +1 -0
  743. package/dist/managers/customTypes/CustomTypesManager.d.ts +61 -0
  744. package/dist/managers/customTypes/CustomTypesManager.js +172 -0
  745. package/dist/managers/customTypes/CustomTypesManager.js.map +1 -0
  746. package/dist/managers/customTypes/types.d.ts +2 -0
  747. package/dist/managers/documentation/DocumentationManager.cjs +42 -0
  748. package/dist/managers/documentation/DocumentationManager.cjs.map +1 -0
  749. package/dist/managers/documentation/DocumentationManager.d.ts +11 -0
  750. package/dist/managers/documentation/DocumentationManager.js +25 -0
  751. package/dist/managers/documentation/DocumentationManager.js.map +1 -0
  752. package/dist/managers/plugins/PluginsManager.cjs +36 -0
  753. package/dist/managers/plugins/PluginsManager.cjs.map +1 -0
  754. package/dist/managers/plugins/PluginsManager.d.ts +13 -0
  755. package/dist/managers/plugins/PluginsManager.js +36 -0
  756. package/dist/managers/plugins/PluginsManager.js.map +1 -0
  757. package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs +404 -0
  758. package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs.map +1 -0
  759. package/dist/managers/prismicRepository/PrismicRepositoryManager.d.ts +36 -0
  760. package/dist/managers/prismicRepository/PrismicRepositoryManager.js +387 -0
  761. package/dist/managers/prismicRepository/PrismicRepositoryManager.js.map +1 -0
  762. package/dist/managers/prismicRepository/sortEnvironments.cjs +36 -0
  763. package/dist/managers/prismicRepository/sortEnvironments.cjs.map +1 -0
  764. package/dist/managers/prismicRepository/sortEnvironments.d.ts +17 -0
  765. package/dist/managers/prismicRepository/sortEnvironments.js +36 -0
  766. package/dist/managers/prismicRepository/sortEnvironments.js.map +1 -0
  767. package/dist/managers/prismicRepository/types.cjs +78 -0
  768. package/dist/managers/prismicRepository/types.cjs.map +1 -0
  769. package/dist/managers/prismicRepository/types.d.ts +148 -0
  770. package/dist/managers/prismicRepository/types.js +63 -0
  771. package/dist/managers/prismicRepository/types.js.map +1 -0
  772. package/dist/managers/project/ProjectManager.cjs +273 -0
  773. package/dist/managers/project/ProjectManager.cjs.map +1 -0
  774. package/dist/managers/project/ProjectManager.d.ts +84 -0
  775. package/dist/managers/project/ProjectManager.js +254 -0
  776. package/dist/managers/project/ProjectManager.js.map +1 -0
  777. package/dist/managers/screenshots/ScreenshotsManager.cjs +164 -0
  778. package/dist/managers/screenshots/ScreenshotsManager.cjs.map +1 -0
  779. package/dist/managers/screenshots/ScreenshotsManager.d.ts +20 -0
  780. package/dist/managers/screenshots/ScreenshotsManager.js +147 -0
  781. package/dist/managers/screenshots/ScreenshotsManager.js.map +1 -0
  782. package/dist/managers/simulator/SimulatorManager.cjs +105 -0
  783. package/dist/managers/simulator/SimulatorManager.cjs.map +1 -0
  784. package/dist/managers/simulator/SimulatorManager.d.ts +38 -0
  785. package/dist/managers/simulator/SimulatorManager.js +88 -0
  786. package/dist/managers/simulator/SimulatorManager.js.map +1 -0
  787. package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.cjs +139 -0
  788. package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.cjs.map +1 -0
  789. package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.d.ts +27 -0
  790. package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.js +122 -0
  791. package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.js.map +1 -0
  792. package/dist/managers/slices/SlicesManager.cjs +652 -0
  793. package/dist/managers/slices/SlicesManager.cjs.map +1 -0
  794. package/dist/managers/slices/SlicesManager.d.ts +178 -0
  795. package/dist/managers/slices/SlicesManager.js +634 -0
  796. package/dist/managers/slices/SlicesManager.js.map +1 -0
  797. package/dist/managers/snippets/SnippetsManager.cjs +41 -0
  798. package/dist/managers/snippets/SnippetsManager.cjs.map +1 -0
  799. package/dist/managers/snippets/SnippetsManager.d.ts +11 -0
  800. package/dist/managers/snippets/SnippetsManager.js +24 -0
  801. package/dist/managers/snippets/SnippetsManager.js.map +1 -0
  802. package/dist/managers/telemetry/TelemetryManager.cjs +154 -0
  803. package/dist/managers/telemetry/TelemetryManager.cjs.map +1 -0
  804. package/dist/managers/telemetry/TelemetryManager.d.ts +29 -0
  805. package/dist/managers/telemetry/TelemetryManager.js +154 -0
  806. package/dist/managers/telemetry/TelemetryManager.js.map +1 -0
  807. package/dist/managers/telemetry/types.cjs +57 -0
  808. package/dist/managers/telemetry/types.cjs.map +1 -0
  809. package/dist/managers/telemetry/types.d.ts +165 -0
  810. package/dist/managers/telemetry/types.js +57 -0
  811. package/dist/managers/telemetry/types.js.map +1 -0
  812. package/dist/managers/user/UserManager.cjs +29 -0
  813. package/dist/managers/user/UserManager.cjs.map +1 -0
  814. package/dist/managers/user/UserManager.d.ts +40 -0
  815. package/dist/managers/user/UserManager.js +29 -0
  816. package/dist/managers/user/UserManager.js.map +1 -0
  817. package/dist/managers/versions/VersionsManager.cjs +140 -0
  818. package/dist/managers/versions/VersionsManager.cjs.map +1 -0
  819. package/dist/managers/versions/VersionsManager.d.ts +22 -0
  820. package/dist/managers/versions/VersionsManager.js +122 -0
  821. package/dist/managers/versions/VersionsManager.js.map +1 -0
  822. package/dist/managers/versions/types.d.ts +5 -0
  823. package/dist/test/createSliceMachineManagerMSWHandler.cjs +18 -0
  824. package/dist/test/createSliceMachineManagerMSWHandler.cjs.map +1 -0
  825. package/dist/test/createSliceMachineManagerMSWHandler.d.ts +7 -0
  826. package/dist/test/createSliceMachineManagerMSWHandler.js +18 -0
  827. package/dist/test/createSliceMachineManagerMSWHandler.js.map +1 -0
  828. package/dist/test/index.d.ts +2 -0
  829. package/dist/test.cjs +5 -0
  830. package/dist/test.cjs.map +1 -0
  831. package/dist/test.js +5 -0
  832. package/dist/test.js.map +1 -0
  833. package/dist/types.d.ts +37 -0
  834. package/package.json +140 -0
  835. package/src/auth/PrismicAuthManager.ts +412 -0
  836. package/src/auth/createPrismicAuthManager.ts +11 -0
  837. package/src/auth/createPrismicAuthManagerMiddleware.ts +72 -0
  838. package/src/client/index.ts +35 -0
  839. package/src/constants/API_ENDPOINTS.ts +86 -0
  840. package/src/constants/API_TOKENS.ts +19 -0
  841. package/src/constants/APPLICATION_MODE.ts +5 -0
  842. package/src/constants/DEFAULT_SLICE_SCREENSHOT_URL.ts +6 -0
  843. package/src/constants/REPOSITORY_NAME_VALIDATION.ts +4 -0
  844. package/src/constants/SLICE_MACHINE_CONFIG_FILENAME.ts +1 -0
  845. package/src/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.ts +1 -0
  846. package/src/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.ts +1 -0
  847. package/src/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.ts +1 -0
  848. package/src/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.ts +1 -0
  849. package/src/constants/SLICE_MACHINE_USER_AGENT.ts +1 -0
  850. package/src/constants/TS_CONFIG_FILENAME.ts +1 -0
  851. package/src/constants/VERSION_KIND.ts +6 -0
  852. package/src/errors.ts +85 -0
  853. package/src/index.ts +46 -0
  854. package/src/lib/DecodeError.ts +22 -0
  855. package/src/lib/assertPluginsInitialized.ts +11 -0
  856. package/src/lib/bufferCodec.ts +10 -0
  857. package/src/lib/buildPrismicRepositoryAPIEndpoint.ts +16 -0
  858. package/src/lib/castArray.ts +3 -0
  859. package/src/lib/checkIsURLAccessible.ts +7 -0
  860. package/src/lib/createContentDigest.ts +12 -0
  861. package/src/lib/decode.ts +36 -0
  862. package/src/lib/decodeHookResult.ts +36 -0
  863. package/src/lib/decodePackageJSON.ts +18 -0
  864. package/src/lib/decodeSliceMachineConfig.ts +39 -0
  865. package/src/lib/fetch.ts +46 -0
  866. package/src/lib/fetchGitHubReleaseBodyForRelease.ts +146 -0
  867. package/src/lib/fetchNPMPackageVersions.ts +46 -0
  868. package/src/lib/format.ts +34 -0
  869. package/src/lib/functionCodec.ts +16 -0
  870. package/src/lib/installDependencies.ts +65 -0
  871. package/src/lib/locateFileUpward.ts +53 -0
  872. package/src/lib/markdownToHTML.ts +116 -0
  873. package/src/lib/mockSlice.ts +50 -0
  874. package/src/lib/prismicrc.ts +64 -0
  875. package/src/lib/serializeCookies.ts +45 -0
  876. package/src/lib/trailingSlash.ts +9 -0
  877. package/src/managers/BaseManager.ts +100 -0
  878. package/src/managers/SliceMachineManager.ts +399 -0
  879. package/src/managers/createSliceMachineManager.ts +11 -0
  880. package/src/managers/createSliceMachineManagerClient.ts +23 -0
  881. package/src/managers/createSliceMachineManagerMiddleware.ts +78 -0
  882. package/src/managers/customTypes/CustomTypesManager.ts +332 -0
  883. package/src/managers/customTypes/types.ts +3 -0
  884. package/src/managers/documentation/DocumentationManager.ts +44 -0
  885. package/src/managers/plugins/PluginsManager.ts +48 -0
  886. package/src/managers/prismicRepository/PrismicRepositoryManager.ts +569 -0
  887. package/src/managers/prismicRepository/sortEnvironments.ts +55 -0
  888. package/src/managers/prismicRepository/types.ts +169 -0
  889. package/src/managers/project/ProjectManager.ts +443 -0
  890. package/src/managers/screenshots/ScreenshotsManager.ts +199 -0
  891. package/src/managers/simulator/SimulatorManager.ts +161 -0
  892. package/src/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.ts +201 -0
  893. package/src/managers/slices/SlicesManager.ts +1105 -0
  894. package/src/managers/snippets/SnippetsManager.ts +45 -0
  895. package/src/managers/telemetry/TelemetryManager.ts +248 -0
  896. package/src/managers/telemetry/types.ts +283 -0
  897. package/src/managers/user/UserManager.ts +39 -0
  898. package/src/managers/versions/VersionsManager.ts +167 -0
  899. package/src/managers/versions/types.ts +6 -0
  900. package/src/test/createSliceMachineManagerMSWHandler.ts +29 -0
  901. package/src/test/index.ts +2 -0
  902. package/src/types.ts +47 -0
@@ -0,0 +1,36 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import { createSliceMachinePluginRunner } from "@slicemachine/plugin-kit";
8
+ import { assertPluginsInitialized } from "../../lib/assertPluginsInitialized.js";
9
+ import { BaseManager } from "../BaseManager.js";
10
+ class PluginsManager extends BaseManager {
11
+ constructor(sliceMachineManager, config) {
12
+ super(sliceMachineManager);
13
+ __publicField(this, "_nativePlugins");
14
+ __publicField(this, "dangerouslyCallHook", (...args) => {
15
+ assertPluginsInitialized(this.sliceMachinePluginRunner);
16
+ return this.sliceMachinePluginRunner.callHook(...args);
17
+ });
18
+ this._nativePlugins = config.nativePlugins ?? {};
19
+ }
20
+ async initPlugins() {
21
+ const projectRoot = await this.project.getRoot();
22
+ const sliceMachineConfig = await this.project.getSliceMachineConfig();
23
+ this.sliceMachinePluginRunner = createSliceMachinePluginRunner({
24
+ project: {
25
+ root: projectRoot,
26
+ config: sliceMachineConfig
27
+ },
28
+ nativePlugins: this._nativePlugins
29
+ });
30
+ await this.sliceMachinePluginRunner.init();
31
+ }
32
+ }
33
+ export {
34
+ PluginsManager
35
+ };
36
+ //# sourceMappingURL=PluginsManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginsManager.js","sources":["../../../../src/managers/plugins/PluginsManager.ts"],"sourcesContent":["import {\n\tcreateSliceMachinePluginRunner,\n\tSliceMachinePlugin,\n\tSliceMachinePluginRunner,\n} from \"@slicemachine/plugin-kit\";\n\nimport { assertPluginsInitialized } from \"../../lib/assertPluginsInitialized\";\n\nimport { BaseManager } from \"../BaseManager\";\nimport { SliceMachineManager } from \"../SliceMachineManager\";\n\ntype PluginsManagerConfig = {\n\tnativePlugins?: Record<string, SliceMachinePlugin>;\n};\n\nexport class PluginsManager extends BaseManager {\n\tprivate _nativePlugins: Record<string, SliceMachinePlugin>;\n\n\tconstructor(\n\t\tsliceMachineManager: SliceMachineManager,\n\t\tconfig: PluginsManagerConfig,\n\t) {\n\t\tsuper(sliceMachineManager);\n\n\t\tthis._nativePlugins = config.nativePlugins ?? {};\n\t}\n\n\tasync initPlugins(): Promise<void> {\n\t\tconst projectRoot = await this.project.getRoot();\n\t\tconst sliceMachineConfig = await this.project.getSliceMachineConfig();\n\n\t\tthis.sliceMachinePluginRunner = createSliceMachinePluginRunner({\n\t\t\tproject: {\n\t\t\t\troot: projectRoot,\n\t\t\t\tconfig: sliceMachineConfig,\n\t\t\t},\n\t\t\tnativePlugins: this._nativePlugins,\n\t\t});\n\n\t\tawait this.sliceMachinePluginRunner.init();\n\t}\n\n\tdangerouslyCallHook: SliceMachinePluginRunner[\"callHook\"] = (...args) => {\n\t\tassertPluginsInitialized(this.sliceMachinePluginRunner);\n\n\t\treturn this.sliceMachinePluginRunner.callHook(...args);\n\t};\n}\n"],"names":[],"mappings":";;;;;;;;;AAeM,MAAO,uBAAuB,YAAW;AAAA,EAG9C,YACC,qBACA,QAA4B;AAE5B,UAAM,mBAAmB;AANlB;AA0BR,+CAA4D,IAAI,SAAQ;AACvE,+BAAyB,KAAK,wBAAwB;AAEtD,aAAO,KAAK,yBAAyB,SAAS,GAAG,IAAI;AAAA,IAAA;AArBhD,SAAA,iBAAiB,OAAO,iBAAiB,CAAA;AAAA,EAC/C;AAAA,EAEA,MAAM,cAAW;AAChB,UAAM,cAAc,MAAM,KAAK,QAAQ,QAAO;AAC9C,UAAM,qBAAqB,MAAM,KAAK,QAAQ,sBAAqB;AAEnE,SAAK,2BAA2B,+BAA+B;AAAA,MAC9D,SAAS;AAAA,QACR,MAAM;AAAA,QACN,QAAQ;AAAA,MACR;AAAA,MACD,eAAe,KAAK;AAAA,IAAA,CACpB;AAEK,UAAA,KAAK,yBAAyB;EACrC;AAOA;"}
@@ -0,0 +1,404 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const t = require("io-ts");
4
+ const fetch = require("../../lib/fetch.cjs");
5
+ const Either = require('./../../_node_modules/fp-ts/es6/Either.cjs');
6
+ const assertPluginsInitialized = require("../../lib/assertPluginsInitialized.cjs");
7
+ const decode = require("../../lib/decode.cjs");
8
+ const serializeCookies = require("../../lib/serializeCookies.cjs");
9
+ const SLICE_MACHINE_USER_AGENT = require("../../constants/SLICE_MACHINE_USER_AGENT.cjs");
10
+ const API_ENDPOINTS = require("../../constants/API_ENDPOINTS.cjs");
11
+ const REPOSITORY_NAME_VALIDATION = require("../../constants/REPOSITORY_NAME_VALIDATION.cjs");
12
+ const errors = require("../../errors.cjs");
13
+ const BaseManager = require("../BaseManager.cjs");
14
+ const types = require("./types.cjs");
15
+ const sortEnvironments = require("./sortEnvironments.cjs");
16
+ function _interopNamespaceDefault(e) {
17
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
18
+ if (e) {
19
+ for (const k in e) {
20
+ if (k !== "default") {
21
+ const d = Object.getOwnPropertyDescriptor(e, k);
22
+ Object.defineProperty(n, k, d.get ? d : {
23
+ enumerable: true,
24
+ get: () => e[k]
25
+ });
26
+ }
27
+ }
28
+ }
29
+ n.default = e;
30
+ return Object.freeze(n);
31
+ }
32
+ const t__namespace = /* @__PURE__ */ _interopNamespaceDefault(t);
33
+ const DEFAULT_REPOSITORY_SETTINGS = {
34
+ plan: "personal",
35
+ isAnnual: "false",
36
+ role: "developer"
37
+ };
38
+ class PrismicRepositoryManager extends BaseManager.BaseManager {
39
+ // TODO: Add methods for repository-specific actions. E.g. creating a
40
+ // new repository.
41
+ async readAll() {
42
+ const url = new URL("./repositories", API_ENDPOINTS.API_ENDPOINTS.PrismicUser);
43
+ const res = await this._fetch({ url });
44
+ if (res.ok) {
45
+ const json = await res.json();
46
+ const { value: repositories, error } = decode.decode(t__namespace.array(types.PrismicRepository), json);
47
+ if (error) {
48
+ throw new Error(`Failed to decode repositories: ${error.errors.join(", ")}`);
49
+ }
50
+ return repositories;
51
+ } else {
52
+ const text = await res.text();
53
+ throw new Error(`Failed to read repositories`, { cause: text });
54
+ }
55
+ }
56
+ // Should this be in manager? It's one of the few sync method
57
+ //
58
+ // Reply from Angelo 2022-12-22: I think it should be in manager
59
+ // because we shouldn't be exporting root-level utilities from this
60
+ // package. If we want to make it more inline with the other methods,
61
+ // we could simplify the API by changing its signature to the
62
+ // following:
63
+ //
64
+ // ```ts
65
+ // (repositoryName: string) => Promise<boolean>
66
+ // ```
67
+ //
68
+ // This method would:
69
+ //
70
+ // 1. Fetch the list of repositories for the user using `readAll()`.
71
+ // The list would be cached.
72
+ // 2. Determine if the user has write access to the given repository.
73
+ //
74
+ // This version has the following benefits:
75
+ //
76
+ // - Does not expect the consumer to supply a repository object; it
77
+ // only requires a repository name, which could be sourced from
78
+ // anything (incl. the project's `slicemachine.config.json`).
79
+ //
80
+ // - Similarly, it does not expect the consumer to call `readAll()`
81
+ // before calling this method.
82
+ //
83
+ // - Works for repositories that the user does not have access to. For
84
+ // example, I could use it to check if I have access to "qwerty",
85
+ // even if I am not added as a user. The purpose of the method is
86
+ // still valid: do I have write access to a given repository?
87
+ hasWriteAccess(repository) {
88
+ switch (repository.role) {
89
+ case types.PrismicRepositoryRole.SuperUser:
90
+ case types.PrismicRepositoryRole.Owner:
91
+ case types.PrismicRepositoryRole.Administrator:
92
+ return true;
93
+ default:
94
+ return false;
95
+ }
96
+ }
97
+ async checkExists(args) {
98
+ const url = new URL(`./app/dashboard/repositories/${args.domain}/exists`, API_ENDPOINTS.API_ENDPOINTS.PrismicWroom);
99
+ const res = await this._fetch({
100
+ url,
101
+ skipAuthentication: true
102
+ });
103
+ const text = await res.text();
104
+ if (res.ok) {
105
+ return text === "false";
106
+ } else {
107
+ throw new Error(`Failed to check repository existence for domain \`${args.domain}\``, { cause: text });
108
+ }
109
+ }
110
+ async create(args) {
111
+ const url = new URL("./authentication/newrepository?app=slicemachine", API_ENDPOINTS.API_ENDPOINTS.PrismicWroom);
112
+ const body = {
113
+ ...DEFAULT_REPOSITORY_SETTINGS,
114
+ domain: args.domain,
115
+ // These properties are optional in the API but needed for tracking
116
+ framework: args.framework,
117
+ starterId: args.starterId
118
+ };
119
+ const res = await this._fetch({
120
+ url,
121
+ method: "POST",
122
+ body,
123
+ userAgent: types.PrismicRepositoryUserAgent.SliceMachine
124
+ // Custom User Agent is required
125
+ });
126
+ const text = await res.text();
127
+ if (!res.ok || text.length < REPOSITORY_NAME_VALIDATION.REPOSITORY_NAME_VALIDATION.Min || text.length > REPOSITORY_NAME_VALIDATION.REPOSITORY_NAME_VALIDATION.Max) {
128
+ throw new Error(`Failed to create repository \`${args.domain}\``, {
129
+ cause: text
130
+ });
131
+ }
132
+ }
133
+ // TODO: Delete this endpoint? It doesn't seem to be used (I might be wrong). - Angelo
134
+ async delete(args) {
135
+ const cookies = await this.user.getAuthenticationCookies();
136
+ const url = new URL(
137
+ `./app/settings/delete?_=${cookies["X_XSRF"]}`,
138
+ // TODO: Maybe we want to throw early if the token is no available, or get the token another way
139
+ API_ENDPOINTS.API_ENDPOINTS.PrismicWroom
140
+ );
141
+ url.hostname = `${args.domain}.${url.hostname}`;
142
+ const body = {
143
+ confirm: args.domain,
144
+ password: args.password
145
+ };
146
+ const res = await this._fetch({
147
+ url,
148
+ method: "POST",
149
+ body,
150
+ userAgent: types.PrismicRepositoryUserAgent.LegacyZero
151
+ // Custom User Agent is required
152
+ });
153
+ if (!res.ok) {
154
+ throw new Error(`Failed to delete repository \`${args.domain}\``, {
155
+ cause: res
156
+ });
157
+ }
158
+ }
159
+ async pushDocuments(args) {
160
+ const url = new URL("./starter/documents", API_ENDPOINTS.API_ENDPOINTS.PrismicWroom);
161
+ url.hostname = `${args.domain}.${url.hostname}`;
162
+ const body = {
163
+ signature: args.signature,
164
+ documents: JSON.stringify(args.documents)
165
+ };
166
+ const res = await this._fetch({
167
+ url,
168
+ method: "POST",
169
+ body,
170
+ userAgent: types.PrismicRepositoryUserAgent.LegacyZero
171
+ // Custom User Agent is required
172
+ });
173
+ if (!res.ok) {
174
+ let reason = null;
175
+ try {
176
+ reason = await res.text();
177
+ } catch {
178
+ }
179
+ if (reason === "Repository should not contain documents") {
180
+ throw new Error(`Failed to push documents to repository \`${args.domain}\`, repository is not empty`, {
181
+ cause: reason
182
+ });
183
+ }
184
+ throw new Error(`Failed to push documents to repository \`${args.domain}\`, ${res.status} ${res.statusText}`, {
185
+ cause: reason
186
+ });
187
+ }
188
+ }
189
+ async pushChanges(args) {
190
+ assertPluginsInitialized.assertPluginsInitialized(this.sliceMachinePluginRunner);
191
+ if (!await this.user.checkIsLoggedIn()) {
192
+ throw new errors.UnauthenticatedError();
193
+ }
194
+ try {
195
+ await this.screenshots.initS3ACL();
196
+ const allChanges = await Promise.all(args.changes.map(async (change) => {
197
+ if (change.type === "Slice") {
198
+ switch (change.status) {
199
+ case "NEW": {
200
+ const { model } = await this.slices.readSlice({
201
+ libraryID: change.libraryID,
202
+ sliceID: change.id
203
+ });
204
+ if (!model) {
205
+ throw Error(`Could not find model ${change.id}`);
206
+ }
207
+ const modelWithScreenshots = await this.slices.updateSliceModelScreenshotsInPlace({
208
+ libraryID: change.libraryID,
209
+ model
210
+ });
211
+ return {
212
+ id: change.id,
213
+ payload: modelWithScreenshots,
214
+ type: types.ChangeTypes.SLICE_INSERT
215
+ };
216
+ }
217
+ case "MODIFIED": {
218
+ const { model } = await this.slices.readSlice({
219
+ libraryID: change.libraryID,
220
+ sliceID: change.id
221
+ });
222
+ if (!model) {
223
+ throw Error(`Could not find model ${change.id}`);
224
+ }
225
+ const modelWithScreenshots = await this.slices.updateSliceModelScreenshotsInPlace({
226
+ libraryID: change.libraryID,
227
+ model
228
+ });
229
+ return {
230
+ id: change.id,
231
+ payload: modelWithScreenshots,
232
+ type: types.ChangeTypes.SLICE_UPDATE
233
+ };
234
+ }
235
+ case "DELETED":
236
+ await this.screenshots.deleteScreenshotFolder({
237
+ sliceID: change.id
238
+ });
239
+ return {
240
+ id: change.id,
241
+ payload: { id: change.id },
242
+ type: types.ChangeTypes.SLICE_DELETE
243
+ };
244
+ }
245
+ } else {
246
+ switch (change.status) {
247
+ case "NEW": {
248
+ const { model } = await this.customTypes.readCustomType({
249
+ id: change.id
250
+ });
251
+ if (!model) {
252
+ throw Error(`Could not find model ${change.id}`);
253
+ }
254
+ return {
255
+ type: types.ChangeTypes.CUSTOM_TYPE_INSERT,
256
+ id: change.id,
257
+ payload: model
258
+ };
259
+ }
260
+ case "MODIFIED": {
261
+ const { model } = await this.customTypes.readCustomType({
262
+ id: change.id
263
+ });
264
+ if (!model) {
265
+ throw Error(`Could not find model ${change.id}`);
266
+ }
267
+ return {
268
+ type: types.ChangeTypes.CUSTOM_TYPE_UPDATE,
269
+ id: change.id,
270
+ payload: model
271
+ };
272
+ }
273
+ case "DELETED":
274
+ return {
275
+ id: change.id,
276
+ payload: { id: change.id },
277
+ type: types.ChangeTypes.CUSTOM_TYPE_DELETE
278
+ };
279
+ }
280
+ }
281
+ }));
282
+ const requestBody = {
283
+ confirmDeleteDocuments: args.confirmDeleteDocuments,
284
+ changes: allChanges
285
+ };
286
+ const repositoryName = await this.project.getResolvedRepositoryName();
287
+ const response = await this._fetch({
288
+ url: new URL("./bulk", API_ENDPOINTS.API_ENDPOINTS.PrismicModels),
289
+ method: "POST",
290
+ body: requestBody,
291
+ repository: repositoryName
292
+ });
293
+ switch (response.status) {
294
+ case 202:
295
+ return this._decodeLimitOrThrow(await response.json(), response.status, types.LimitType.SOFT);
296
+ case 204:
297
+ return null;
298
+ case 401:
299
+ throw new errors.UnauthenticatedError();
300
+ case 403:
301
+ return this._decodeLimitOrThrow(await response.json(), response.status, types.LimitType.HARD);
302
+ case 400:
303
+ const text = await response.text();
304
+ throw new Error(text);
305
+ default:
306
+ throw new Error(`Unexpected status code ${response.status}`, {
307
+ cause: await response.text()
308
+ });
309
+ }
310
+ } catch (err) {
311
+ console.error("An error happened while pushing your changes");
312
+ console.error(err);
313
+ throw err;
314
+ }
315
+ }
316
+ async fetchEnvironments() {
317
+ const repositoryName = await this.project.getRepositoryName();
318
+ const url = new URL(`./environments`, API_ENDPOINTS.API_ENDPOINTS.SliceMachineV1);
319
+ url.searchParams.set("repository", repositoryName);
320
+ let res;
321
+ try {
322
+ res = await this._fetch({ url });
323
+ } catch (error) {
324
+ if (errors.isUnauthenticatedError(error)) {
325
+ return { error: new errors.UnauthenticatedError() };
326
+ }
327
+ return {
328
+ error: new errors.UnexpectedDataError("Unexpected Error while fetching Environments")
329
+ };
330
+ }
331
+ if (res.ok) {
332
+ const json = await res.json();
333
+ const { value, error } = decode.decode(t__namespace.union([
334
+ t__namespace.type({
335
+ results: t__namespace.array(types.Environment)
336
+ }),
337
+ t__namespace.type({
338
+ error: t__namespace.literal("invalid_token")
339
+ })
340
+ ]), json);
341
+ if (error) {
342
+ return {
343
+ error: new errors.UnexpectedDataError(`Failed to decode environments: ${error.errors.join(", ")}`)
344
+ };
345
+ }
346
+ if ("results" in value) {
347
+ return { environments: sortEnvironments.sortEnvironments(value.results) };
348
+ }
349
+ }
350
+ switch (res.status) {
351
+ case 400:
352
+ case 401:
353
+ return { error: new errors.UnauthenticatedError() };
354
+ case 403:
355
+ return { error: new errors.UnauthorizedError() };
356
+ default:
357
+ return { error: new Error("Failed to fetch environments.") };
358
+ }
359
+ }
360
+ _decodeLimitOrThrow(potentialLimit, statusCode, limitType) {
361
+ return Either.fold(() => {
362
+ const error = {
363
+ status: statusCode,
364
+ message: `Unable to parse raw limit from ${JSON.stringify(potentialLimit)}`
365
+ };
366
+ throw error;
367
+ }, (rawLimit) => {
368
+ const limit = { ...rawLimit, type: limitType };
369
+ return limit;
370
+ })(types.RawLimit.decode(potentialLimit));
371
+ }
372
+ async _fetch(args) {
373
+ let cookies;
374
+ try {
375
+ cookies = await this.user.getAuthenticationCookies();
376
+ } catch (e) {
377
+ if (!args.skipAuthentication) {
378
+ throw e;
379
+ }
380
+ }
381
+ const extraHeaders = {};
382
+ if (args.body) {
383
+ extraHeaders["Content-Type"] = "application/json";
384
+ }
385
+ if (args.repository) {
386
+ extraHeaders.repository = args.repository;
387
+ }
388
+ return await fetch.default(args.url.toString(), {
389
+ method: args.method,
390
+ body: args.body ? JSON.stringify(args.body) : void 0,
391
+ headers: {
392
+ // Some endpoints rely on the authorization header...
393
+ ...cookies !== void 0 ? {
394
+ Authorization: `Bearer ${cookies["prismic-auth"]}`,
395
+ Cookie: serializeCookies.serializeCookies(cookies)
396
+ } : {},
397
+ "User-Agent": args.userAgent || SLICE_MACHINE_USER_AGENT.SLICE_MACHINE_USER_AGENT,
398
+ ...extraHeaders
399
+ }
400
+ });
401
+ }
402
+ }
403
+ exports.PrismicRepositoryManager = PrismicRepositoryManager;
404
+ //# sourceMappingURL=PrismicRepositoryManager.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrismicRepositoryManager.cjs","sources":["../../../../src/managers/prismicRepository/PrismicRepositoryManager.ts"],"sourcesContent":["import * as t from \"io-ts\";\nimport fetch, { Response } from \"../../lib/fetch\";\nimport { fold } from \"fp-ts/Either\";\n\nimport { assertPluginsInitialized } from \"../../lib/assertPluginsInitialized\";\nimport { decode } from \"../../lib/decode\";\nimport { serializeCookies } from \"../../lib/serializeCookies\";\n\nimport { SLICE_MACHINE_USER_AGENT } from \"../../constants/SLICE_MACHINE_USER_AGENT\";\nimport { API_ENDPOINTS } from \"../../constants/API_ENDPOINTS\";\nimport { REPOSITORY_NAME_VALIDATION } from \"../../constants/REPOSITORY_NAME_VALIDATION\";\n\nimport {\n\tUnauthenticatedError,\n\tUnauthorizedError,\n\tUnexpectedDataError,\n\tisUnauthenticatedError,\n} from \"../../errors\";\n\nimport { BaseManager } from \"../BaseManager\";\n\nimport {\n\tAllChangeTypes,\n\tBulkBody,\n\tChangeTypes,\n\tClientError,\n\tLimit,\n\tLimitType,\n\tPrismicRepository,\n\tPrismicRepositoryRole,\n\tPrismicRepositoryUserAgent,\n\tPrismicRepositoryUserAgents,\n\tRawLimit,\n\tTransactionalMergeArgs,\n\tTransactionalMergeReturnType,\n\tFrameworkWroomTelemetryID,\n\tStarterId,\n\tEnvironment,\n} from \"./types\";\nimport { sortEnvironments } from \"./sortEnvironments\";\n\nconst DEFAULT_REPOSITORY_SETTINGS = {\n\tplan: \"personal\",\n\tisAnnual: \"false\",\n\trole: \"developer\",\n};\n\ntype PrismicRepositoryManagerCheckExistsArgs = {\n\tdomain: string;\n};\n\ntype PrismicRepositoryManagerCreateArgs = {\n\tdomain: string;\n\tframework: FrameworkWroomTelemetryID;\n\tstarterId?: StarterId;\n};\n\ntype PrismicRepositoryManagerDeleteArgs = {\n\tdomain: string;\n\tpassword: string;\n};\n\ntype PrismicRepositoryManagerPushDocumentsArgs = {\n\tdomain: string;\n\tsignature: string;\n\tdocuments: Record<string, unknown>; // TODO: Type unknown if possible(?)\n};\n\ntype PrismicRepositoryManagerFetchEnvironmentsReturnType = {\n\tenvironments?: Environment[];\n\terror?: unknown;\n};\n\nexport class PrismicRepositoryManager extends BaseManager {\n\t// TODO: Add methods for repository-specific actions. E.g. creating a\n\t// new repository.\n\n\tasync readAll(): Promise<PrismicRepository[]> {\n\t\tconst url = new URL(\"./repositories\", API_ENDPOINTS.PrismicUser);\n\t\tconst res = await this._fetch({ url });\n\n\t\tif (res.ok) {\n\t\t\tconst json = await res.json();\n\t\t\tconst { value: repositories, error } = decode(\n\t\t\t\tt.array(PrismicRepository),\n\t\t\t\tjson,\n\t\t\t);\n\n\t\t\tif (error) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Failed to decode repositories: ${error.errors.join(\", \")}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn repositories;\n\t\t} else {\n\t\t\tconst text = await res.text();\n\t\t\tthrow new Error(`Failed to read repositories`, { cause: text });\n\t\t}\n\t}\n\n\t// Should this be in manager? It's one of the few sync method\n\t//\n\t// Reply from Angelo 2022-12-22: I think it should be in manager\n\t// because we shouldn't be exporting root-level utilities from this\n\t// package. If we want to make it more inline with the other methods,\n\t// we could simplify the API by changing its signature to the\n\t// following:\n\t//\n\t// ```ts\n\t// (repositoryName: string) => Promise<boolean>\n\t// ```\n\t//\n\t// This method would:\n\t//\n\t// 1. Fetch the list of repositories for the user using `readAll()`.\n\t// The list would be cached.\n\t// 2. Determine if the user has write access to the given repository.\n\t//\n\t// This version has the following benefits:\n\t//\n\t// - Does not expect the consumer to supply a repository object; it\n\t// only requires a repository name, which could be sourced from\n\t// anything (incl. the project's `slicemachine.config.json`).\n\t//\n\t// - Similarly, it does not expect the consumer to call `readAll()`\n\t// before calling this method.\n\t//\n\t// - Works for repositories that the user does not have access to. For\n\t// example, I could use it to check if I have access to \"qwerty\",\n\t// even if I am not added as a user. The purpose of the method is\n\t// still valid: do I have write access to a given repository?\n\thasWriteAccess(repository: PrismicRepository): boolean {\n\t\tswitch (repository.role) {\n\t\t\tcase PrismicRepositoryRole.SuperUser:\n\t\t\tcase PrismicRepositoryRole.Owner:\n\t\t\tcase PrismicRepositoryRole.Administrator:\n\t\t\t\treturn true;\n\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\tasync checkExists(\n\t\targs: PrismicRepositoryManagerCheckExistsArgs,\n\t): Promise<boolean> {\n\t\tconst url = new URL(\n\t\t\t`./app/dashboard/repositories/${args.domain}/exists`,\n\t\t\tAPI_ENDPOINTS.PrismicWroom,\n\t\t);\n\t\tconst res = await this._fetch({\n\t\t\turl,\n\t\t\tskipAuthentication: true,\n\t\t});\n\n\t\tconst text = await res.text();\n\n\t\tif (res.ok) {\n\t\t\treturn text === \"false\"; // Endpoint returns `false` when repository exists\n\t\t} else {\n\t\t\tthrow new Error(\n\t\t\t\t`Failed to check repository existence for domain \\`${args.domain}\\``,\n\t\t\t\t{ cause: text },\n\t\t\t);\n\t\t}\n\t}\n\n\tasync create(args: PrismicRepositoryManagerCreateArgs): Promise<void> {\n\t\tconst url = new URL(\n\t\t\t\"./authentication/newrepository?app=slicemachine\",\n\t\t\tAPI_ENDPOINTS.PrismicWroom,\n\t\t);\n\n\t\tconst body = {\n\t\t\t...DEFAULT_REPOSITORY_SETTINGS,\n\t\t\tdomain: args.domain,\n\t\t\t// These properties are optional in the API but needed for tracking\n\t\t\tframework: args.framework,\n\t\t\tstarterId: args.starterId,\n\t\t};\n\n\t\tconst res = await this._fetch({\n\t\t\turl,\n\t\t\tmethod: \"POST\",\n\t\t\tbody,\n\t\t\tuserAgent: PrismicRepositoryUserAgent.SliceMachine, // Custom User Agent is required\n\t\t});\n\t\tconst text = await res.text();\n\n\t\t// Endpoint returns repository name on success, that should be within the validation range\n\t\t// Even when there is an error, we get a 200 success and so we have to check the name thanks to that\n\t\tif (\n\t\t\t!res.ok ||\n\t\t\ttext.length < REPOSITORY_NAME_VALIDATION.Min ||\n\t\t\ttext.length > REPOSITORY_NAME_VALIDATION.Max\n\t\t) {\n\t\t\tthrow new Error(`Failed to create repository \\`${args.domain}\\``, {\n\t\t\t\tcause: text,\n\t\t\t});\n\t\t}\n\t}\n\n\t// TODO: Delete this endpoint? It doesn't seem to be used (I might be wrong). - Angelo\n\tasync delete(args: PrismicRepositoryManagerDeleteArgs): Promise<void> {\n\t\tconst cookies = await this.user.getAuthenticationCookies();\n\n\t\tconst url = new URL(\n\t\t\t`./app/settings/delete?_=${cookies[\"X_XSRF\"]}`, // TODO: Maybe we want to throw early if the token is no available, or get the token another way\n\t\t\tAPI_ENDPOINTS.PrismicWroom,\n\t\t);\n\t\t// Update hostname to include repository domain\n\t\turl.hostname = `${args.domain}.${url.hostname}`;\n\n\t\tconst body = {\n\t\t\tconfirm: args.domain,\n\t\t\tpassword: args.password,\n\t\t};\n\n\t\tconst res = await this._fetch({\n\t\t\turl,\n\t\t\tmethod: \"POST\",\n\t\t\tbody,\n\t\t\tuserAgent: PrismicRepositoryUserAgent.LegacyZero, // Custom User Agent is required\n\t\t});\n\n\t\tif (!res.ok) {\n\t\t\tthrow new Error(`Failed to delete repository \\`${args.domain}\\``, {\n\t\t\t\tcause: res,\n\t\t\t});\n\t\t}\n\t}\n\n\tasync pushDocuments(\n\t\targs: PrismicRepositoryManagerPushDocumentsArgs,\n\t): Promise<void> {\n\t\tconst url = new URL(\"./starter/documents\", API_ENDPOINTS.PrismicWroom);\n\t\t// Update hostname to include repository domain\n\t\turl.hostname = `${args.domain}.${url.hostname}`;\n\n\t\tconst body = {\n\t\t\tsignature: args.signature,\n\t\t\tdocuments: JSON.stringify(args.documents),\n\t\t};\n\n\t\tconst res = await this._fetch({\n\t\t\turl,\n\t\t\tmethod: \"POST\",\n\t\t\tbody,\n\t\t\tuserAgent: PrismicRepositoryUserAgent.LegacyZero, // Custom User Agent is required\n\t\t});\n\n\t\tif (!res.ok) {\n\t\t\tlet reason: string | null = null;\n\t\t\ttry {\n\t\t\t\treason = await res.text();\n\t\t\t} catch {\n\t\t\t\t// Noop\n\t\t\t}\n\n\t\t\t// Ideally the API should throw a 409 or something like that...\n\t\t\tif (reason === \"Repository should not contain documents\") {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Failed to push documents to repository \\`${args.domain}\\`, repository is not empty`,\n\t\t\t\t\t{\n\t\t\t\t\t\tcause: reason,\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tthrow new Error(\n\t\t\t\t`Failed to push documents to repository \\`${args.domain}\\`, ${res.status} ${res.statusText}`,\n\t\t\t\t{\n\t\t\t\t\tcause: reason,\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\t}\n\n\tasync pushChanges(\n\t\targs: TransactionalMergeArgs,\n\t): Promise<TransactionalMergeReturnType> {\n\t\tassertPluginsInitialized(this.sliceMachinePluginRunner);\n\n\t\tif (!(await this.user.checkIsLoggedIn())) {\n\t\t\tthrow new UnauthenticatedError();\n\t\t}\n\n\t\ttry {\n\t\t\t// Update the AWS ACL before uploading screenshots as it might have expired\n\t\t\tawait this.screenshots.initS3ACL();\n\n\t\t\tconst allChanges: AllChangeTypes[] = await Promise.all(\n\t\t\t\targs.changes.map(async (change) => {\n\t\t\t\t\tif (change.type === \"Slice\") {\n\t\t\t\t\t\tswitch (change.status) {\n\t\t\t\t\t\t\tcase \"NEW\": {\n\t\t\t\t\t\t\t\tconst { model } = await this.slices.readSlice({\n\t\t\t\t\t\t\t\t\tlibraryID: change.libraryID,\n\t\t\t\t\t\t\t\t\tsliceID: change.id,\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tif (!model) {\n\t\t\t\t\t\t\t\t\tthrow Error(`Could not find model ${change.id}`);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tconst modelWithScreenshots =\n\t\t\t\t\t\t\t\t\tawait this.slices.updateSliceModelScreenshotsInPlace({\n\t\t\t\t\t\t\t\t\t\tlibraryID: change.libraryID,\n\t\t\t\t\t\t\t\t\t\tmodel,\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t\tpayload: modelWithScreenshots,\n\t\t\t\t\t\t\t\t\ttype: ChangeTypes.SLICE_INSERT,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase \"MODIFIED\": {\n\t\t\t\t\t\t\t\tconst { model } = await this.slices.readSlice({\n\t\t\t\t\t\t\t\t\tlibraryID: change.libraryID,\n\t\t\t\t\t\t\t\t\tsliceID: change.id,\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tif (!model) {\n\t\t\t\t\t\t\t\t\tthrow Error(`Could not find model ${change.id}`);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tconst modelWithScreenshots =\n\t\t\t\t\t\t\t\t\tawait this.slices.updateSliceModelScreenshotsInPlace({\n\t\t\t\t\t\t\t\t\t\tlibraryID: change.libraryID,\n\t\t\t\t\t\t\t\t\t\tmodel,\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t\tpayload: modelWithScreenshots,\n\t\t\t\t\t\t\t\t\ttype: ChangeTypes.SLICE_UPDATE,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase \"DELETED\":\n\t\t\t\t\t\t\t\tawait this.screenshots.deleteScreenshotFolder({\n\t\t\t\t\t\t\t\t\tsliceID: change.id,\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t\tpayload: { id: change.id },\n\t\t\t\t\t\t\t\t\ttype: ChangeTypes.SLICE_DELETE,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tswitch (change.status) {\n\t\t\t\t\t\t\tcase \"NEW\": {\n\t\t\t\t\t\t\t\tconst { model } = await this.customTypes.readCustomType({\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif (!model) {\n\t\t\t\t\t\t\t\t\tthrow Error(`Could not find model ${change.id}`);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\ttype: ChangeTypes.CUSTOM_TYPE_INSERT,\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t\tpayload: model,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase \"MODIFIED\": {\n\t\t\t\t\t\t\t\tconst { model } = await this.customTypes.readCustomType({\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif (!model) {\n\t\t\t\t\t\t\t\t\tthrow Error(`Could not find model ${change.id}`);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\ttype: ChangeTypes.CUSTOM_TYPE_UPDATE,\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t\tpayload: model,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase \"DELETED\":\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tid: change.id,\n\t\t\t\t\t\t\t\t\tpayload: { id: change.id },\n\t\t\t\t\t\t\t\t\ttype: ChangeTypes.CUSTOM_TYPE_DELETE,\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t);\n\n\t\t\t// Compute the POST body\n\t\t\tconst requestBody: BulkBody = {\n\t\t\t\tconfirmDeleteDocuments: args.confirmDeleteDocuments,\n\t\t\t\tchanges: allChanges,\n\t\t\t};\n\n\t\t\tconst repositoryName = await this.project.getResolvedRepositoryName();\n\n\t\t\t// TODO: move to customtypes client\n\t\t\tconst response = await this._fetch({\n\t\t\t\turl: new URL(\"./bulk\", API_ENDPOINTS.PrismicModels),\n\t\t\t\tmethod: \"POST\",\n\t\t\t\tbody: requestBody,\n\t\t\t\trepository: repositoryName,\n\t\t\t});\n\n\t\t\tswitch (response.status) {\n\t\t\t\tcase 202:\n\t\t\t\t\treturn this._decodeLimitOrThrow(\n\t\t\t\t\t\tawait response.json(),\n\t\t\t\t\t\tresponse.status,\n\t\t\t\t\t\tLimitType.SOFT,\n\t\t\t\t\t);\n\t\t\t\tcase 204:\n\t\t\t\t\treturn null;\n\t\t\t\tcase 401:\n\t\t\t\t\tthrow new UnauthenticatedError();\n\t\t\t\tcase 403:\n\t\t\t\t\treturn this._decodeLimitOrThrow(\n\t\t\t\t\t\tawait response.json(),\n\t\t\t\t\t\tresponse.status,\n\t\t\t\t\t\tLimitType.HARD,\n\t\t\t\t\t);\n\t\t\t\tcase 400:\n\t\t\t\t\tconst text = await response.text();\n\t\t\t\t\tthrow new Error(text);\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(`Unexpected status code ${response.status}`, {\n\t\t\t\t\t\tcause: await response.text(),\n\t\t\t\t\t});\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tconsole.error(\"An error happened while pushing your changes\");\n\t\t\tconsole.error(err);\n\n\t\t\tthrow err;\n\t\t}\n\t}\n\n\tasync fetchEnvironments(): Promise<PrismicRepositoryManagerFetchEnvironmentsReturnType> {\n\t\tconst repositoryName = await this.project.getRepositoryName();\n\n\t\tconst url = new URL(`./environments`, API_ENDPOINTS.SliceMachineV1);\n\t\turl.searchParams.set(\"repository\", repositoryName);\n\n\t\tlet res;\n\t\ttry {\n\t\t\tres = await this._fetch({ url });\n\t\t} catch (error) {\n\t\t\tif (isUnauthenticatedError(error)) {\n\t\t\t\treturn { error: new UnauthenticatedError() };\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\terror: new UnexpectedDataError(\n\t\t\t\t\t\"Unexpected Error while fetching Environments\",\n\t\t\t\t),\n\t\t\t};\n\t\t}\n\n\t\tif (res.ok) {\n\t\t\tconst json = await res.json();\n\n\t\t\tconst { value, error } = decode(\n\t\t\t\tt.union([\n\t\t\t\t\tt.type({\n\t\t\t\t\t\tresults: t.array(Environment),\n\t\t\t\t\t}),\n\t\t\t\t\tt.type({\n\t\t\t\t\t\terror: t.literal(\"invalid_token\"),\n\t\t\t\t\t}),\n\t\t\t\t]),\n\t\t\t\tjson,\n\t\t\t);\n\n\t\t\tif (error) {\n\t\t\t\treturn {\n\t\t\t\t\terror: new UnexpectedDataError(\n\t\t\t\t\t\t`Failed to decode environments: ${error.errors.join(\", \")}`,\n\t\t\t\t\t),\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (\"results\" in value) {\n\t\t\t\treturn { environments: sortEnvironments(value.results) };\n\t\t\t}\n\t\t}\n\n\t\tswitch (res.status) {\n\t\t\tcase 400:\n\t\t\tcase 401:\n\t\t\t\treturn { error: new UnauthenticatedError() };\n\t\t\tcase 403:\n\t\t\t\treturn { error: new UnauthorizedError() };\n\t\t\tdefault:\n\t\t\t\treturn { error: new Error(\"Failed to fetch environments.\") };\n\t\t}\n\t}\n\n\tprivate _decodeLimitOrThrow(\n\t\tpotentialLimit: unknown,\n\t\tstatusCode: number,\n\t\tlimitType: LimitType,\n\t): Limit | null {\n\t\treturn fold<t.Errors, RawLimit, Limit | null>(\n\t\t\t() => {\n\t\t\t\tconst error: ClientError = {\n\t\t\t\t\tstatus: statusCode,\n\t\t\t\t\tmessage: `Unable to parse raw limit from ${JSON.stringify(\n\t\t\t\t\t\tpotentialLimit,\n\t\t\t\t\t)}`,\n\t\t\t\t};\n\t\t\t\tthrow error;\n\t\t\t},\n\t\t\t(rawLimit: RawLimit) => {\n\t\t\t\tconst limit = { ...rawLimit, type: limitType };\n\n\t\t\t\treturn limit;\n\t\t\t},\n\t\t)(RawLimit.decode(potentialLimit));\n\t}\n\n\tprivate async _fetch(args: {\n\t\turl: URL;\n\t\tmethod?: \"GET\" | \"POST\";\n\t\tbody?: unknown;\n\t\tuserAgent?: PrismicRepositoryUserAgents;\n\t\trepository?: string;\n\t\tskipAuthentication?: boolean;\n\t}): Promise<Response> {\n\t\tlet cookies;\n\t\ttry {\n\t\t\tcookies = await this.user.getAuthenticationCookies();\n\t\t} catch (e) {\n\t\t\tif (!args.skipAuthentication) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\n\t\tconst extraHeaders: Record<string, string> = {};\n\n\t\tif (args.body) {\n\t\t\textraHeaders[\"Content-Type\"] = \"application/json\";\n\t\t}\n\n\t\tif (args.repository) {\n\t\t\textraHeaders.repository = args.repository;\n\t\t}\n\n\t\treturn await fetch(args.url.toString(), {\n\t\t\tmethod: args.method,\n\t\t\tbody: args.body ? JSON.stringify(args.body) : undefined,\n\t\t\theaders: {\n\t\t\t\t// Some endpoints rely on the authorization header...\n\n\t\t\t\t...(cookies !== undefined\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tAuthorization: `Bearer ${cookies[\"prismic-auth\"]}`,\n\t\t\t\t\t\t\tCookie: serializeCookies(cookies),\n\t\t\t\t\t }\n\t\t\t\t\t: {}),\n\t\t\t\t\"User-Agent\": args.userAgent || SLICE_MACHINE_USER_AGENT,\n\t\t\t\t...extraHeaders,\n\t\t\t},\n\t\t});\n\t}\n}\n"],"names":["BaseManager","API_ENDPOINTS","decode","t","PrismicRepository","PrismicRepositoryRole","PrismicRepositoryUserAgent","REPOSITORY_NAME_VALIDATION","assertPluginsInitialized","UnauthenticatedError","ChangeTypes","LimitType","isUnauthenticatedError","UnexpectedDataError","Environment","sortEnvironments","UnauthorizedError","fold","RawLimit","fetch","serializeCookies","SLICE_MACHINE_USER_AGENT"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,MAAM,8BAA8B;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;;AA6BD,MAAO,iCAAiCA,YAAAA,YAAW;AAAA;AAAA;AAAA,EAIxD,MAAM,UAAO;AACZ,UAAM,MAAM,IAAI,IAAI,kBAAkBC,4BAAc,WAAW;AAC/D,UAAM,MAAM,MAAM,KAAK,OAAO,EAAE,IAAK,CAAA;AAErC,QAAI,IAAI,IAAI;AACL,YAAA,OAAO,MAAM,IAAI;AACjB,YAAA,EAAE,OAAO,cAAc,UAAU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AAA,IACP,GACA,CAAC,aAAsB;AACtB,YAAM,QAAQ,EAAE,GAAG,UAAU,MAAM,UAAS;AAErC,aAAA;AAAA,IACP,CAAA,EACAC,MAAS,SAAA,OAAO,cAAc,CAAC;AAAA,EAClC;AAAA,EAEQ,MAAM,OAAO,MAOpB;AACI,QAAA;AACA,QAAA;AACO,gBAAA,MAAM,KAAK,KAAK;aAClB;AACJ,UAAA,CAAC,KAAK,oBAAoB;AACvB,cAAA;AAAA,MACN;AAAA,IACD;AAED,UAAM,eAAuC,CAAA;AAE7C,QAAI,KAAK,MAAM;AACd,mBAAa,cAAc,IAAI;AAAA,IAC/B;AAED,QAAI,KAAK,YAAY;AACpB,mBAAa,aAAa,KAAK;AAAA,IAC/B;AAED,WAAO,MAAMC,MAAAA,QAAM,KAAK,IAAI,YAAY;AAAA,MACvC,QAAQ,KAAK;AAAA,MACb,MAAM,KAAK,OAAO,KAAK,UAAU,KAAK,IAAI,IAAI;AAAA,MAC9C,SAAS;AAAA;AAAA,QAGR,GAAI,YAAY,SACb;AAAA,UACA,eAAe,UAAU,QAAQ,cAAc;AAAA,UAC/C,QAAQC,kCAAiB,OAAO;AAAA,QAAA,IAEhC;QACH,cAAc,KAAK,aAAaC,yBAAA;AAAA,QAChC,GAAG;AAAA,MACH;AAAA,IAAA,CACD;AAAA,EACF;AACA;;"}
@@ -0,0 +1,36 @@
1
+ import { BaseManager } from "../BaseManager";
2
+ import { PrismicRepository, TransactionalMergeArgs, TransactionalMergeReturnType, FrameworkWroomTelemetryID, StarterId, Environment } from "./types";
3
+ type PrismicRepositoryManagerCheckExistsArgs = {
4
+ domain: string;
5
+ };
6
+ type PrismicRepositoryManagerCreateArgs = {
7
+ domain: string;
8
+ framework: FrameworkWroomTelemetryID;
9
+ starterId?: StarterId;
10
+ };
11
+ type PrismicRepositoryManagerDeleteArgs = {
12
+ domain: string;
13
+ password: string;
14
+ };
15
+ type PrismicRepositoryManagerPushDocumentsArgs = {
16
+ domain: string;
17
+ signature: string;
18
+ documents: Record<string, unknown>;
19
+ };
20
+ type PrismicRepositoryManagerFetchEnvironmentsReturnType = {
21
+ environments?: Environment[];
22
+ error?: unknown;
23
+ };
24
+ export declare class PrismicRepositoryManager extends BaseManager {
25
+ readAll(): Promise<PrismicRepository[]>;
26
+ hasWriteAccess(repository: PrismicRepository): boolean;
27
+ checkExists(args: PrismicRepositoryManagerCheckExistsArgs): Promise<boolean>;
28
+ create(args: PrismicRepositoryManagerCreateArgs): Promise<void>;
29
+ delete(args: PrismicRepositoryManagerDeleteArgs): Promise<void>;
30
+ pushDocuments(args: PrismicRepositoryManagerPushDocumentsArgs): Promise<void>;
31
+ pushChanges(args: TransactionalMergeArgs): Promise<TransactionalMergeReturnType>;
32
+ fetchEnvironments(): Promise<PrismicRepositoryManagerFetchEnvironmentsReturnType>;
33
+ private _decodeLimitOrThrow;
34
+ private _fetch;
35
+ }
36
+ export {};