@taqueria/protocol 0.16.0 → 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 (319) 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 -66
  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
  319. package/tzkt-config.ts +0 -27
@@ -0,0 +1,276 @@
1
+ import * as fluture from 'fluture';
2
+ import { TaqError } from './TaqError.js';
3
+ import { z } from 'zod';
4
+
5
+ declare const rawSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ plugin: z.ZodOptional<z.ZodString>;
8
+ operation: z.ZodUnion<[z.ZodString, z.ZodLiteral<"custom">]>;
9
+ command: z.ZodOptional<z.ZodString>;
10
+ label: z.ZodOptional<z.ZodString>;
11
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ }, "passthrough", z.ZodTypeAny, {
13
+ label?: string | undefined;
14
+ plugin?: string | undefined;
15
+ command?: string | undefined;
16
+ depends_on?: string[] | undefined;
17
+ operation: string;
18
+ id: string;
19
+ }, {
20
+ label?: string | undefined;
21
+ plugin?: string | undefined;
22
+ command?: string | undefined;
23
+ depends_on?: string[] | undefined;
24
+ operation: string;
25
+ id: string;
26
+ }>;
27
+ declare const internalSchema: z.ZodObject<z.extendShape<{
28
+ id: z.ZodString;
29
+ plugin: z.ZodOptional<z.ZodString>;
30
+ operation: z.ZodUnion<[z.ZodString, z.ZodLiteral<"custom">]>;
31
+ command: z.ZodOptional<z.ZodString>;
32
+ label: z.ZodOptional<z.ZodString>;
33
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ }, {
35
+ id: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
36
+ readonly __kind: any;
37
+ }, any>, string & {
38
+ readonly __kind: any;
39
+ }, any>;
40
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
41
+ readonly __kind: any;
42
+ }, any>, string & {
43
+ readonly __kind: any;
44
+ }, any>, "many">>;
45
+ }>, "passthrough", z.ZodTypeAny, {
46
+ label?: string | undefined;
47
+ plugin?: string | undefined;
48
+ command?: string | undefined;
49
+ depends_on?: (string & {
50
+ readonly __kind: any;
51
+ })[] | undefined;
52
+ operation: string;
53
+ id: string & {
54
+ readonly __kind: any;
55
+ };
56
+ }, {
57
+ label?: string | undefined;
58
+ plugin?: string | undefined;
59
+ command?: string | undefined;
60
+ id?: any;
61
+ depends_on?: any[] | undefined;
62
+ operation: string;
63
+ }>;
64
+ declare type RawInput = z.infer<typeof rawSchema>;
65
+ declare type Input = z.infer<typeof internalSchema>;
66
+ declare const generatedSchemas: {
67
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
68
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
69
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
70
+ label?: string | undefined;
71
+ plugin?: string | undefined;
72
+ command?: string | undefined;
73
+ depends_on?: (string & {
74
+ readonly __kind: any;
75
+ })[] | undefined;
76
+ operation: string;
77
+ id: string & {
78
+ readonly __kind: any;
79
+ };
80
+ } & {
81
+ readonly __kind: any;
82
+ }, any>;
83
+ };
84
+ declare const factory: {
85
+ make: (input: {
86
+ label?: string | undefined;
87
+ plugin?: string | undefined;
88
+ command?: string | undefined;
89
+ depends_on?: (string & {
90
+ readonly __kind: any;
91
+ })[] | undefined;
92
+ operation: string;
93
+ id: string & {
94
+ readonly __kind: any;
95
+ };
96
+ }) => fluture.FutureInstance<TaqError, {
97
+ label?: string | undefined;
98
+ plugin?: string | undefined;
99
+ command?: string | undefined;
100
+ depends_on?: (string & {
101
+ readonly __kind: any;
102
+ })[] | undefined;
103
+ operation: string;
104
+ id: string & {
105
+ readonly __kind: any;
106
+ };
107
+ } & {
108
+ readonly __kind: any;
109
+ }>;
110
+ of: (input: unknown) => fluture.FutureInstance<TaqError, {
111
+ label?: string | undefined;
112
+ plugin?: string | undefined;
113
+ command?: string | undefined;
114
+ depends_on?: (string & {
115
+ readonly __kind: any;
116
+ })[] | undefined;
117
+ operation: string;
118
+ id: string & {
119
+ readonly __kind: any;
120
+ };
121
+ } & {
122
+ readonly __kind: any;
123
+ }>;
124
+ create: (input: {
125
+ label?: string | undefined;
126
+ plugin?: string | undefined;
127
+ command?: string | undefined;
128
+ depends_on?: string[] | undefined;
129
+ operation: string;
130
+ id: string;
131
+ } | {
132
+ label?: string | undefined;
133
+ plugin?: string | undefined;
134
+ command?: string | undefined;
135
+ depends_on?: (string & {
136
+ readonly __kind: any;
137
+ })[] | undefined;
138
+ operation: string;
139
+ id: string & {
140
+ readonly __kind: any;
141
+ };
142
+ }) => {
143
+ label?: string | undefined;
144
+ plugin?: string | undefined;
145
+ command?: string | undefined;
146
+ depends_on?: (string & {
147
+ readonly __kind: any;
148
+ })[] | undefined;
149
+ operation: string;
150
+ id: string & {
151
+ readonly __kind: any;
152
+ };
153
+ } & {
154
+ readonly __kind: any;
155
+ };
156
+ from: (input: unknown) => {
157
+ label?: string | undefined;
158
+ plugin?: string | undefined;
159
+ command?: string | undefined;
160
+ depends_on?: (string & {
161
+ readonly __kind: any;
162
+ })[] | undefined;
163
+ operation: string;
164
+ id: string & {
165
+ readonly __kind: any;
166
+ };
167
+ } & {
168
+ readonly __kind: any;
169
+ };
170
+ };
171
+ declare type Provisioner = z.infer<typeof generatedSchemas.schema>;
172
+ declare type t = Provisioner;
173
+ declare const create: (input: {
174
+ label?: string | undefined;
175
+ plugin?: string | undefined;
176
+ command?: string | undefined;
177
+ depends_on?: string[] | undefined;
178
+ operation: string;
179
+ id: string;
180
+ } | {
181
+ label?: string | undefined;
182
+ plugin?: string | undefined;
183
+ command?: string | undefined;
184
+ depends_on?: (string & {
185
+ readonly __kind: any;
186
+ })[] | undefined;
187
+ operation: string;
188
+ id: string & {
189
+ readonly __kind: any;
190
+ };
191
+ }) => {
192
+ label?: string | undefined;
193
+ plugin?: string | undefined;
194
+ command?: string | undefined;
195
+ depends_on?: (string & {
196
+ readonly __kind: any;
197
+ })[] | undefined;
198
+ operation: string;
199
+ id: string & {
200
+ readonly __kind: any;
201
+ };
202
+ } & {
203
+ readonly __kind: any;
204
+ };
205
+ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, {
206
+ label?: string | undefined;
207
+ plugin?: string | undefined;
208
+ command?: string | undefined;
209
+ depends_on?: (string & {
210
+ readonly __kind: any;
211
+ })[] | undefined;
212
+ operation: string;
213
+ id: string & {
214
+ readonly __kind: any;
215
+ };
216
+ } & {
217
+ readonly __kind: any;
218
+ }>;
219
+ declare const make: (input: {
220
+ label?: string | undefined;
221
+ plugin?: string | undefined;
222
+ command?: string | undefined;
223
+ depends_on?: (string & {
224
+ readonly __kind: any;
225
+ })[] | undefined;
226
+ operation: string;
227
+ id: string & {
228
+ readonly __kind: any;
229
+ };
230
+ }) => fluture.FutureInstance<TaqError, {
231
+ label?: string | undefined;
232
+ plugin?: string | undefined;
233
+ command?: string | undefined;
234
+ depends_on?: (string & {
235
+ readonly __kind: any;
236
+ })[] | undefined;
237
+ operation: string;
238
+ id: string & {
239
+ readonly __kind: any;
240
+ };
241
+ } & {
242
+ readonly __kind: any;
243
+ }>;
244
+ declare const schemas: {
245
+ schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
246
+ label?: string | undefined;
247
+ plugin?: string | undefined;
248
+ command?: string | undefined;
249
+ depends_on?: (string & {
250
+ readonly __kind: any;
251
+ })[] | undefined;
252
+ operation: string;
253
+ id: string & {
254
+ readonly __kind: any;
255
+ };
256
+ } & {
257
+ readonly __kind: any;
258
+ }, any>, {
259
+ label?: string | undefined;
260
+ plugin?: string | undefined;
261
+ command?: string | undefined;
262
+ depends_on?: (string & {
263
+ readonly __kind: any;
264
+ })[] | undefined;
265
+ operation: string;
266
+ id: string & {
267
+ readonly __kind: any;
268
+ };
269
+ } & {
270
+ readonly __kind: any;
271
+ }, any>;
272
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
273
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
274
+ };
275
+
276
+ export { Input, Provisioner, RawInput, create, factory, generatedSchemas, internalSchema, make, of, rawSchema, schemas, t };
package/Provisioner.js ADDED
@@ -0,0 +1,86 @@
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
+ // Provisioner.ts
27
+ var Provisioner_exports = {};
28
+ __export(Provisioner_exports, {
29
+ create: () => create,
30
+ factory: () => factory,
31
+ generatedSchemas: () => generatedSchemas,
32
+ internalSchema: () => internalSchema,
33
+ make: () => make,
34
+ of: () => of,
35
+ rawSchema: () => rawSchema2,
36
+ schemas: () => schemas2
37
+ });
38
+ module.exports = __toCommonJS(Provisioner_exports);
39
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
40
+ var ProvisionerID = __toESM(require("@taqueria/protocol/ProvisionerID"));
41
+ var import_zod = require("zod");
42
+ var rawSchema2 = import_zod.z.object(
43
+ {
44
+ id: ProvisionerID.rawSchema,
45
+ plugin: import_zod.z.string().min(1).describe("Provisioner Plugin").optional(),
46
+ operation: import_zod.z.union([
47
+ import_zod.z.string().min(1),
48
+ import_zod.z.literal("custom")
49
+ ]).describe("Provisioner Operation"),
50
+ command: import_zod.z.string().describe("Provisioner Custom Command").optional(),
51
+ label: import_zod.z.string().describe("Provisioner Label").optional(),
52
+ depends_on: import_zod.z.array(
53
+ ProvisionerID.rawSchema
54
+ ).optional()
55
+ },
56
+ {
57
+ description: "Provisioner"
58
+ }
59
+ ).passthrough();
60
+ var internalSchema = rawSchema2.extend({
61
+ id: ProvisionerID.schemas.schema,
62
+ depends_on: import_zod.z.array(ProvisionerID.schemas.schema).optional()
63
+ });
64
+ var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
65
+ rawSchema: rawSchema2,
66
+ internalSchema,
67
+ parseErrMsg: "There was a problem trying to parse the provisioner",
68
+ unknownErrMsg: "Something went wrong trying to parse the provisioner"
69
+ });
70
+ var { create, of, make } = factory;
71
+ var schemas2 = {
72
+ ...generatedSchemas,
73
+ schema: generatedSchemas.schema.transform((val) => val)
74
+ };
75
+ // Annotate the CommonJS export names for ESM import in node:
76
+ 0 && (module.exports = {
77
+ create,
78
+ factory,
79
+ generatedSchemas,
80
+ internalSchema,
81
+ make,
82
+ of,
83
+ rawSchema,
84
+ schemas
85
+ });
86
+ //# sourceMappingURL=Provisioner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Provisioner.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as ProvisionerID from '@taqueria/protocol/ProvisionerID';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object(\n\t{\n\t\tid: ProvisionerID.rawSchema,\n\t\tplugin: z\n\t\t\t.string()\n\t\t\t.min(1)\n\t\t\t.describe('Provisioner Plugin')\n\t\t\t.optional(),\n\t\toperation: z\n\t\t\t.union([\n\t\t\t\tz.string().min(1),\n\t\t\t\tz.literal('custom'),\n\t\t\t])\n\t\t\t.describe('Provisioner Operation'),\n\t\tcommand: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Custom Command')\n\t\t\t.optional(),\n\t\tlabel: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Label')\n\t\t\t.optional(),\n\t\tdepends_on: z\n\t\t\t.array(\n\t\t\t\tProvisionerID.rawSchema,\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\t{\n\t\tdescription: 'Provisioner',\n\t},\n)\n\t.passthrough();\n\nexport const internalSchema = rawSchema.extend({\n\tid: ProvisionerID.schemas.schema,\n\tdepends_on: z.array(ProvisionerID.schemas.schema).optional(),\n});\n\nexport type RawInput = z.infer<typeof rawSchema>;\nexport type Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'There was a problem trying to parse the provisioner',\n\tunknownErrMsg: 'Something went wrong trying to parse the provisioner',\n});\n\nexport type Provisioner = z.infer<typeof generatedSchemas.schema>;\nexport type t = Provisioner;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as unknown as Provisioner),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,kBAAuB;AACvB,oBAA+B;AAC/B,iBAAkB;AAEX,IAAMD,aAAY,aAAE;AAAA,EAC1B;AAAA,IACC,IAAkB;AAAA,IAClB,QAAQ,aACN,OAAO,EACP,IAAI,CAAC,EACL,SAAS,oBAAoB,EAC7B,SAAS;AAAA,IACX,WAAW,aACT,MAAM;AAAA,MACN,aAAE,OAAO,EAAE,IAAI,CAAC;AAAA,MAChB,aAAE,QAAQ,QAAQ;AAAA,IACnB,CAAC,EACA,SAAS,uBAAuB;AAAA,IAClC,SAAS,aACP,OAAO,EACP,SAAS,4BAA4B,EACrC,SAAS;AAAA,IACX,OAAO,aACL,OAAO,EACP,SAAS,mBAAmB,EAC5B,SAAS;AAAA,IACX,YAAY,aACV;AAAA,MACc;AAAA,IACf,EACC,SAAS;AAAA,EACZ;AAAA,EACA;AAAA,IACC,aAAa;AAAA,EACd;AACD,EACE,YAAY;AAEP,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,IAAkB,sBAAQ;AAAA,EAC1B,YAAY,aAAE,MAAoB,sBAAQ,MAAM,EAAE,SAAS;AAC5D,CAAC;AAKM,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAE,SAA4B;AAAA,EACjF,WAAAF;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA6B;AAC/E;","names":["rawSchema","schemas","createType"]}
@@ -0,0 +1,48 @@
1
+ // Provisioner.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import * as ProvisionerID from "@taqueria/protocol/ProvisionerID";
4
+ import { z } from "zod";
5
+ var rawSchema2 = z.object(
6
+ {
7
+ id: ProvisionerID.rawSchema,
8
+ plugin: z.string().min(1).describe("Provisioner Plugin").optional(),
9
+ operation: z.union([
10
+ z.string().min(1),
11
+ z.literal("custom")
12
+ ]).describe("Provisioner Operation"),
13
+ command: z.string().describe("Provisioner Custom Command").optional(),
14
+ label: z.string().describe("Provisioner Label").optional(),
15
+ depends_on: z.array(
16
+ ProvisionerID.rawSchema
17
+ ).optional()
18
+ },
19
+ {
20
+ description: "Provisioner"
21
+ }
22
+ ).passthrough();
23
+ var internalSchema = rawSchema2.extend({
24
+ id: ProvisionerID.schemas.schema,
25
+ depends_on: z.array(ProvisionerID.schemas.schema).optional()
26
+ });
27
+ var { schemas: generatedSchemas, factory } = createType({
28
+ rawSchema: rawSchema2,
29
+ internalSchema,
30
+ parseErrMsg: "There was a problem trying to parse the provisioner",
31
+ unknownErrMsg: "Something went wrong trying to parse the provisioner"
32
+ });
33
+ var { create, of, make } = factory;
34
+ var schemas2 = {
35
+ ...generatedSchemas,
36
+ schema: generatedSchemas.schema.transform((val) => val)
37
+ };
38
+ export {
39
+ create,
40
+ factory,
41
+ generatedSchemas,
42
+ internalSchema,
43
+ make,
44
+ of,
45
+ rawSchema2 as rawSchema,
46
+ schemas2 as schemas
47
+ };
48
+ //# sourceMappingURL=Provisioner.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Provisioner.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as ProvisionerID from '@taqueria/protocol/ProvisionerID';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object(\n\t{\n\t\tid: ProvisionerID.rawSchema,\n\t\tplugin: z\n\t\t\t.string()\n\t\t\t.min(1)\n\t\t\t.describe('Provisioner Plugin')\n\t\t\t.optional(),\n\t\toperation: z\n\t\t\t.union([\n\t\t\t\tz.string().min(1),\n\t\t\t\tz.literal('custom'),\n\t\t\t])\n\t\t\t.describe('Provisioner Operation'),\n\t\tcommand: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Custom Command')\n\t\t\t.optional(),\n\t\tlabel: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Label')\n\t\t\t.optional(),\n\t\tdepends_on: z\n\t\t\t.array(\n\t\t\t\tProvisionerID.rawSchema,\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\t{\n\t\tdescription: 'Provisioner',\n\t},\n)\n\t.passthrough();\n\nexport const internalSchema = rawSchema.extend({\n\tid: ProvisionerID.schemas.schema,\n\tdepends_on: z.array(ProvisionerID.schemas.schema).optional(),\n});\n\nexport type RawInput = z.infer<typeof rawSchema>;\nexport type Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'There was a problem trying to parse the provisioner',\n\tunknownErrMsg: 'Something went wrong trying to parse the provisioner',\n});\n\nexport type Provisioner = z.infer<typeof generatedSchemas.schema>;\nexport type t = Provisioner;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as unknown as Provisioner),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,YAAY,mBAAmB;AAC/B,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE;AAAA,EAC1B;AAAA,IACC,IAAkB;AAAA,IAClB,QAAQ,EACN,OAAO,EACP,IAAI,CAAC,EACL,SAAS,oBAAoB,EAC7B,SAAS;AAAA,IACX,WAAW,EACT,MAAM;AAAA,MACN,EAAE,OAAO,EAAE,IAAI,CAAC;AAAA,MAChB,EAAE,QAAQ,QAAQ;AAAA,IACnB,CAAC,EACA,SAAS,uBAAuB;AAAA,IAClC,SAAS,EACP,OAAO,EACP,SAAS,4BAA4B,EACrC,SAAS;AAAA,IACX,OAAO,EACL,OAAO,EACP,SAAS,mBAAmB,EAC5B,SAAS;AAAA,IACX,YAAY,EACV;AAAA,MACc;AAAA,IACf,EACC,SAAS;AAAA,EACZ;AAAA,EACA;AAAA,IACC,aAAa;AAAA,EACd;AACD,EACE,YAAY;AAEP,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,IAAkB,sBAAQ;AAAA,EAC1B,YAAY,EAAE,MAAoB,sBAAQ,MAAM,EAAE,SAAS;AAC5D,CAAC;AAKM,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF,WAAAA;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA6B;AAC/E;","names":["rawSchema","schemas"]}
@@ -0,0 +1,48 @@
1
+ import * as fluture from 'fluture';
2
+ import { TaqError } from './TaqError.js';
3
+ import { z } from 'zod';
4
+
5
+ declare const rawSchema: z.ZodString;
6
+ declare const generatedSchemas: {
7
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
8
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
9
+ schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
10
+ readonly __kind: any;
11
+ }, any>;
12
+ };
13
+ declare const factory: {
14
+ make: (input: string) => fluture.FutureInstance<TaqError, string & {
15
+ readonly __kind: any;
16
+ }>;
17
+ of: (input: unknown) => fluture.FutureInstance<TaqError, string & {
18
+ readonly __kind: any;
19
+ }>;
20
+ create: (input: string) => string & {
21
+ readonly __kind: any;
22
+ };
23
+ from: (input: unknown) => string & {
24
+ readonly __kind: any;
25
+ };
26
+ };
27
+ declare type ProvisionerID = z.infer<typeof generatedSchemas.schema>;
28
+ declare type t = ProvisionerID;
29
+ declare const create: (input: string) => string & {
30
+ readonly __kind: any;
31
+ };
32
+ declare const of: (input: unknown) => fluture.FutureInstance<TaqError, string & {
33
+ readonly __kind: any;
34
+ }>;
35
+ declare const make: (input: string) => fluture.FutureInstance<TaqError, string & {
36
+ readonly __kind: any;
37
+ }>;
38
+ declare const schemas: {
39
+ schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
40
+ readonly __kind: any;
41
+ }, any>, string & {
42
+ readonly __kind: any;
43
+ }, any>;
44
+ rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
45
+ internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
46
+ };
47
+
48
+ export { ProvisionerID, create, factory, generatedSchemas, make, of, rawSchema, schemas, t };
@@ -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
+ // ProvisionerID.ts
27
+ var ProvisionerID_exports = {};
28
+ __export(ProvisionerID_exports, {
29
+ create: () => create,
30
+ factory: () => factory,
31
+ generatedSchemas: () => generatedSchemas,
32
+ make: () => make,
33
+ of: () => of,
34
+ rawSchema: () => rawSchema,
35
+ schemas: () => schemas
36
+ });
37
+ module.exports = __toCommonJS(ProvisionerID_exports);
38
+ var import_Base = __toESM(require("@taqueria/protocol/Base"));
39
+ var import_zod = require("zod");
40
+ var rawSchema = import_zod.z.string().min(1).regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/).describe("Provisioner ID");
41
+ var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
42
+ rawSchema,
43
+ parseErrMsg: (value) => `${value} is not a valid provisioner ID`,
44
+ unknownErrMsg: "Something went wrong trying to parse the provision ID"
45
+ });
46
+ var { create, of, make } = factory;
47
+ var schemas = {
48
+ ...generatedSchemas,
49
+ schema: generatedSchemas.schema.transform((val) => val)
50
+ };
51
+ // Annotate the CommonJS export names for ESM import in node:
52
+ 0 && (module.exports = {
53
+ create,
54
+ factory,
55
+ generatedSchemas,
56
+ make,
57
+ of,
58
+ rawSchema,
59
+ schemas
60
+ });
61
+ //# sourceMappingURL=ProvisionerID.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["ProvisionerID.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z\n\t.string()\n\t.min(1)\n\t.regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/)\n\t.describe('Provisioner ID');\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid provisioner ID`,\n\tunknownErrMsg: 'Something went wrong trying to parse the provision ID',\n});\n\nexport type ProvisionerID = z.infer<typeof generatedSchemas.schema>;\nexport type t = ProvisionerID;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as ProvisionerID),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aACvB,OAAO,EACP,IAAI,CAAC,EACL,MAAM,sFAAsF,EAC5F,SAAS,gBAAgB;AAIpB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAA,SAA+B;AAAA,EACpF;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["createType"]}
@@ -0,0 +1,24 @@
1
+ // ProvisionerID.ts
2
+ import createType from "@taqueria/protocol/Base";
3
+ import { z } from "zod";
4
+ var rawSchema = z.string().min(1).regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/).describe("Provisioner ID");
5
+ var { schemas: generatedSchemas, factory } = createType({
6
+ rawSchema,
7
+ parseErrMsg: (value) => `${value} is not a valid provisioner ID`,
8
+ unknownErrMsg: "Something went wrong trying to parse the provision ID"
9
+ });
10
+ var { create, of, make } = factory;
11
+ var schemas = {
12
+ ...generatedSchemas,
13
+ schema: generatedSchemas.schema.transform((val) => val)
14
+ };
15
+ export {
16
+ create,
17
+ factory,
18
+ generatedSchemas,
19
+ make,
20
+ of,
21
+ rawSchema,
22
+ schemas
23
+ };
24
+ //# sourceMappingURL=ProvisionerID.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["ProvisionerID.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z\n\t.string()\n\t.min(1)\n\t.regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/)\n\t.describe('Provisioner ID');\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid provisioner ID`,\n\tunknownErrMsg: 'Something went wrong trying to parse the provision ID',\n});\n\nexport type ProvisionerID = z.infer<typeof generatedSchemas.schema>;\nexport type t = ProvisionerID;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as ProvisionerID),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EACvB,OAAO,EACP,IAAI,CAAC,EACL,MAAM,sFAAsF,EAC5F,SAAS,gBAAgB;AAIpB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA+B;AAAA,EACpF;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":[]}