@taqueria/protocol 0.16.0 → 0.19.2

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 (371) hide show
  1. package/Alias.d.ts +42 -0
  2. package/Alias.d.ts.map +1 -0
  3. package/Alias.js +70 -0
  4. package/Alias.js.map +1 -0
  5. package/Alias.mjs +34 -0
  6. package/Alias.mjs.map +1 -0
  7. package/Base.d.ts +48 -0
  8. package/Base.d.ts.map +1 -0
  9. package/Base.js +83 -0
  10. package/Base.js.map +1 -0
  11. package/Base.mjs +57 -0
  12. package/Base.mjs.map +1 -0
  13. package/Command.d.ts +24 -0
  14. package/Command.d.ts.map +1 -0
  15. package/Command.js +61 -0
  16. package/Command.js.map +1 -0
  17. package/Command.mjs +25 -0
  18. package/Command.mjs.map +1 -0
  19. package/Config.d.ts +2055 -0
  20. package/Config.d.ts.map +1 -0
  21. package/Config.js +175 -0
  22. package/Config.js.map +1 -0
  23. package/Config.mjs +135 -0
  24. package/Config.mjs.map +1 -0
  25. package/Contract.d.ts +82 -0
  26. package/Contract.d.ts.map +1 -0
  27. package/Contract.js +68 -0
  28. package/Contract.js.map +1 -0
  29. package/Contract.mjs +32 -0
  30. package/Contract.mjs.map +1 -0
  31. package/Crypto.d.ts +4 -0
  32. package/Crypto.d.ts.map +1 -0
  33. package/Crypto.js +35 -0
  34. package/Crypto.js.map +1 -0
  35. package/Crypto.mjs +10 -0
  36. package/Crypto.mjs.map +1 -0
  37. package/EconomicalProtocolHash.d.ts +41 -0
  38. package/EconomicalProtocolHash.d.ts.map +1 -0
  39. package/EconomicalProtocolHash.js +64 -0
  40. package/EconomicalProtocolHash.js.map +1 -0
  41. package/EconomicalProtocolHash.mjs +27 -0
  42. package/EconomicalProtocolHash.mjs.map +1 -0
  43. package/Environment.d.ts +134 -0
  44. package/Environment.d.ts.map +1 -0
  45. package/Environment.js +78 -0
  46. package/Environment.js.map +1 -0
  47. package/Environment.mjs +40 -0
  48. package/Environment.mjs.map +1 -0
  49. package/EphemeralState.d.ts +4556 -0
  50. package/EphemeralState.d.ts.map +1 -0
  51. package/EphemeralState.js +268 -0
  52. package/EphemeralState.js.map +1 -0
  53. package/EphemeralState.mjs +228 -0
  54. package/EphemeralState.mjs.map +1 -0
  55. package/Faucet.d.ts +203 -0
  56. package/Faucet.d.ts.map +1 -0
  57. package/Faucet.js +84 -0
  58. package/Faucet.js.map +1 -0
  59. package/Faucet.mjs +47 -0
  60. package/Faucet.mjs.map +1 -0
  61. package/HumanReadableIdentifier.d.ts +24 -0
  62. package/HumanReadableIdentifier.d.ts.map +1 -0
  63. package/HumanReadableIdentifier.js +61 -0
  64. package/HumanReadableIdentifier.js.map +1 -0
  65. package/HumanReadableIdentifier.mjs +25 -0
  66. package/HumanReadableIdentifier.mjs.map +1 -0
  67. package/InstalledPlugin.d.ts +92 -0
  68. package/InstalledPlugin.d.ts.map +1 -0
  69. package/InstalledPlugin.js +67 -0
  70. package/InstalledPlugin.js.map +1 -0
  71. package/InstalledPlugin.mjs +30 -0
  72. package/InstalledPlugin.mjs.map +1 -0
  73. package/LoadedConfig.d.ts +2318 -0
  74. package/LoadedConfig.d.ts.map +1 -0
  75. package/LoadedConfig.js +80 -0
  76. package/LoadedConfig.js.map +1 -0
  77. package/LoadedConfig.mjs +41 -0
  78. package/LoadedConfig.mjs.map +1 -0
  79. package/MetadataConfig.d.ts +155 -0
  80. package/MetadataConfig.d.ts.map +1 -0
  81. package/MetadataConfig.js +75 -0
  82. package/MetadataConfig.js.map +1 -0
  83. package/MetadataConfig.mjs +38 -0
  84. package/MetadataConfig.mjs.map +1 -0
  85. package/NetworkConfig.d.ts +424 -0
  86. package/NetworkConfig.d.ts.map +1 -0
  87. package/NetworkConfig.js +77 -0
  88. package/NetworkConfig.js.map +1 -0
  89. package/NetworkConfig.mjs +40 -0
  90. package/NetworkConfig.mjs.map +1 -0
  91. package/Operation.d.ts +1470 -0
  92. package/Operation.d.ts.map +1 -0
  93. package/Operation.js +98 -0
  94. package/Operation.js.map +1 -0
  95. package/Operation.mjs +60 -0
  96. package/Operation.mjs.map +1 -0
  97. package/Option.d.ts +309 -0
  98. package/Option.d.ts.map +1 -0
  99. package/Option.js +103 -0
  100. package/Option.js.map +1 -0
  101. package/Option.mjs +65 -0
  102. package/Option.mjs.map +1 -0
  103. package/ParsedOperation.d.ts +880 -0
  104. package/ParsedOperation.d.ts.map +1 -0
  105. package/ParsedOperation.js +63 -0
  106. package/ParsedOperation.js.map +1 -0
  107. package/ParsedOperation.mjs +26 -0
  108. package/ParsedOperation.mjs.map +1 -0
  109. package/ParsedTemplate.d.ts +1024 -0
  110. package/ParsedTemplate.d.ts.map +1 -0
  111. package/ParsedTemplate.js +71 -0
  112. package/ParsedTemplate.js.map +1 -0
  113. package/ParsedTemplate.mjs +34 -0
  114. package/ParsedTemplate.mjs.map +1 -0
  115. package/PersistentState.d.ts +575 -0
  116. package/PersistentState.d.ts.map +1 -0
  117. package/PersistentState.js +98 -0
  118. package/PersistentState.js.map +1 -0
  119. package/PersistentState.mjs +60 -0
  120. package/PersistentState.mjs.map +1 -0
  121. package/PluginActionName.d.ts +22 -0
  122. package/PluginActionName.d.ts.map +1 -0
  123. package/PluginActionName.js +48 -0
  124. package/PluginActionName.js.map +1 -0
  125. package/PluginActionName.mjs +23 -0
  126. package/PluginActionName.mjs.map +1 -0
  127. package/PluginDependenciesResponse.d.ts +152 -0
  128. package/PluginDependenciesResponse.d.ts.map +1 -0
  129. package/PluginDependenciesResponse.js +63 -0
  130. package/PluginDependenciesResponse.js.map +1 -0
  131. package/PluginDependenciesResponse.mjs +28 -0
  132. package/PluginDependenciesResponse.mjs.map +1 -0
  133. package/PluginInfo.d.ts +3418 -0
  134. package/PluginInfo.d.ts.map +1 -0
  135. package/PluginInfo.js +113 -0
  136. package/PluginInfo.js.map +1 -0
  137. package/PluginInfo.mjs +76 -0
  138. package/PluginInfo.mjs.map +1 -0
  139. package/PluginJsonResponse.d.ts +99 -0
  140. package/PluginJsonResponse.d.ts.map +1 -0
  141. package/PluginJsonResponse.js +59 -0
  142. package/PluginJsonResponse.js.map +1 -0
  143. package/PluginJsonResponse.mjs +25 -0
  144. package/PluginJsonResponse.mjs.map +1 -0
  145. package/PluginProxyResponse.d.ts +16 -0
  146. package/PluginProxyResponse.d.ts.map +1 -0
  147. package/PluginProxyResponse.js +61 -0
  148. package/PluginProxyResponse.js.map +1 -0
  149. package/PluginProxyResponse.mjs +25 -0
  150. package/PluginProxyResponse.mjs.map +1 -0
  151. package/PluginResponseEncoding.d.ts +32 -0
  152. package/PluginResponseEncoding.d.ts.map +1 -0
  153. package/PluginResponseEncoding.js +63 -0
  154. package/PluginResponseEncoding.js.map +1 -0
  155. package/PluginResponseEncoding.mjs +27 -0
  156. package/PluginResponseEncoding.mjs.map +1 -0
  157. package/PluginSchema.d.ts +7324 -0
  158. package/PluginSchema.d.ts.map +1 -0
  159. package/PluginSchema.js +107 -0
  160. package/PluginSchema.js.map +1 -0
  161. package/PluginSchema.mjs +70 -0
  162. package/PluginSchema.mjs.map +1 -0
  163. package/PositionalArg.d.ts +183 -0
  164. package/PositionalArg.d.ts.map +1 -0
  165. package/PositionalArg.js +78 -0
  166. package/PositionalArg.js.map +1 -0
  167. package/PositionalArg.mjs +41 -0
  168. package/PositionalArg.mjs.map +1 -0
  169. package/Provisioner.d.ts +269 -0
  170. package/Provisioner.d.ts.map +1 -0
  171. package/Provisioner.js +86 -0
  172. package/Provisioner.js.map +1 -0
  173. package/Provisioner.mjs +48 -0
  174. package/Provisioner.mjs.map +1 -0
  175. package/ProvisionerID.d.ts +41 -0
  176. package/ProvisionerID.d.ts.map +1 -0
  177. package/ProvisionerID.js +61 -0
  178. package/ProvisionerID.js.map +1 -0
  179. package/ProvisionerID.mjs +24 -0
  180. package/ProvisionerID.mjs.map +1 -0
  181. package/Provisions.d.ts +237 -0
  182. package/Provisions.d.ts.map +1 -0
  183. package/Provisions.js +93 -0
  184. package/Provisions.js.map +1 -0
  185. package/Provisions.mjs +57 -0
  186. package/Provisions.mjs.map +1 -0
  187. package/PublicKeyHash.d.ts +42 -0
  188. package/PublicKeyHash.d.ts.map +1 -0
  189. package/PublicKeyHash.js +65 -0
  190. package/PublicKeyHash.js.map +1 -0
  191. package/PublicKeyHash.mjs +28 -0
  192. package/PublicKeyHash.mjs.map +1 -0
  193. package/RequestArgs.d.ts +5548 -0
  194. package/RequestArgs.d.ts.map +1 -0
  195. package/RequestArgs.js +136 -0
  196. package/RequestArgs.js.map +1 -0
  197. package/RequestArgs.mjs +89 -0
  198. package/RequestArgs.mjs.map +1 -0
  199. package/SHA256.d.ts +29 -0
  200. package/SHA256.d.ts.map +1 -0
  201. package/SHA256.js +79 -0
  202. package/SHA256.js.map +1 -0
  203. package/SHA256.mjs +42 -0
  204. package/SHA256.mjs.map +1 -0
  205. package/SandboxAccountConfig.d.ts +145 -0
  206. package/SandboxAccountConfig.d.ts.map +1 -0
  207. package/SandboxAccountConfig.js +72 -0
  208. package/SandboxAccountConfig.js.map +1 -0
  209. package/SandboxAccountConfig.mjs +35 -0
  210. package/SandboxAccountConfig.mjs.map +1 -0
  211. package/SandboxConfig.d.ts +543 -0
  212. package/SandboxConfig.d.ts.map +1 -0
  213. package/SandboxConfig.js +103 -0
  214. package/SandboxConfig.js.map +1 -0
  215. package/SandboxConfig.mjs +66 -0
  216. package/SandboxConfig.mjs.map +1 -0
  217. package/SanitizedAbsPath.d.ts +41 -0
  218. package/SanitizedAbsPath.d.ts.map +1 -0
  219. package/SanitizedAbsPath.js +64 -0
  220. package/SanitizedAbsPath.js.map +1 -0
  221. package/SanitizedAbsPath.mjs +27 -0
  222. package/SanitizedAbsPath.mjs.map +1 -0
  223. package/SanitizedArgs.d.ts +2900 -0
  224. package/SanitizedArgs.d.ts.map +1 -0
  225. package/SanitizedArgs.js +269 -0
  226. package/SanitizedArgs.js.map +1 -0
  227. package/SanitizedArgs.mjs +197 -0
  228. package/SanitizedArgs.mjs.map +1 -0
  229. package/SanitizedPath.d.ts +24 -0
  230. package/SanitizedPath.d.ts.map +1 -0
  231. package/SanitizedPath.js +64 -0
  232. package/SanitizedPath.js.map +1 -0
  233. package/SanitizedPath.mjs +28 -0
  234. package/SanitizedPath.mjs.map +1 -0
  235. package/ScaffoldConfig.d.ts +5 -0
  236. package/ScaffoldConfig.d.ts.map +1 -0
  237. package/ScaffoldConfig.js +19 -0
  238. package/ScaffoldConfig.js.map +1 -0
  239. package/ScaffoldConfig.mjs +1 -0
  240. package/ScaffoldConfig.mjs.map +1 -0
  241. package/Settings.d.ts +75 -0
  242. package/Settings.d.ts.map +1 -0
  243. package/Settings.js +66 -0
  244. package/Settings.js.map +1 -0
  245. package/Settings.mjs +29 -0
  246. package/Settings.mjs.map +1 -0
  247. package/SingleChar.d.ts +41 -0
  248. package/SingleChar.d.ts.map +1 -0
  249. package/SingleChar.js +62 -0
  250. package/SingleChar.js.map +1 -0
  251. package/SingleChar.mjs +25 -0
  252. package/SingleChar.mjs.map +1 -0
  253. package/TaqError.d.ts +21 -0
  254. package/TaqError.d.ts.map +1 -0
  255. package/TaqError.js +65 -0
  256. package/TaqError.js.map +1 -0
  257. package/TaqError.mjs +35 -0
  258. package/TaqError.mjs.map +1 -0
  259. package/Task.d.ts +818 -0
  260. package/Task.d.ts.map +1 -0
  261. package/Task.js +95 -0
  262. package/Task.js.map +1 -0
  263. package/Task.mjs +58 -0
  264. package/Task.mjs.map +1 -0
  265. package/Template.d.ts +1738 -0
  266. package/Template.d.ts.map +1 -0
  267. package/Template.js +117 -0
  268. package/Template.js.map +1 -0
  269. package/Template.mjs +79 -0
  270. package/Template.mjs.map +1 -0
  271. package/Timestamp.d.ts +44 -0
  272. package/Timestamp.d.ts.map +1 -0
  273. package/Timestamp.js +65 -0
  274. package/Timestamp.js.map +1 -0
  275. package/Timestamp.mjs +27 -0
  276. package/Timestamp.mjs.map +1 -0
  277. package/Tz.d.ts +40 -0
  278. package/Tz.d.ts.map +1 -0
  279. package/Tz.js +62 -0
  280. package/Tz.js.map +1 -0
  281. package/Tz.mjs +25 -0
  282. package/Tz.mjs.map +1 -0
  283. package/Url.d.ts +42 -0
  284. package/Url.d.ts.map +1 -0
  285. package/Url.js +68 -0
  286. package/Url.js.map +1 -0
  287. package/Url.mjs +30 -0
  288. package/Url.mjs.map +1 -0
  289. package/Verb.d.ts +41 -0
  290. package/Verb.d.ts.map +1 -0
  291. package/Verb.js +62 -0
  292. package/Verb.js.map +1 -0
  293. package/Verb.mjs +25 -0
  294. package/Verb.mjs.map +1 -0
  295. package/VersionNumber.d.ts +24 -0
  296. package/VersionNumber.d.ts.map +1 -0
  297. package/VersionNumber.js +61 -0
  298. package/VersionNumber.js.map +1 -0
  299. package/VersionNumber.mjs +25 -0
  300. package/VersionNumber.mjs.map +1 -0
  301. package/i18n.d.ts +7 -0
  302. package/i18n.d.ts.map +1 -0
  303. package/i18n.js +96 -0
  304. package/i18n.js.map +1 -0
  305. package/i18n.mjs +67 -0
  306. package/i18n.mjs.map +1 -0
  307. package/package.json +31 -3
  308. package/{taqueria-protocol-types.ts → taqueria-protocol-types.d.ts} +1 -0
  309. package/taqueria-protocol-types.d.ts.map +1 -0
  310. package/taqueria-protocol-types.js +142 -0
  311. package/taqueria-protocol-types.js.map +1 -0
  312. package/taqueria-protocol-types.mjs +76 -0
  313. package/taqueria-protocol-types.mjs.map +1 -0
  314. package/tzkt-config.d.ts +109 -0
  315. package/tzkt-config.d.ts.map +1 -0
  316. package/tzkt-config.js +65 -0
  317. package/tzkt-config.js.map +1 -0
  318. package/tzkt-config.mjs +28 -0
  319. package/tzkt-config.mjs.map +1 -0
  320. package/Alias.ts +0 -38
  321. package/Base.ts +0 -105
  322. package/Command.ts +0 -26
  323. package/Config.ts +0 -163
  324. package/Contract.ts +0 -35
  325. package/Crypto.ts +0 -3
  326. package/EconomicalProtocolHash.ts +0 -26
  327. package/Environment.ts +0 -40
  328. package/EphemeralState.ts +0 -282
  329. package/Faucet.ts +0 -46
  330. package/HumanReadableIdentifier.ts +0 -26
  331. package/InstalledPlugin.ts +0 -28
  332. package/LoadedConfig.ts +0 -45
  333. package/MetadataConfig.ts +0 -37
  334. package/NetworkConfig.ts +0 -39
  335. package/Operation.ts +0 -70
  336. package/Option.ts +0 -64
  337. package/ParsedOperation.ts +0 -33
  338. package/ParsedTemplate.ts +0 -40
  339. package/PersistentState.ts +0 -69
  340. package/PluginActionName.ts +0 -28
  341. package/PluginDependenciesResponse.ts +0 -33
  342. package/PluginInfo.ts +0 -76
  343. package/PluginJsonResponse.ts +0 -26
  344. package/PluginProxyResponse.ts +0 -24
  345. package/PluginResponseEncoding.ts +0 -27
  346. package/PluginSchema.ts +0 -81
  347. package/PositionalArg.ts +0 -41
  348. package/Provisioner.ts +0 -61
  349. package/ProvisionerID.ts +0 -25
  350. package/Provisions.ts +0 -70
  351. package/PublicKeyHash.ts +0 -28
  352. package/RequestArgs.ts +0 -97
  353. package/SHA256.ts +0 -42
  354. package/SandboxAccountConfig.ts +0 -35
  355. package/SandboxConfig.ts +0 -66
  356. package/SanitizedAbsPath.ts +0 -23
  357. package/SanitizedArgs.ts +0 -213
  358. package/SanitizedPath.ts +0 -28
  359. package/ScaffoldConfig.ts +0 -6
  360. package/Settings.ts +0 -27
  361. package/SingleChar.ts +0 -23
  362. package/TaqError.ts +0 -78
  363. package/Task.ts +0 -57
  364. package/Template.ts +0 -77
  365. package/Timestamp.ts +0 -25
  366. package/Tz.ts +0 -22
  367. package/Url.ts +0 -28
  368. package/Verb.ts +0 -23
  369. package/VersionNumber.ts +0 -25
  370. package/i18n.ts +0 -74
  371. package/tzkt-config.ts +0 -27
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginInfo.d.ts","sourceRoot":"","sources":["PluginInfo.ts"],"names":[],"mappings":"AACA,OAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBpB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBC,CAAC;AAO7B,eAAO,MAAQ,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK7B,CAAC;AAEH,oBAAY,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;AACjE,oBAAY,CAAC,GAAG,UAAU,CAAC;AAC3B,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAY,CAAC"}
package/PluginInfo.js ADDED
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // PluginInfo.ts
27
+ var PluginInfo_exports = {};
28
+ __export(PluginInfo_exports, {
29
+ create: () => create,
30
+ factory: () => factory,
31
+ internalSchema: () => internalSchema,
32
+ make: () => make,
33
+ of: () => of,
34
+ rawSchema: () => rawSchema3,
35
+ schemas: () => schemas6
36
+ });
37
+ module.exports = __toCommonJS(PluginInfo_exports);
38
+ var Alias = __toESM(require("@taqueria/protocol/Alias"));
39
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
40
+ var ParsedOperation = __toESM(require("@taqueria/protocol/ParsedOperation"));
41
+ var ParsedTemplate = __toESM(require("@taqueria/protocol/ParsedTemplate"));
42
+ var Task = __toESM(require("@taqueria/protocol/Task"));
43
+ var VersionNumber = __toESM(require("@taqueria/protocol/VersionNumber"));
44
+ var import_zod = require("zod");
45
+ var rawSchema3 = import_zod.z.object({
46
+ name: import_zod.z.string({ description: "Plugin Name" }).min(1),
47
+ version: VersionNumber.rawSchema.describe("Plugin Version #"),
48
+ schema: VersionNumber.rawSchema.describe("Plugin Schema Version #"),
49
+ alias: Alias.rawSchema.describe("Plugin Alias"),
50
+ tasks: import_zod.z.preprocess(
51
+ (val) => val ?? [],
52
+ import_zod.z.array(
53
+ Task.schemas.schema.describe("Plugin Task"),
54
+ { description: "Plugin Tasks" }
55
+ )
56
+ ).optional(),
57
+ operations: import_zod.z.preprocess(
58
+ (val) => val ?? [],
59
+ import_zod.z.array(
60
+ ParsedOperation.schemas.schema.describe("Plugin Operation"),
61
+ { description: "Plugin Operations" }
62
+ )
63
+ ).optional(),
64
+ templates: import_zod.z.preprocess(
65
+ (val) => val ?? [],
66
+ import_zod.z.array(
67
+ ParsedTemplate.schemas.schema.describe("Plugin Template")
68
+ )
69
+ ).optional()
70
+ });
71
+ var internalSchema = rawSchema3.extend({
72
+ version: VersionNumber.schemas.schema.describe("Plugin Version #"),
73
+ schema: VersionNumber.schemas.schema.describe("Plugin Schema Version #"),
74
+ alias: Alias.schemas.schema.describe("Plugin Alias"),
75
+ tasks: import_zod.z.preprocess(
76
+ (val) => val ?? [],
77
+ import_zod.z.array(
78
+ Task.schemas.schema.describe("Plugin Task"),
79
+ { description: "Plugin Tasks" }
80
+ )
81
+ ).optional(),
82
+ operations: import_zod.z.preprocess(
83
+ (val) => val ?? [],
84
+ import_zod.z.array(
85
+ ParsedOperation.schemas.schema.describe("Plugin Operation"),
86
+ { description: "Plugin Operations" }
87
+ )
88
+ ).optional(),
89
+ templates: import_zod.z.preprocess(
90
+ (val) => val ?? [],
91
+ import_zod.z.array(
92
+ ParsedTemplate.schemas.schema.describe("Plugin Template")
93
+ )
94
+ ).optional()
95
+ }).describe("Plugin Schema");
96
+ var { schemas: schemas6, factory } = (0, import_Base.default)({
97
+ rawSchema: rawSchema3,
98
+ internalSchema,
99
+ parseErrMsg: "The schema returned from the plugin is invalid",
100
+ unknownErrMsg: "Something went wrong parsing the schema from a plugin"
101
+ });
102
+ var { create, of, make } = factory;
103
+ // Annotate the CommonJS export names for ESM import in node:
104
+ 0 && (module.exports = {
105
+ create,
106
+ factory,
107
+ internalSchema,
108
+ make,
109
+ of,
110
+ rawSchema,
111
+ schemas
112
+ });
113
+ //# sourceMappingURL=PluginInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PluginInfo.ts"],"sourcesContent":["import * as Alias from '@taqueria/protocol/Alias';\nimport createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as ParsedOperation from '@taqueria/protocol/ParsedOperation';\nimport * as ParsedTemplate from '@taqueria/protocol/ParsedTemplate';\nimport * as Task from '@taqueria/protocol/Task';\nimport * as VersionNumber from '@taqueria/protocol/VersionNumber';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tname: z.string({ description: 'Plugin Name' }).min(1),\n\tversion: VersionNumber.rawSchema.describe('Plugin Version #'),\n\tschema: VersionNumber.rawSchema.describe('Plugin Schema Version #'),\n\talias: Alias.rawSchema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n});\n\nexport const internalSchema = rawSchema.extend({\n\tversion: VersionNumber.schemas.schema.describe('Plugin Version #'),\n\tschema: VersionNumber.schemas.schema.describe('Plugin Schema Version #'),\n\talias: Alias.schemas.schema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n}).describe('Plugin Schema');\n\n// export const rawSchema = internalSchema;\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = Flatten<z.infer<typeof internalSchema>>;\n\nexport const { schemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The schema returned from the plugin is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the schema from a plugin',\n});\n\nexport type PluginInfo = Flatten<z.infer<typeof schemas.schema>>;\nexport type t = PluginInfo;\nexport const { create, of, make } = factory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,YAAuB;AACvB,kBAAoC;AACpC,sBAAiC;AACjC,qBAAgC;AAChC,WAAsB;AACtB,oBAA+B;AAC/B,iBAAkB;AAEX,IAAMD,aAAY,aAAE,OAAO;AAAA,EACjC,MAAM,aAAE,OAAO,EAAE,aAAa,cAAc,CAAC,EAAE,IAAI,CAAC;AAAA,EACpD,SAAuB,wBAAU,SAAS,kBAAkB;AAAA,EAC5D,QAAsB,wBAAU,SAAS,yBAAyB;AAAA,EAClE,OAAa,gBAAU,SAAS,cAAc;AAAA,EAC9C,OAAO,aAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,aAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,aAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC;AAEM,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,SAAuB,sBAAQ,OAAO,SAAS,kBAAkB;AAAA,EACjE,QAAsB,sBAAQ,OAAO,SAAS,yBAAyB;AAAA,EACvE,OAAa,cAAQ,OAAO,SAAS,cAAc;AAAA,EACnD,OAAO,aAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,aAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,aAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC,EAAE,SAAS,eAAe;AAOpB,IAAM,EAAE,SAAAC,UAAS,QAAQ,QAAI,YAAAC,SAA4B;AAAA,EAC/D,WAAAF;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;","names":["rawSchema","schemas","createType"]}
package/PluginInfo.mjs ADDED
@@ -0,0 +1,76 @@
1
+ // PluginInfo.ts
2
+ import * as Alias from "@taqueria/protocol/Alias";
3
+ import createType from "@taqueria/protocol/Base";
4
+ import * as ParsedOperation from "@taqueria/protocol/ParsedOperation";
5
+ import * as ParsedTemplate from "@taqueria/protocol/ParsedTemplate";
6
+ import * as Task from "@taqueria/protocol/Task";
7
+ import * as VersionNumber from "@taqueria/protocol/VersionNumber";
8
+ import { z } from "zod";
9
+ var rawSchema3 = z.object({
10
+ name: z.string({ description: "Plugin Name" }).min(1),
11
+ version: VersionNumber.rawSchema.describe("Plugin Version #"),
12
+ schema: VersionNumber.rawSchema.describe("Plugin Schema Version #"),
13
+ alias: Alias.rawSchema.describe("Plugin Alias"),
14
+ tasks: z.preprocess(
15
+ (val) => val ?? [],
16
+ z.array(
17
+ Task.schemas.schema.describe("Plugin Task"),
18
+ { description: "Plugin Tasks" }
19
+ )
20
+ ).optional(),
21
+ operations: z.preprocess(
22
+ (val) => val ?? [],
23
+ z.array(
24
+ ParsedOperation.schemas.schema.describe("Plugin Operation"),
25
+ { description: "Plugin Operations" }
26
+ )
27
+ ).optional(),
28
+ templates: z.preprocess(
29
+ (val) => val ?? [],
30
+ z.array(
31
+ ParsedTemplate.schemas.schema.describe("Plugin Template")
32
+ )
33
+ ).optional()
34
+ });
35
+ var internalSchema = rawSchema3.extend({
36
+ version: VersionNumber.schemas.schema.describe("Plugin Version #"),
37
+ schema: VersionNumber.schemas.schema.describe("Plugin Schema Version #"),
38
+ alias: Alias.schemas.schema.describe("Plugin Alias"),
39
+ tasks: z.preprocess(
40
+ (val) => val ?? [],
41
+ z.array(
42
+ Task.schemas.schema.describe("Plugin Task"),
43
+ { description: "Plugin Tasks" }
44
+ )
45
+ ).optional(),
46
+ operations: z.preprocess(
47
+ (val) => val ?? [],
48
+ z.array(
49
+ ParsedOperation.schemas.schema.describe("Plugin Operation"),
50
+ { description: "Plugin Operations" }
51
+ )
52
+ ).optional(),
53
+ templates: z.preprocess(
54
+ (val) => val ?? [],
55
+ z.array(
56
+ ParsedTemplate.schemas.schema.describe("Plugin Template")
57
+ )
58
+ ).optional()
59
+ }).describe("Plugin Schema");
60
+ var { schemas: schemas6, factory } = createType({
61
+ rawSchema: rawSchema3,
62
+ internalSchema,
63
+ parseErrMsg: "The schema returned from the plugin is invalid",
64
+ unknownErrMsg: "Something went wrong parsing the schema from a plugin"
65
+ });
66
+ var { create, of, make } = factory;
67
+ export {
68
+ create,
69
+ factory,
70
+ internalSchema,
71
+ make,
72
+ of,
73
+ rawSchema3 as rawSchema,
74
+ schemas6 as schemas
75
+ };
76
+ //# sourceMappingURL=PluginInfo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PluginInfo.ts"],"sourcesContent":["import * as Alias from '@taqueria/protocol/Alias';\nimport createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as ParsedOperation from '@taqueria/protocol/ParsedOperation';\nimport * as ParsedTemplate from '@taqueria/protocol/ParsedTemplate';\nimport * as Task from '@taqueria/protocol/Task';\nimport * as VersionNumber from '@taqueria/protocol/VersionNumber';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tname: z.string({ description: 'Plugin Name' }).min(1),\n\tversion: VersionNumber.rawSchema.describe('Plugin Version #'),\n\tschema: VersionNumber.rawSchema.describe('Plugin Schema Version #'),\n\talias: Alias.rawSchema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n});\n\nexport const internalSchema = rawSchema.extend({\n\tversion: VersionNumber.schemas.schema.describe('Plugin Version #'),\n\tschema: VersionNumber.schemas.schema.describe('Plugin Schema Version #'),\n\talias: Alias.schemas.schema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n}).describe('Plugin Schema');\n\n// export const rawSchema = internalSchema;\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = Flatten<z.infer<typeof internalSchema>>;\n\nexport const { schemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The schema returned from the plugin is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the schema from a plugin',\n});\n\nexport type PluginInfo = Flatten<z.infer<typeof schemas.schema>>;\nexport type t = PluginInfo;\nexport const { create, of, make } = factory;\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,OAAO,gBAA6B;AACpC,YAAY,qBAAqB;AACjC,YAAY,oBAAoB;AAChC,YAAY,UAAU;AACtB,YAAY,mBAAmB;AAC/B,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE,OAAO;AAAA,EACjC,MAAM,EAAE,OAAO,EAAE,aAAa,cAAc,CAAC,EAAE,IAAI,CAAC;AAAA,EACpD,SAAuB,wBAAU,SAAS,kBAAkB;AAAA,EAC5D,QAAsB,wBAAU,SAAS,yBAAyB;AAAA,EAClE,OAAa,gBAAU,SAAS,cAAc;AAAA,EAC9C,OAAO,EAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,EAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,EAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC;AAEM,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,SAAuB,sBAAQ,OAAO,SAAS,kBAAkB;AAAA,EACjE,QAAsB,sBAAQ,OAAO,SAAS,yBAAyB;AAAA,EACvE,OAAa,cAAQ,OAAO,SAAS,cAAc;AAAA,EACnD,OAAO,EAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,EAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,EAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC,EAAE,SAAS,eAAe;AAOpB,IAAM,EAAE,SAAAC,UAAS,QAAQ,IAAI,WAA4B;AAAA,EAC/D,WAAAD;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;","names":["rawSchema","schemas"]}
@@ -0,0 +1,99 @@
1
+ import { z } from 'zod';
2
+ export declare const rawSchema: z.ZodObject<{
3
+ data: z.ZodOptional<z.ZodUnknown>;
4
+ render: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"table">, z.ZodLiteral<"string">]>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ data?: unknown;
7
+ render?: "string" | "none" | "table" | undefined;
8
+ }, {
9
+ data?: unknown;
10
+ render?: "string" | "none" | "table" | undefined;
11
+ }>;
12
+ export declare const pluginJsonResponse: {
13
+ schemas: {
14
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
15
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
16
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
17
+ data?: unknown;
18
+ render?: "string" | "none" | "table" | undefined;
19
+ } & {
20
+ readonly __kind: any;
21
+ }, any>;
22
+ };
23
+ factory: {
24
+ make: (input: {
25
+ data?: unknown;
26
+ render?: "string" | "none" | "table" | undefined;
27
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
28
+ data?: unknown;
29
+ render?: "string" | "none" | "table" | undefined;
30
+ } & {
31
+ readonly __kind: any;
32
+ }>;
33
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
34
+ data?: unknown;
35
+ render?: "string" | "none" | "table" | undefined;
36
+ } & {
37
+ readonly __kind: any;
38
+ }>;
39
+ create: (input: {
40
+ data?: unknown;
41
+ render?: "string" | "none" | "table" | undefined;
42
+ }) => {
43
+ data?: unknown;
44
+ render?: "string" | "none" | "table" | undefined;
45
+ } & {
46
+ readonly __kind: any;
47
+ };
48
+ from: (input: unknown) => {
49
+ data?: unknown;
50
+ render?: "string" | "none" | "table" | undefined;
51
+ } & {
52
+ readonly __kind: any;
53
+ };
54
+ };
55
+ };
56
+ export declare type PluginJsonResponse = z.infer<typeof pluginJsonResponse.schemas.schema>;
57
+ export declare type t = PluginJsonResponse;
58
+ export declare const schemas: {
59
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
60
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
61
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
62
+ data?: unknown;
63
+ render?: "string" | "none" | "table" | undefined;
64
+ } & {
65
+ readonly __kind: any;
66
+ }, any>;
67
+ }, factory: {
68
+ make: (input: {
69
+ data?: unknown;
70
+ render?: "string" | "none" | "table" | undefined;
71
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
72
+ data?: unknown;
73
+ render?: "string" | "none" | "table" | undefined;
74
+ } & {
75
+ readonly __kind: any;
76
+ }>;
77
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
78
+ data?: unknown;
79
+ render?: "string" | "none" | "table" | undefined;
80
+ } & {
81
+ readonly __kind: any;
82
+ }>;
83
+ create: (input: {
84
+ data?: unknown;
85
+ render?: "string" | "none" | "table" | undefined;
86
+ }) => {
87
+ data?: unknown;
88
+ render?: "string" | "none" | "table" | undefined;
89
+ } & {
90
+ readonly __kind: any;
91
+ };
92
+ from: (input: unknown) => {
93
+ data?: unknown;
94
+ render?: "string" | "none" | "table" | undefined;
95
+ } & {
96
+ readonly __kind: any;
97
+ };
98
+ };
99
+ //# sourceMappingURL=PluginJsonResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginJsonResponse.d.ts","sourceRoot":"","sources":["PluginJsonResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;EAOpB,CAAC;AAIH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK7B,CAAC;AAEH,oBAAY,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAEnF,oBAAY,CAAC,GAAG,kBAAkB,CAAC;AAEnC,eAAO,MAAQ,OAAO;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuB,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // PluginJsonResponse.ts
27
+ var PluginJsonResponse_exports = {};
28
+ __export(PluginJsonResponse_exports, {
29
+ factory: () => factory,
30
+ pluginJsonResponse: () => pluginJsonResponse,
31
+ rawSchema: () => rawSchema,
32
+ schemas: () => schemas
33
+ });
34
+ module.exports = __toCommonJS(PluginJsonResponse_exports);
35
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
36
+ var import_zod = require("zod");
37
+ var rawSchema = import_zod.z.object({
38
+ data: import_zod.z.unknown().optional(),
39
+ render: import_zod.z.union([
40
+ import_zod.z.literal("none"),
41
+ import_zod.z.literal("table"),
42
+ import_zod.z.literal("string")
43
+ ]).optional()
44
+ });
45
+ var pluginJsonResponse = (0, import_Base.default)({
46
+ rawSchema,
47
+ internalSchema: rawSchema,
48
+ parseErrMsg: (value) => `The following JSON response is invalid: ${value}`,
49
+ unknownErrMsg: "Something went wrong trying to parse the template"
50
+ });
51
+ var { schemas, factory } = pluginJsonResponse;
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ factory,
55
+ pluginJsonResponse,
56
+ rawSchema,
57
+ schemas
58
+ });
59
+ //# sourceMappingURL=PluginJsonResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PluginJsonResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdata: z.unknown().optional(),\n\trender: z.union([\n\t\tz.literal('none'),\n\t\tz.literal('table'),\n\t\tz.literal('string'),\n\t]).optional(),\n});\n\ntype RawPluginJsonResponseInput = z.infer<typeof rawSchema>;\n\nexport const pluginJsonResponse = createType<RawPluginJsonResponseInput, RawPluginJsonResponseInput>({\n\trawSchema: rawSchema,\n\tinternalSchema: rawSchema,\n\tparseErrMsg: (value: unknown) => `The following JSON response is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the template',\n});\n\nexport type PluginJsonResponse = z.infer<typeof pluginJsonResponse.schemas.schema>;\n\nexport type t = PluginJsonResponse;\n\nexport const { schemas, factory } = pluginJsonResponse;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aAAE,OAAO;AAAA,EACjC,MAAM,aAAE,QAAQ,EAAE,SAAS;AAAA,EAC3B,QAAQ,aAAE,MAAM;AAAA,IACf,aAAE,QAAQ,MAAM;AAAA,IAChB,aAAE,QAAQ,OAAO;AAAA,IACjB,aAAE,QAAQ,QAAQ;AAAA,EACnB,CAAC,EAAE,SAAS;AACb,CAAC;AAIM,IAAM,yBAAqB,YAAAA,SAAmE;AAAA,EACpG;AAAA,EACA,gBAAgB;AAAA,EAChB,aAAa,CAAC,UAAmB,2CAA2C;AAAA,EAC5E,eAAe;AAChB,CAAC;AAMM,IAAM,EAAE,SAAS,QAAQ,IAAI;","names":["createType"]}
@@ -0,0 +1,25 @@
1
+ // PluginJsonResponse.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import { z } from "zod";
4
+ var rawSchema = z.object({
5
+ data: z.unknown().optional(),
6
+ render: z.union([
7
+ z.literal("none"),
8
+ z.literal("table"),
9
+ z.literal("string")
10
+ ]).optional()
11
+ });
12
+ var pluginJsonResponse = createType({
13
+ rawSchema,
14
+ internalSchema: rawSchema,
15
+ parseErrMsg: (value) => `The following JSON response is invalid: ${value}`,
16
+ unknownErrMsg: "Something went wrong trying to parse the template"
17
+ });
18
+ var { schemas, factory } = pluginJsonResponse;
19
+ export {
20
+ factory,
21
+ pluginJsonResponse,
22
+ rawSchema,
23
+ schemas
24
+ };
25
+ //# sourceMappingURL=PluginJsonResponse.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PluginJsonResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdata: z.unknown().optional(),\n\trender: z.union([\n\t\tz.literal('none'),\n\t\tz.literal('table'),\n\t\tz.literal('string'),\n\t]).optional(),\n});\n\ntype RawPluginJsonResponseInput = z.infer<typeof rawSchema>;\n\nexport const pluginJsonResponse = createType<RawPluginJsonResponseInput, RawPluginJsonResponseInput>({\n\trawSchema: rawSchema,\n\tinternalSchema: rawSchema,\n\tparseErrMsg: (value: unknown) => `The following JSON response is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the template',\n});\n\nexport type PluginJsonResponse = z.infer<typeof pluginJsonResponse.schemas.schema>;\n\nexport type t = PluginJsonResponse;\n\nexport const { schemas, factory } = pluginJsonResponse;\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EAAE,OAAO;AAAA,EACjC,MAAM,EAAE,QAAQ,EAAE,SAAS;AAAA,EAC3B,QAAQ,EAAE,MAAM;AAAA,IACf,EAAE,QAAQ,MAAM;AAAA,IAChB,EAAE,QAAQ,OAAO;AAAA,IACjB,EAAE,QAAQ,QAAQ;AAAA,EACnB,CAAC,EAAE,SAAS;AACb,CAAC;AAIM,IAAM,qBAAqB,WAAmE;AAAA,EACpG;AAAA,EACA,gBAAgB;AAAA,EAChB,aAAa,CAAC,UAAmB,2CAA2C;AAAA,EAC5E,eAAe;AAChB,CAAC;AAMM,IAAM,EAAE,SAAS,QAAQ,IAAI;","names":[]}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare const rawSchema: z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodVoid]>;
3
+ export declare const schemas: {
4
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
5
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
6
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, any, any>;
7
+ }, factory: {
8
+ make: (input: any) => import("fluture").FutureInstance<import("./TaqError").TaqError, any>;
9
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, any>;
10
+ create: (input: any) => any;
11
+ from: (input: unknown) => any;
12
+ };
13
+ export declare type PluginProxyResponse = z.infer<typeof schemas.schema>;
14
+ export declare type t = PluginProxyResponse;
15
+ export declare const of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, any>, make: (input: any) => import("fluture").FutureInstance<import("./TaqError").TaqError, any>, create: (input: any) => any;
16
+ //# sourceMappingURL=PluginProxyResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginProxyResponse.d.ts","sourceRoot":"","sources":["PluginProxyResponse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,SAAS,4DAAiB,CAAC;AAIxC,eAAO,MAAQ,OAAO;;;;GAAE,OAAO;;;;;CAK7B,CAAC;AAEH,oBAAY,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACjE,oBAAY,CAAC,GAAG,mBAAmB,CAAC;AAEpC,eAAO,MAAQ,EAAE,4FAAE,IAAI,wFAAE,MAAM,qBAAY,CAAC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // PluginProxyResponse.ts
27
+ var PluginProxyResponse_exports = {};
28
+ __export(PluginProxyResponse_exports, {
29
+ create: () => create,
30
+ factory: () => factory,
31
+ make: () => make,
32
+ of: () => of,
33
+ rawSchema: () => rawSchema,
34
+ schemas: () => schemas2
35
+ });
36
+ module.exports = __toCommonJS(PluginProxyResponse_exports);
37
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
38
+ var PluginJsonResponse = __toESM(require("@taqueria/protocol/PluginJsonResponse"));
39
+ var import_zod = require("zod");
40
+ var internalSchema = import_zod.z.union([
41
+ PluginJsonResponse.schemas.internalSchema,
42
+ import_zod.z.void()
43
+ ]);
44
+ var rawSchema = internalSchema;
45
+ var { schemas: schemas2, factory } = (0, import_Base.default)({
46
+ rawSchema,
47
+ internalSchema,
48
+ parseErrMsg: "The response from the proxy request is invalid",
49
+ unknownErrMsg: "Something went wrong parsing the proxy response from the plugin"
50
+ });
51
+ var { of, make, create } = factory;
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ create,
55
+ factory,
56
+ make,
57
+ of,
58
+ rawSchema,
59
+ schemas
60
+ });
61
+ //# sourceMappingURL=PluginProxyResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PluginProxyResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as PluginJsonResponse from '@taqueria/protocol/PluginJsonResponse';\nimport { z } from 'zod';\n\nconst internalSchema = z.union([\n\tPluginJsonResponse.schemas.internalSchema,\n\tz.void(),\n]);\n\nexport const rawSchema = internalSchema;\n\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The response from the proxy request is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the proxy response from the plugin',\n});\n\nexport type PluginProxyResponse = z.infer<typeof schemas.schema>;\nexport type t = PluginProxyResponse;\n\nexport const { of, make, create } = factory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,yBAAoC;AACpC,iBAAkB;AAElB,IAAM,iBAAiB,aAAE,MAAM;AAAA,EACX,2BAAQ;AAAA,EAC3B,aAAE,KAAK;AACR,CAAC;AAEM,IAAM,YAAY;AAIlB,IAAM,EAAE,SAAAA,UAAS,QAAQ,QAAI,YAAAC,SAAyB;AAAA,EAC5D;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,IAAI,MAAM,OAAO,IAAI;","names":["schemas","createType"]}
@@ -0,0 +1,25 @@
1
+ // PluginProxyResponse.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import * as PluginJsonResponse from "@taqueria/protocol/PluginJsonResponse";
4
+ import { z } from "zod";
5
+ var internalSchema = z.union([
6
+ PluginJsonResponse.schemas.internalSchema,
7
+ z.void()
8
+ ]);
9
+ var rawSchema = internalSchema;
10
+ var { schemas: schemas2, factory } = createType({
11
+ rawSchema,
12
+ internalSchema,
13
+ parseErrMsg: "The response from the proxy request is invalid",
14
+ unknownErrMsg: "Something went wrong parsing the proxy response from the plugin"
15
+ });
16
+ var { of, make, create } = factory;
17
+ export {
18
+ create,
19
+ factory,
20
+ make,
21
+ of,
22
+ rawSchema,
23
+ schemas2 as schemas
24
+ };
25
+ //# sourceMappingURL=PluginProxyResponse.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PluginProxyResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as PluginJsonResponse from '@taqueria/protocol/PluginJsonResponse';\nimport { z } from 'zod';\n\nconst internalSchema = z.union([\n\tPluginJsonResponse.schemas.internalSchema,\n\tz.void(),\n]);\n\nexport const rawSchema = internalSchema;\n\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The response from the proxy request is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the proxy response from the plugin',\n});\n\nexport type PluginProxyResponse = z.infer<typeof schemas.schema>;\nexport type t = PluginProxyResponse;\n\nexport const { of, make, create } = factory;\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,YAAY,wBAAwB;AACpC,SAAS,SAAS;AAElB,IAAM,iBAAiB,EAAE,MAAM;AAAA,EACX,2BAAQ;AAAA,EAC3B,EAAE,KAAK;AACR,CAAC;AAEM,IAAM,YAAY;AAIlB,IAAM,EAAE,SAAAA,UAAS,QAAQ,IAAI,WAAyB;AAAA,EAC5D;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,IAAI,MAAM,OAAO,IAAI;","names":["schemas"]}
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare const rawSchema: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"json">, z.ZodLiteral<"application/json">, z.ZodLiteral<"none">]>>>, "none" | "json" | "application/json" | undefined, unknown>;
3
+ export declare const schemas: {
4
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
5
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
6
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, ("none" | "json" | "application/json" | undefined) & {
7
+ readonly __kind: any;
8
+ }, any>;
9
+ }, factory: {
10
+ make: (input: "none" | "json" | "application/json" | undefined) => import("fluture").FutureInstance<import("./TaqError").TaqError, ("none" | "json" | "application/json" | undefined) & {
11
+ readonly __kind: any;
12
+ }>;
13
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, ("none" | "json" | "application/json" | undefined) & {
14
+ readonly __kind: any;
15
+ }>;
16
+ create: (input: "none" | "json" | "application/json" | undefined) => ("none" | "json" | "application/json" | undefined) & {
17
+ readonly __kind: any;
18
+ };
19
+ from: (input: unknown) => ("none" | "json" | "application/json" | undefined) & {
20
+ readonly __kind: any;
21
+ };
22
+ };
23
+ export declare type PluginResponseEncoding = z.infer<typeof schemas.schema>;
24
+ export declare type t = PluginResponseEncoding;
25
+ export declare const create: (input: "none" | "json" | "application/json" | undefined) => ("none" | "json" | "application/json" | undefined) & {
26
+ readonly __kind: any;
27
+ }, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, ("none" | "json" | "application/json" | undefined) & {
28
+ readonly __kind: any;
29
+ }>, make: (input: "none" | "json" | "application/json" | undefined) => import("fluture").FutureInstance<import("./TaqError").TaqError, ("none" | "json" | "application/json" | undefined) & {
30
+ readonly __kind: any;
31
+ }>;
32
+ //# sourceMappingURL=PluginResponseEncoding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginResponseEncoding.d.ts","sourceRoot":"","sources":["PluginResponseEncoding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS,kMASrB,CAAC;AAIF,eAAO,MAAQ,OAAO;;;;;;GAAE,OAAO;;;;;;;;;;;;;CAK7B,CAAC;AAEH,oBAAY,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACpE,oBAAY,CAAC,GAAG,sBAAsB,CAAC;AAEvC,eAAO,MAAQ,MAAM;;GAAE,EAAE;;IAAE,IAAI;;EAAY,CAAC"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // PluginResponseEncoding.ts
27
+ var PluginResponseEncoding_exports = {};
28
+ __export(PluginResponseEncoding_exports, {
29
+ create: () => create,
30
+ factory: () => factory,
31
+ make: () => make,
32
+ of: () => of,
33
+ rawSchema: () => rawSchema,
34
+ schemas: () => schemas
35
+ });
36
+ module.exports = __toCommonJS(PluginResponseEncoding_exports);
37
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
38
+ var import_zod = require("zod");
39
+ var rawSchema = import_zod.z.preprocess(
40
+ (val) => val ?? "none",
41
+ import_zod.z.union([
42
+ import_zod.z.literal("json"),
43
+ import_zod.z.literal("application/json"),
44
+ import_zod.z.literal("none")
45
+ ]).default("none").optional()
46
+ );
47
+ var { schemas, factory } = (0, import_Base.default)({
48
+ rawSchema,
49
+ internalSchema: rawSchema,
50
+ parseErrMsg: (value) => `The following encoding is invalid: ${value}`,
51
+ unknownErrMsg: "Something went wrong trying to parse the encoding"
52
+ });
53
+ var { create, of, make } = factory;
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ create,
57
+ factory,
58
+ make,
59
+ of,
60
+ rawSchema,
61
+ schemas
62
+ });
63
+ //# sourceMappingURL=PluginResponseEncoding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PluginResponseEncoding.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.preprocess(\n\t(val: unknown) => val ?? 'none',\n\tz.union([\n\t\tz.literal('json'),\n\t\tz.literal('application/json'),\n\t\tz.literal('none'),\n\t])\n\t\t.default('none')\n\t\t.optional(),\n);\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas, factory } = createType<RawInput, RawInput>({\n\trawSchema,\n\tinternalSchema: rawSchema,\n\tparseErrMsg: (value: unknown) => `The following encoding is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the encoding',\n});\n\nexport type PluginResponseEncoding = z.infer<typeof schemas.schema>;\nexport type t = PluginResponseEncoding;\n\nexport const { create, of, make } = factory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aAAE;AAAA,EAC1B,CAAC,QAAiB,OAAO;AAAA,EACzB,aAAE,MAAM;AAAA,IACP,aAAE,QAAQ,MAAM;AAAA,IAChB,aAAE,QAAQ,kBAAkB;AAAA,IAC5B,aAAE,QAAQ,MAAM;AAAA,EACjB,CAAC,EACC,QAAQ,MAAM,EACd,SAAS;AACZ;AAIO,IAAM,EAAE,SAAS,QAAQ,QAAI,YAAAA,SAA+B;AAAA,EAClE;AAAA,EACA,gBAAgB;AAAA,EAChB,aAAa,CAAC,UAAmB,sCAAsC;AAAA,EACvE,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;","names":["createType"]}