@taqueria/protocol 0.14.4 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/Alias.d.ts +48 -0
  2. package/Alias.js +70 -0
  3. package/Alias.js.map +1 -0
  4. package/Alias.mjs +34 -0
  5. package/Alias.mjs.map +1 -0
  6. package/Base.d.ts +50 -0
  7. package/Base.js +83 -0
  8. package/Base.js.map +1 -0
  9. package/Base.mjs +57 -0
  10. package/Base.mjs.map +1 -0
  11. package/Command.d.ts +30 -0
  12. package/Command.js +61 -0
  13. package/Command.js.map +1 -0
  14. package/Command.mjs +25 -0
  15. package/Command.mjs.map +1 -0
  16. package/Config.d.ts +2062 -0
  17. package/Config.js +175 -0
  18. package/Config.js.map +1 -0
  19. package/Config.mjs +135 -0
  20. package/Config.mjs.map +1 -0
  21. package/Contract.d.ts +88 -0
  22. package/Contract.js +68 -0
  23. package/Contract.js.map +1 -0
  24. package/Contract.mjs +32 -0
  25. package/Contract.mjs.map +1 -0
  26. package/Crypto.d.ts +5 -0
  27. package/Crypto.js +35 -0
  28. package/Crypto.js.map +1 -0
  29. package/Crypto.mjs +10 -0
  30. package/Crypto.mjs.map +1 -0
  31. package/EconomicalProtocolHash.d.ts +48 -0
  32. package/EconomicalProtocolHash.js +64 -0
  33. package/EconomicalProtocolHash.js.map +1 -0
  34. package/EconomicalProtocolHash.mjs +27 -0
  35. package/EconomicalProtocolHash.mjs.map +1 -0
  36. package/Environment.d.ts +142 -0
  37. package/Environment.js +78 -0
  38. package/Environment.js.map +1 -0
  39. package/Environment.mjs +40 -0
  40. package/Environment.mjs.map +1 -0
  41. package/EphemeralState.d.ts +4561 -0
  42. package/EphemeralState.js +268 -0
  43. package/EphemeralState.js.map +1 -0
  44. package/EphemeralState.mjs +228 -0
  45. package/EphemeralState.mjs.map +1 -0
  46. package/Faucet.d.ts +210 -0
  47. package/Faucet.js +84 -0
  48. package/Faucet.js.map +1 -0
  49. package/Faucet.mjs +47 -0
  50. package/Faucet.mjs.map +1 -0
  51. package/HumanReadableIdentifier.d.ts +30 -0
  52. package/HumanReadableIdentifier.js +61 -0
  53. package/HumanReadableIdentifier.js.map +1 -0
  54. package/HumanReadableIdentifier.mjs +25 -0
  55. package/HumanReadableIdentifier.mjs.map +1 -0
  56. package/InstalledPlugin.d.ts +99 -0
  57. package/InstalledPlugin.js +67 -0
  58. package/InstalledPlugin.js.map +1 -0
  59. package/InstalledPlugin.mjs +30 -0
  60. package/InstalledPlugin.mjs.map +1 -0
  61. package/LoadedConfig.d.ts +2325 -0
  62. package/LoadedConfig.js +80 -0
  63. package/LoadedConfig.js.map +1 -0
  64. package/LoadedConfig.mjs +41 -0
  65. package/LoadedConfig.mjs.map +1 -0
  66. package/MetadataConfig.d.ts +162 -0
  67. package/MetadataConfig.js +75 -0
  68. package/MetadataConfig.js.map +1 -0
  69. package/MetadataConfig.mjs +38 -0
  70. package/MetadataConfig.mjs.map +1 -0
  71. package/NetworkConfig.d.ts +431 -0
  72. package/NetworkConfig.js +77 -0
  73. package/NetworkConfig.js.map +1 -0
  74. package/NetworkConfig.mjs +40 -0
  75. package/NetworkConfig.mjs.map +1 -0
  76. package/Operation.d.ts +1476 -0
  77. package/Operation.js +98 -0
  78. package/Operation.js.map +1 -0
  79. package/Operation.mjs +60 -0
  80. package/Operation.mjs.map +1 -0
  81. package/Option.d.ts +316 -0
  82. package/Option.js +103 -0
  83. package/Option.js.map +1 -0
  84. package/Option.mjs +65 -0
  85. package/Option.mjs.map +1 -0
  86. package/ParsedOperation.d.ts +888 -0
  87. package/ParsedOperation.js +63 -0
  88. package/ParsedOperation.js.map +1 -0
  89. package/ParsedOperation.mjs +26 -0
  90. package/ParsedOperation.mjs.map +1 -0
  91. package/ParsedTemplate.d.ts +1032 -0
  92. package/ParsedTemplate.js +71 -0
  93. package/ParsedTemplate.js.map +1 -0
  94. package/ParsedTemplate.mjs +34 -0
  95. package/ParsedTemplate.mjs.map +1 -0
  96. package/PersistentState.d.ts +581 -0
  97. package/PersistentState.js +98 -0
  98. package/PersistentState.js.map +1 -0
  99. package/PersistentState.mjs +60 -0
  100. package/PersistentState.mjs.map +1 -0
  101. package/PluginActionName.d.ts +23 -0
  102. package/PluginActionName.js +48 -0
  103. package/PluginActionName.js.map +1 -0
  104. package/PluginActionName.mjs +23 -0
  105. package/PluginActionName.mjs.map +1 -0
  106. package/PluginDependenciesResponse.d.ts +158 -0
  107. package/PluginDependenciesResponse.js +63 -0
  108. package/PluginDependenciesResponse.js.map +1 -0
  109. package/PluginDependenciesResponse.mjs +28 -0
  110. package/PluginDependenciesResponse.mjs.map +1 -0
  111. package/PluginInfo.d.ts +3425 -0
  112. package/PluginInfo.js +113 -0
  113. package/PluginInfo.js.map +1 -0
  114. package/PluginInfo.mjs +76 -0
  115. package/PluginInfo.mjs.map +1 -0
  116. package/PluginJsonResponse.d.ts +104 -0
  117. package/PluginJsonResponse.js +59 -0
  118. package/PluginJsonResponse.js.map +1 -0
  119. package/PluginJsonResponse.mjs +25 -0
  120. package/PluginJsonResponse.mjs.map +1 -0
  121. package/PluginProxyResponse.d.ts +23 -0
  122. package/PluginProxyResponse.js +61 -0
  123. package/PluginProxyResponse.js.map +1 -0
  124. package/PluginProxyResponse.mjs +25 -0
  125. package/PluginProxyResponse.mjs.map +1 -0
  126. package/PluginResponseEncoding.d.ts +39 -0
  127. package/PluginResponseEncoding.js +63 -0
  128. package/PluginResponseEncoding.js.map +1 -0
  129. package/PluginResponseEncoding.mjs +27 -0
  130. package/PluginResponseEncoding.mjs.map +1 -0
  131. package/PluginSchema.d.ts +7332 -0
  132. package/PluginSchema.js +107 -0
  133. package/PluginSchema.js.map +1 -0
  134. package/PluginSchema.mjs +70 -0
  135. package/PluginSchema.mjs.map +1 -0
  136. package/PositionalArg.d.ts +190 -0
  137. package/PositionalArg.js +78 -0
  138. package/PositionalArg.js.map +1 -0
  139. package/PositionalArg.mjs +41 -0
  140. package/PositionalArg.mjs.map +1 -0
  141. package/Provisioner.d.ts +276 -0
  142. package/Provisioner.js +86 -0
  143. package/Provisioner.js.map +1 -0
  144. package/Provisioner.mjs +48 -0
  145. package/Provisioner.mjs.map +1 -0
  146. package/ProvisionerID.d.ts +48 -0
  147. package/ProvisionerID.js +61 -0
  148. package/ProvisionerID.js.map +1 -0
  149. package/ProvisionerID.mjs +24 -0
  150. package/ProvisionerID.mjs.map +1 -0
  151. package/Provisions.d.ts +244 -0
  152. package/Provisions.js +93 -0
  153. package/Provisions.js.map +1 -0
  154. package/Provisions.mjs +57 -0
  155. package/Provisions.mjs.map +1 -0
  156. package/PublicKeyHash.d.ts +49 -0
  157. package/PublicKeyHash.js +65 -0
  158. package/PublicKeyHash.js.map +1 -0
  159. package/PublicKeyHash.mjs +28 -0
  160. package/PublicKeyHash.mjs.map +1 -0
  161. package/RequestArgs.d.ts +5557 -0
  162. package/RequestArgs.js +136 -0
  163. package/RequestArgs.js.map +1 -0
  164. package/RequestArgs.mjs +89 -0
  165. package/RequestArgs.mjs.map +1 -0
  166. package/SHA256.d.ts +33 -0
  167. package/SHA256.js +79 -0
  168. package/SHA256.js.map +1 -0
  169. package/SHA256.mjs +42 -0
  170. package/SHA256.mjs.map +1 -0
  171. package/SandboxAccountConfig.d.ts +152 -0
  172. package/SandboxAccountConfig.js +72 -0
  173. package/SandboxAccountConfig.js.map +1 -0
  174. package/SandboxAccountConfig.mjs +35 -0
  175. package/SandboxAccountConfig.mjs.map +1 -0
  176. package/SandboxConfig.d.ts +550 -0
  177. package/SandboxConfig.js +103 -0
  178. package/SandboxConfig.js.map +1 -0
  179. package/SandboxConfig.mjs +66 -0
  180. package/SandboxConfig.mjs.map +1 -0
  181. package/SanitizedAbsPath.d.ts +48 -0
  182. package/SanitizedAbsPath.js +64 -0
  183. package/SanitizedAbsPath.js.map +1 -0
  184. package/SanitizedAbsPath.mjs +27 -0
  185. package/SanitizedAbsPath.mjs.map +1 -0
  186. package/SanitizedArgs.d.ts +2907 -0
  187. package/SanitizedArgs.js +269 -0
  188. package/SanitizedArgs.js.map +1 -0
  189. package/SanitizedArgs.mjs +197 -0
  190. package/SanitizedArgs.mjs.map +1 -0
  191. package/SanitizedPath.d.ts +30 -0
  192. package/SanitizedPath.js +64 -0
  193. package/SanitizedPath.js.map +1 -0
  194. package/SanitizedPath.mjs +28 -0
  195. package/SanitizedPath.mjs.map +1 -0
  196. package/ScaffoldConfig.d.ts +6 -0
  197. package/ScaffoldConfig.js +19 -0
  198. package/ScaffoldConfig.js.map +1 -0
  199. package/ScaffoldConfig.mjs +1 -0
  200. package/ScaffoldConfig.mjs.map +1 -0
  201. package/Settings.d.ts +82 -0
  202. package/Settings.js +66 -0
  203. package/Settings.js.map +1 -0
  204. package/Settings.mjs +29 -0
  205. package/Settings.mjs.map +1 -0
  206. package/SingleChar.d.ts +48 -0
  207. package/SingleChar.js +62 -0
  208. package/SingleChar.js.map +1 -0
  209. package/SingleChar.mjs +25 -0
  210. package/SingleChar.mjs.map +1 -0
  211. package/TaqError.d.ts +24 -0
  212. package/TaqError.js +65 -0
  213. package/TaqError.js.map +1 -0
  214. package/TaqError.mjs +35 -0
  215. package/TaqError.mjs.map +1 -0
  216. package/Task.d.ts +825 -0
  217. package/Task.js +95 -0
  218. package/Task.js.map +1 -0
  219. package/Task.mjs +58 -0
  220. package/Task.mjs.map +1 -0
  221. package/Template.d.ts +1746 -0
  222. package/Template.js +117 -0
  223. package/Template.js.map +1 -0
  224. package/Template.mjs +79 -0
  225. package/Template.mjs.map +1 -0
  226. package/Timestamp.d.ts +51 -0
  227. package/Timestamp.js +65 -0
  228. package/Timestamp.js.map +1 -0
  229. package/Timestamp.mjs +27 -0
  230. package/Timestamp.mjs.map +1 -0
  231. package/Tz.d.ts +47 -0
  232. package/Tz.js +62 -0
  233. package/Tz.js.map +1 -0
  234. package/Tz.mjs +25 -0
  235. package/Tz.mjs.map +1 -0
  236. package/Url.d.ts +49 -0
  237. package/Url.js +68 -0
  238. package/Url.js.map +1 -0
  239. package/Url.mjs +30 -0
  240. package/Url.mjs.map +1 -0
  241. package/Verb.d.ts +48 -0
  242. package/Verb.js +62 -0
  243. package/Verb.js.map +1 -0
  244. package/Verb.mjs +25 -0
  245. package/Verb.mjs.map +1 -0
  246. package/VersionNumber.d.ts +30 -0
  247. package/VersionNumber.js +61 -0
  248. package/VersionNumber.js.map +1 -0
  249. package/VersionNumber.mjs +25 -0
  250. package/VersionNumber.mjs.map +1 -0
  251. package/i18n.d.ts +7 -0
  252. package/i18n.js +96 -0
  253. package/i18n.js.map +1 -0
  254. package/i18n.mjs +67 -0
  255. package/i18n.mjs.map +1 -0
  256. package/package.json +31 -3
  257. package/taqueria-protocol-types.d.ts +72 -0
  258. package/taqueria-protocol-types.js +142 -0
  259. package/taqueria-protocol-types.js.map +1 -0
  260. package/taqueria-protocol-types.mjs +76 -0
  261. package/taqueria-protocol-types.mjs.map +1 -0
  262. package/tzkt-config.d.ts +116 -0
  263. package/tzkt-config.js +65 -0
  264. package/tzkt-config.js.map +1 -0
  265. package/tzkt-config.mjs +28 -0
  266. package/tzkt-config.mjs.map +1 -0
  267. package/Alias.ts +0 -38
  268. package/Base.ts +0 -105
  269. package/Command.ts +0 -26
  270. package/Config.ts +0 -163
  271. package/Contract.ts +0 -35
  272. package/Crypto.ts +0 -3
  273. package/EconomicalProtocolHash.ts +0 -26
  274. package/Environment.ts +0 -40
  275. package/EphemeralState.ts +0 -282
  276. package/Faucet.ts +0 -46
  277. package/HumanReadableIdentifier.ts +0 -26
  278. package/InstalledPlugin.ts +0 -28
  279. package/LoadedConfig.ts +0 -45
  280. package/MetadataConfig.ts +0 -37
  281. package/NetworkConfig.ts +0 -39
  282. package/Operation.ts +0 -70
  283. package/Option.ts +0 -64
  284. package/ParsedOperation.ts +0 -33
  285. package/ParsedTemplate.ts +0 -40
  286. package/PersistentState.ts +0 -69
  287. package/PluginActionName.ts +0 -28
  288. package/PluginDependenciesResponse.ts +0 -33
  289. package/PluginInfo.ts +0 -76
  290. package/PluginJsonResponse.ts +0 -26
  291. package/PluginProxyResponse.ts +0 -24
  292. package/PluginResponseEncoding.ts +0 -27
  293. package/PluginSchema.ts +0 -81
  294. package/PositionalArg.ts +0 -41
  295. package/Provisioner.ts +0 -61
  296. package/ProvisionerID.ts +0 -25
  297. package/Provisions.ts +0 -70
  298. package/PublicKeyHash.ts +0 -28
  299. package/RequestArgs.ts +0 -97
  300. package/SHA256.ts +0 -42
  301. package/SandboxAccountConfig.ts +0 -35
  302. package/SandboxConfig.ts +0 -63
  303. package/SanitizedAbsPath.ts +0 -23
  304. package/SanitizedArgs.ts +0 -213
  305. package/SanitizedPath.ts +0 -28
  306. package/ScaffoldConfig.ts +0 -6
  307. package/Settings.ts +0 -27
  308. package/SingleChar.ts +0 -23
  309. package/TaqError.ts +0 -78
  310. package/Task.ts +0 -57
  311. package/Template.ts +0 -77
  312. package/Timestamp.ts +0 -25
  313. package/Tz.ts +0 -22
  314. package/Url.ts +0 -28
  315. package/Verb.ts +0 -23
  316. package/VersionNumber.ts +0 -25
  317. package/i18n.ts +0 -74
  318. package/taqueria-protocol-types.ts +0 -36
package/Task.d.ts ADDED
@@ -0,0 +1,825 @@
1
+ import * as fluture from 'fluture';
2
+ import { TaqError } from './TaqError.js';
3
+ import { Flatten } from '@taqueria/protocol/Base';
4
+ import { z } from 'zod';
5
+
6
+ declare const rawSchema: z.ZodObject<{
7
+ task: z.ZodString;
8
+ command: z.ZodString;
9
+ aliases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">>>;
10
+ description: z.ZodString;
11
+ example: z.ZodOptional<z.ZodString>;
12
+ hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13
+ encoding: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"json">, z.ZodLiteral<"application/json">, z.ZodLiteral<"none">]>>>, "none" | "json" | "application/json" | undefined, unknown>>;
14
+ handler: z.ZodUnion<[z.ZodLiteral<"proxy">, z.ZodString]>;
15
+ options: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
16
+ shortFlag: z.ZodOptional<z.ZodString>;
17
+ flag: z.ZodString;
18
+ description: z.ZodString;
19
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
20
+ choices: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
+ required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
22
+ boolean: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
23
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"string">, z.ZodLiteral<"number">, z.ZodLiteral<"boolean">]>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ boolean?: boolean | undefined;
26
+ type?: "string" | "number" | "boolean" | undefined;
27
+ shortFlag?: string | undefined;
28
+ defaultValue?: string | number | boolean | undefined;
29
+ choices?: string[] | undefined;
30
+ required?: boolean | undefined;
31
+ description: string;
32
+ flag: string;
33
+ }, {
34
+ boolean?: boolean | undefined;
35
+ type?: "string" | "number" | "boolean" | undefined;
36
+ shortFlag?: string | undefined;
37
+ defaultValue?: string | number | boolean | undefined;
38
+ choices?: string[] | undefined;
39
+ required?: boolean | undefined;
40
+ description: string;
41
+ flag: string;
42
+ }>, "many">>>;
43
+ positionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
44
+ placeholder: z.ZodString;
45
+ description: z.ZodString;
46
+ defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
47
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"string">, z.ZodLiteral<"number">, z.ZodLiteral<"boolean">]>>;
48
+ required: z.ZodOptional<z.ZodBoolean>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ type?: "string" | "number" | "boolean" | undefined;
51
+ defaultValue?: string | number | boolean | undefined;
52
+ required?: boolean | undefined;
53
+ description: string;
54
+ placeholder: string;
55
+ }, {
56
+ type?: "string" | "number" | "boolean" | undefined;
57
+ defaultValue?: string | number | boolean | undefined;
58
+ required?: boolean | undefined;
59
+ description: string;
60
+ placeholder: string;
61
+ }>, "many">>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ options?: {
64
+ boolean?: boolean | undefined;
65
+ type?: "string" | "number" | "boolean" | undefined;
66
+ shortFlag?: string | undefined;
67
+ defaultValue?: string | number | boolean | undefined;
68
+ choices?: string[] | undefined;
69
+ required?: boolean | undefined;
70
+ description: string;
71
+ flag: string;
72
+ }[] | undefined;
73
+ aliases?: string[] | undefined;
74
+ positionals?: {
75
+ type?: "string" | "number" | "boolean" | undefined;
76
+ defaultValue?: string | number | boolean | undefined;
77
+ required?: boolean | undefined;
78
+ description: string;
79
+ placeholder: string;
80
+ }[] | undefined;
81
+ hidden?: boolean | undefined;
82
+ encoding?: "none" | "json" | "application/json" | undefined;
83
+ example?: string | undefined;
84
+ description: string;
85
+ task: string;
86
+ command: string;
87
+ handler: string;
88
+ }, {
89
+ options?: {
90
+ boolean?: boolean | undefined;
91
+ type?: "string" | "number" | "boolean" | undefined;
92
+ shortFlag?: string | undefined;
93
+ defaultValue?: string | number | boolean | undefined;
94
+ choices?: string[] | undefined;
95
+ required?: boolean | undefined;
96
+ description: string;
97
+ flag: string;
98
+ }[] | undefined;
99
+ aliases?: string[] | undefined;
100
+ positionals?: {
101
+ type?: "string" | "number" | "boolean" | undefined;
102
+ defaultValue?: string | number | boolean | undefined;
103
+ required?: boolean | undefined;
104
+ description: string;
105
+ placeholder: string;
106
+ }[] | undefined;
107
+ hidden?: boolean | undefined;
108
+ encoding?: unknown;
109
+ example?: string | undefined;
110
+ description: string;
111
+ task: string;
112
+ command: string;
113
+ handler: string;
114
+ }>;
115
+ declare const generatedSchemas: {
116
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
117
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
118
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
119
+ options?: Flatten<{
120
+ boolean?: boolean | undefined;
121
+ type?: "string" | "number" | "boolean" | undefined;
122
+ shortFlag?: (string & {
123
+ readonly __kind: any;
124
+ }) | undefined;
125
+ defaultValue?: string | number | boolean | undefined;
126
+ choices?: string[] | undefined;
127
+ required?: boolean | undefined;
128
+ description: string;
129
+ flag: string & {
130
+ readonly __kind: any;
131
+ };
132
+ } & {
133
+ readonly __kind: any;
134
+ }>[] | undefined;
135
+ aliases?: (string & {
136
+ readonly __kind: any;
137
+ })[] | undefined;
138
+ positionals?: ({
139
+ type?: "string" | "number" | "boolean" | undefined;
140
+ defaultValue?: string | number | boolean | undefined;
141
+ required?: boolean | undefined;
142
+ description: string;
143
+ placeholder: string & {
144
+ readonly __kind: any;
145
+ };
146
+ } & {
147
+ readonly __kind: any;
148
+ })[] | undefined;
149
+ hidden?: boolean | undefined;
150
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
151
+ readonly __kind: any;
152
+ }) | undefined;
153
+ example?: string | undefined;
154
+ description: string;
155
+ task: string & {
156
+ readonly __kind: any;
157
+ };
158
+ command: string & {
159
+ readonly __kind: any;
160
+ };
161
+ handler: string;
162
+ } & {
163
+ readonly __kind: any;
164
+ }, any>;
165
+ };
166
+ declare const factory: {
167
+ make: (input: {
168
+ options?: Flatten<{
169
+ boolean?: boolean | undefined;
170
+ type?: "string" | "number" | "boolean" | undefined;
171
+ shortFlag?: (string & {
172
+ readonly __kind: any;
173
+ }) | undefined;
174
+ defaultValue?: string | number | boolean | undefined;
175
+ choices?: string[] | undefined;
176
+ required?: boolean | undefined;
177
+ description: string;
178
+ flag: string & {
179
+ readonly __kind: any;
180
+ };
181
+ } & {
182
+ readonly __kind: any;
183
+ }>[] | undefined;
184
+ aliases?: (string & {
185
+ readonly __kind: any;
186
+ })[] | undefined;
187
+ positionals?: ({
188
+ type?: "string" | "number" | "boolean" | undefined;
189
+ defaultValue?: string | number | boolean | undefined;
190
+ required?: boolean | undefined;
191
+ description: string;
192
+ placeholder: string & {
193
+ readonly __kind: any;
194
+ };
195
+ } & {
196
+ readonly __kind: any;
197
+ })[] | undefined;
198
+ hidden?: boolean | undefined;
199
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
200
+ readonly __kind: any;
201
+ }) | undefined;
202
+ example?: string | undefined;
203
+ description: string;
204
+ task: string & {
205
+ readonly __kind: any;
206
+ };
207
+ command: string & {
208
+ readonly __kind: any;
209
+ };
210
+ handler: string;
211
+ }) => fluture.FutureInstance<TaqError, {
212
+ options?: Flatten<{
213
+ boolean?: boolean | undefined;
214
+ type?: "string" | "number" | "boolean" | undefined;
215
+ shortFlag?: (string & {
216
+ readonly __kind: any;
217
+ }) | undefined;
218
+ defaultValue?: string | number | boolean | undefined;
219
+ choices?: string[] | undefined;
220
+ required?: boolean | undefined;
221
+ description: string;
222
+ flag: string & {
223
+ readonly __kind: any;
224
+ };
225
+ } & {
226
+ readonly __kind: any;
227
+ }>[] | undefined;
228
+ aliases?: (string & {
229
+ readonly __kind: any;
230
+ })[] | undefined;
231
+ positionals?: ({
232
+ type?: "string" | "number" | "boolean" | undefined;
233
+ defaultValue?: string | number | boolean | undefined;
234
+ required?: boolean | undefined;
235
+ description: string;
236
+ placeholder: string & {
237
+ readonly __kind: any;
238
+ };
239
+ } & {
240
+ readonly __kind: any;
241
+ })[] | undefined;
242
+ hidden?: boolean | undefined;
243
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
244
+ readonly __kind: any;
245
+ }) | undefined;
246
+ example?: string | undefined;
247
+ description: string;
248
+ task: string & {
249
+ readonly __kind: any;
250
+ };
251
+ command: string & {
252
+ readonly __kind: any;
253
+ };
254
+ handler: string;
255
+ } & {
256
+ readonly __kind: any;
257
+ }>;
258
+ of: (input: unknown) => fluture.FutureInstance<TaqError, {
259
+ options?: Flatten<{
260
+ boolean?: boolean | undefined;
261
+ type?: "string" | "number" | "boolean" | undefined;
262
+ shortFlag?: (string & {
263
+ readonly __kind: any;
264
+ }) | undefined;
265
+ defaultValue?: string | number | boolean | undefined;
266
+ choices?: string[] | undefined;
267
+ required?: boolean | undefined;
268
+ description: string;
269
+ flag: string & {
270
+ readonly __kind: any;
271
+ };
272
+ } & {
273
+ readonly __kind: any;
274
+ }>[] | undefined;
275
+ aliases?: (string & {
276
+ readonly __kind: any;
277
+ })[] | undefined;
278
+ positionals?: ({
279
+ type?: "string" | "number" | "boolean" | undefined;
280
+ defaultValue?: string | number | boolean | undefined;
281
+ required?: boolean | undefined;
282
+ description: string;
283
+ placeholder: string & {
284
+ readonly __kind: any;
285
+ };
286
+ } & {
287
+ readonly __kind: any;
288
+ })[] | undefined;
289
+ hidden?: boolean | undefined;
290
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
291
+ readonly __kind: any;
292
+ }) | undefined;
293
+ example?: string | undefined;
294
+ description: string;
295
+ task: string & {
296
+ readonly __kind: any;
297
+ };
298
+ command: string & {
299
+ readonly __kind: any;
300
+ };
301
+ handler: string;
302
+ } & {
303
+ readonly __kind: any;
304
+ }>;
305
+ create: (input: {
306
+ options?: {
307
+ boolean?: boolean | undefined;
308
+ type?: "string" | "number" | "boolean" | undefined;
309
+ shortFlag?: string | undefined;
310
+ defaultValue?: string | number | boolean | undefined;
311
+ choices?: string[] | undefined;
312
+ required?: boolean | undefined;
313
+ description: string;
314
+ flag: string;
315
+ }[] | undefined;
316
+ aliases?: string[] | undefined;
317
+ positionals?: {
318
+ type?: "string" | "number" | "boolean" | undefined;
319
+ defaultValue?: string | number | boolean | undefined;
320
+ required?: boolean | undefined;
321
+ description: string;
322
+ placeholder: string;
323
+ }[] | undefined;
324
+ hidden?: boolean | undefined;
325
+ encoding?: "none" | "json" | "application/json" | undefined;
326
+ example?: string | undefined;
327
+ description: string;
328
+ task: string;
329
+ command: string;
330
+ handler: string;
331
+ } | {
332
+ options?: Flatten<{
333
+ boolean?: boolean | undefined;
334
+ type?: "string" | "number" | "boolean" | undefined;
335
+ shortFlag?: (string & {
336
+ readonly __kind: any;
337
+ }) | undefined;
338
+ defaultValue?: string | number | boolean | undefined;
339
+ choices?: string[] | undefined;
340
+ required?: boolean | undefined;
341
+ description: string;
342
+ flag: string & {
343
+ readonly __kind: any;
344
+ };
345
+ } & {
346
+ readonly __kind: any;
347
+ }>[] | undefined;
348
+ aliases?: (string & {
349
+ readonly __kind: any;
350
+ })[] | undefined;
351
+ positionals?: ({
352
+ type?: "string" | "number" | "boolean" | undefined;
353
+ defaultValue?: string | number | boolean | undefined;
354
+ required?: boolean | undefined;
355
+ description: string;
356
+ placeholder: string & {
357
+ readonly __kind: any;
358
+ };
359
+ } & {
360
+ readonly __kind: any;
361
+ })[] | undefined;
362
+ hidden?: boolean | undefined;
363
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
364
+ readonly __kind: any;
365
+ }) | undefined;
366
+ example?: string | undefined;
367
+ description: string;
368
+ task: string & {
369
+ readonly __kind: any;
370
+ };
371
+ command: string & {
372
+ readonly __kind: any;
373
+ };
374
+ handler: string;
375
+ }) => {
376
+ options?: Flatten<{
377
+ boolean?: boolean | undefined;
378
+ type?: "string" | "number" | "boolean" | undefined;
379
+ shortFlag?: (string & {
380
+ readonly __kind: any;
381
+ }) | undefined;
382
+ defaultValue?: string | number | boolean | undefined;
383
+ choices?: string[] | undefined;
384
+ required?: boolean | undefined;
385
+ description: string;
386
+ flag: string & {
387
+ readonly __kind: any;
388
+ };
389
+ } & {
390
+ readonly __kind: any;
391
+ }>[] | undefined;
392
+ aliases?: (string & {
393
+ readonly __kind: any;
394
+ })[] | undefined;
395
+ positionals?: ({
396
+ type?: "string" | "number" | "boolean" | undefined;
397
+ defaultValue?: string | number | boolean | undefined;
398
+ required?: boolean | undefined;
399
+ description: string;
400
+ placeholder: string & {
401
+ readonly __kind: any;
402
+ };
403
+ } & {
404
+ readonly __kind: any;
405
+ })[] | undefined;
406
+ hidden?: boolean | undefined;
407
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
408
+ readonly __kind: any;
409
+ }) | undefined;
410
+ example?: string | undefined;
411
+ description: string;
412
+ task: string & {
413
+ readonly __kind: any;
414
+ };
415
+ command: string & {
416
+ readonly __kind: any;
417
+ };
418
+ handler: string;
419
+ } & {
420
+ readonly __kind: any;
421
+ };
422
+ from: (input: unknown) => {
423
+ options?: Flatten<{
424
+ boolean?: boolean | undefined;
425
+ type?: "string" | "number" | "boolean" | undefined;
426
+ shortFlag?: (string & {
427
+ readonly __kind: any;
428
+ }) | undefined;
429
+ defaultValue?: string | number | boolean | undefined;
430
+ choices?: string[] | undefined;
431
+ required?: boolean | undefined;
432
+ description: string;
433
+ flag: string & {
434
+ readonly __kind: any;
435
+ };
436
+ } & {
437
+ readonly __kind: any;
438
+ }>[] | undefined;
439
+ aliases?: (string & {
440
+ readonly __kind: any;
441
+ })[] | undefined;
442
+ positionals?: ({
443
+ type?: "string" | "number" | "boolean" | undefined;
444
+ defaultValue?: string | number | boolean | undefined;
445
+ required?: boolean | undefined;
446
+ description: string;
447
+ placeholder: string & {
448
+ readonly __kind: any;
449
+ };
450
+ } & {
451
+ readonly __kind: any;
452
+ })[] | undefined;
453
+ hidden?: boolean | undefined;
454
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
455
+ readonly __kind: any;
456
+ }) | undefined;
457
+ example?: string | undefined;
458
+ description: string;
459
+ task: string & {
460
+ readonly __kind: any;
461
+ };
462
+ command: string & {
463
+ readonly __kind: any;
464
+ };
465
+ handler: string;
466
+ } & {
467
+ readonly __kind: any;
468
+ };
469
+ };
470
+ declare type Task = z.infer<typeof generatedSchemas.schema>;
471
+ declare type t = Task;
472
+ declare const create: (input: {
473
+ options?: {
474
+ boolean?: boolean | undefined;
475
+ type?: "string" | "number" | "boolean" | undefined;
476
+ shortFlag?: string | undefined;
477
+ defaultValue?: string | number | boolean | undefined;
478
+ choices?: string[] | undefined;
479
+ required?: boolean | undefined;
480
+ description: string;
481
+ flag: string;
482
+ }[] | undefined;
483
+ aliases?: string[] | undefined;
484
+ positionals?: {
485
+ type?: "string" | "number" | "boolean" | undefined;
486
+ defaultValue?: string | number | boolean | undefined;
487
+ required?: boolean | undefined;
488
+ description: string;
489
+ placeholder: string;
490
+ }[] | undefined;
491
+ hidden?: boolean | undefined;
492
+ encoding?: "none" | "json" | "application/json" | undefined;
493
+ example?: string | undefined;
494
+ description: string;
495
+ task: string;
496
+ command: string;
497
+ handler: string;
498
+ } | {
499
+ options?: Flatten<{
500
+ boolean?: boolean | undefined;
501
+ type?: "string" | "number" | "boolean" | undefined;
502
+ shortFlag?: (string & {
503
+ readonly __kind: any;
504
+ }) | undefined;
505
+ defaultValue?: string | number | boolean | undefined;
506
+ choices?: string[] | undefined;
507
+ required?: boolean | undefined;
508
+ description: string;
509
+ flag: string & {
510
+ readonly __kind: any;
511
+ };
512
+ } & {
513
+ readonly __kind: any;
514
+ }>[] | undefined;
515
+ aliases?: (string & {
516
+ readonly __kind: any;
517
+ })[] | undefined;
518
+ positionals?: ({
519
+ type?: "string" | "number" | "boolean" | undefined;
520
+ defaultValue?: string | number | boolean | undefined;
521
+ required?: boolean | undefined;
522
+ description: string;
523
+ placeholder: string & {
524
+ readonly __kind: any;
525
+ };
526
+ } & {
527
+ readonly __kind: any;
528
+ })[] | undefined;
529
+ hidden?: boolean | undefined;
530
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
531
+ readonly __kind: any;
532
+ }) | undefined;
533
+ example?: string | undefined;
534
+ description: string;
535
+ task: string & {
536
+ readonly __kind: any;
537
+ };
538
+ command: string & {
539
+ readonly __kind: any;
540
+ };
541
+ handler: string;
542
+ }) => {
543
+ options?: Flatten<{
544
+ boolean?: boolean | undefined;
545
+ type?: "string" | "number" | "boolean" | undefined;
546
+ shortFlag?: (string & {
547
+ readonly __kind: any;
548
+ }) | undefined;
549
+ defaultValue?: string | number | boolean | undefined;
550
+ choices?: string[] | undefined;
551
+ required?: boolean | undefined;
552
+ description: string;
553
+ flag: string & {
554
+ readonly __kind: any;
555
+ };
556
+ } & {
557
+ readonly __kind: any;
558
+ }>[] | undefined;
559
+ aliases?: (string & {
560
+ readonly __kind: any;
561
+ })[] | undefined;
562
+ positionals?: ({
563
+ type?: "string" | "number" | "boolean" | undefined;
564
+ defaultValue?: string | number | boolean | undefined;
565
+ required?: boolean | undefined;
566
+ description: string;
567
+ placeholder: string & {
568
+ readonly __kind: any;
569
+ };
570
+ } & {
571
+ readonly __kind: any;
572
+ })[] | undefined;
573
+ hidden?: boolean | undefined;
574
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
575
+ readonly __kind: any;
576
+ }) | undefined;
577
+ example?: string | undefined;
578
+ description: string;
579
+ task: string & {
580
+ readonly __kind: any;
581
+ };
582
+ command: string & {
583
+ readonly __kind: any;
584
+ };
585
+ handler: string;
586
+ } & {
587
+ readonly __kind: any;
588
+ };
589
+ declare const make: (input: {
590
+ options?: Flatten<{
591
+ boolean?: boolean | undefined;
592
+ type?: "string" | "number" | "boolean" | undefined;
593
+ shortFlag?: (string & {
594
+ readonly __kind: any;
595
+ }) | undefined;
596
+ defaultValue?: string | number | boolean | undefined;
597
+ choices?: string[] | undefined;
598
+ required?: boolean | undefined;
599
+ description: string;
600
+ flag: string & {
601
+ readonly __kind: any;
602
+ };
603
+ } & {
604
+ readonly __kind: any;
605
+ }>[] | undefined;
606
+ aliases?: (string & {
607
+ readonly __kind: any;
608
+ })[] | undefined;
609
+ positionals?: ({
610
+ type?: "string" | "number" | "boolean" | undefined;
611
+ defaultValue?: string | number | boolean | undefined;
612
+ required?: boolean | undefined;
613
+ description: string;
614
+ placeholder: string & {
615
+ readonly __kind: any;
616
+ };
617
+ } & {
618
+ readonly __kind: any;
619
+ })[] | undefined;
620
+ hidden?: boolean | undefined;
621
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
622
+ readonly __kind: any;
623
+ }) | undefined;
624
+ example?: string | undefined;
625
+ description: string;
626
+ task: string & {
627
+ readonly __kind: any;
628
+ };
629
+ command: string & {
630
+ readonly __kind: any;
631
+ };
632
+ handler: string;
633
+ }) => fluture.FutureInstance<TaqError, {
634
+ options?: Flatten<{
635
+ boolean?: boolean | undefined;
636
+ type?: "string" | "number" | "boolean" | undefined;
637
+ shortFlag?: (string & {
638
+ readonly __kind: any;
639
+ }) | undefined;
640
+ defaultValue?: string | number | boolean | undefined;
641
+ choices?: string[] | undefined;
642
+ required?: boolean | undefined;
643
+ description: string;
644
+ flag: string & {
645
+ readonly __kind: any;
646
+ };
647
+ } & {
648
+ readonly __kind: any;
649
+ }>[] | undefined;
650
+ aliases?: (string & {
651
+ readonly __kind: any;
652
+ })[] | undefined;
653
+ positionals?: ({
654
+ type?: "string" | "number" | "boolean" | undefined;
655
+ defaultValue?: string | number | boolean | undefined;
656
+ required?: boolean | undefined;
657
+ description: string;
658
+ placeholder: string & {
659
+ readonly __kind: any;
660
+ };
661
+ } & {
662
+ readonly __kind: any;
663
+ })[] | undefined;
664
+ hidden?: boolean | undefined;
665
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
666
+ readonly __kind: any;
667
+ }) | undefined;
668
+ example?: string | undefined;
669
+ description: string;
670
+ task: string & {
671
+ readonly __kind: any;
672
+ };
673
+ command: string & {
674
+ readonly __kind: any;
675
+ };
676
+ handler: string;
677
+ } & {
678
+ readonly __kind: any;
679
+ }>;
680
+ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, {
681
+ options?: Flatten<{
682
+ boolean?: boolean | undefined;
683
+ type?: "string" | "number" | "boolean" | undefined;
684
+ shortFlag?: (string & {
685
+ readonly __kind: any;
686
+ }) | undefined;
687
+ defaultValue?: string | number | boolean | undefined;
688
+ choices?: string[] | undefined;
689
+ required?: boolean | undefined;
690
+ description: string;
691
+ flag: string & {
692
+ readonly __kind: any;
693
+ };
694
+ } & {
695
+ readonly __kind: any;
696
+ }>[] | undefined;
697
+ aliases?: (string & {
698
+ readonly __kind: any;
699
+ })[] | undefined;
700
+ positionals?: ({
701
+ type?: "string" | "number" | "boolean" | undefined;
702
+ defaultValue?: string | number | boolean | undefined;
703
+ required?: boolean | undefined;
704
+ description: string;
705
+ placeholder: string & {
706
+ readonly __kind: any;
707
+ };
708
+ } & {
709
+ readonly __kind: any;
710
+ })[] | undefined;
711
+ hidden?: boolean | undefined;
712
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
713
+ readonly __kind: any;
714
+ }) | undefined;
715
+ example?: string | undefined;
716
+ description: string;
717
+ task: string & {
718
+ readonly __kind: any;
719
+ };
720
+ command: string & {
721
+ readonly __kind: any;
722
+ };
723
+ handler: string;
724
+ } & {
725
+ readonly __kind: any;
726
+ }>;
727
+ declare const schemas: {
728
+ schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
729
+ options?: Flatten<{
730
+ boolean?: boolean | undefined;
731
+ type?: "string" | "number" | "boolean" | undefined;
732
+ shortFlag?: (string & {
733
+ readonly __kind: any;
734
+ }) | undefined;
735
+ defaultValue?: string | number | boolean | undefined;
736
+ choices?: string[] | undefined;
737
+ required?: boolean | undefined;
738
+ description: string;
739
+ flag: string & {
740
+ readonly __kind: any;
741
+ };
742
+ } & {
743
+ readonly __kind: any;
744
+ }>[] | undefined;
745
+ aliases?: (string & {
746
+ readonly __kind: any;
747
+ })[] | undefined;
748
+ positionals?: ({
749
+ type?: "string" | "number" | "boolean" | undefined;
750
+ defaultValue?: string | number | boolean | undefined;
751
+ required?: boolean | undefined;
752
+ description: string;
753
+ placeholder: string & {
754
+ readonly __kind: any;
755
+ };
756
+ } & {
757
+ readonly __kind: any;
758
+ })[] | undefined;
759
+ hidden?: boolean | undefined;
760
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
761
+ readonly __kind: any;
762
+ }) | undefined;
763
+ example?: string | undefined;
764
+ description: string;
765
+ task: string & {
766
+ readonly __kind: any;
767
+ };
768
+ command: string & {
769
+ readonly __kind: any;
770
+ };
771
+ handler: string;
772
+ } & {
773
+ readonly __kind: any;
774
+ }, any>, {
775
+ options?: Flatten<{
776
+ boolean?: boolean | undefined;
777
+ type?: "string" | "number" | "boolean" | undefined;
778
+ shortFlag?: (string & {
779
+ readonly __kind: any;
780
+ }) | undefined;
781
+ defaultValue?: string | number | boolean | undefined;
782
+ choices?: string[] | undefined;
783
+ required?: boolean | undefined;
784
+ description: string;
785
+ flag: string & {
786
+ readonly __kind: any;
787
+ };
788
+ } & {
789
+ readonly __kind: any;
790
+ }>[] | undefined;
791
+ aliases?: (string & {
792
+ readonly __kind: any;
793
+ })[] | undefined;
794
+ positionals?: ({
795
+ type?: "string" | "number" | "boolean" | undefined;
796
+ defaultValue?: string | number | boolean | undefined;
797
+ required?: boolean | undefined;
798
+ description: string;
799
+ placeholder: string & {
800
+ readonly __kind: any;
801
+ };
802
+ } & {
803
+ readonly __kind: any;
804
+ })[] | undefined;
805
+ hidden?: boolean | undefined;
806
+ encoding?: (("none" | "json" | "application/json" | undefined) & {
807
+ readonly __kind: any;
808
+ }) | undefined;
809
+ example?: string | undefined;
810
+ description: string;
811
+ task: string & {
812
+ readonly __kind: any;
813
+ };
814
+ command: string & {
815
+ readonly __kind: any;
816
+ };
817
+ handler: string;
818
+ } & {
819
+ readonly __kind: any;
820
+ }, any>;
821
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
822
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
823
+ };
824
+
825
+ export { Task, create, factory, generatedSchemas, make, of, rawSchema, schemas, t };