@taqueria/protocol 0.18.0 → 0.19.3
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.
- package/Alias.d.ts +10 -16
- package/Alias.d.ts.map +1 -0
- package/Base.d.ts +8 -10
- package/Base.d.ts.map +1 -0
- package/Base.js +1 -1
- package/Base.js.map +1 -1
- package/Base.mjs +1 -1
- package/Base.mjs.map +1 -1
- package/Command.d.ts +9 -15
- package/Command.d.ts.map +1 -0
- package/Config.d.ts +210 -216
- package/Config.d.ts.map +1 -0
- package/Config.js +18 -21
- package/Config.js.map +1 -1
- package/Config.mjs +19 -22
- package/Config.mjs.map +1 -1
- package/Contract.d.ts +10 -16
- package/Contract.d.ts.map +1 -0
- package/Crypto.d.ts +2 -3
- package/Crypto.d.ts.map +1 -0
- package/EconomicalProtocolHash.d.ts +12 -19
- package/EconomicalProtocolHash.d.ts.map +1 -0
- package/Environment.d.ts +14 -22
- package/Environment.d.ts.map +1 -0
- package/EphemeralState.d.ts +162 -169
- package/EphemeralState.d.ts.map +1 -0
- package/Faucet.d.ts +108 -114
- package/Faucet.d.ts.map +1 -0
- package/Faucet.js +32 -20
- package/Faucet.js.map +1 -1
- package/Faucet.mjs +32 -20
- package/Faucet.mjs.map +1 -1
- package/HumanReadableIdentifier.d.ts +9 -15
- package/HumanReadableIdentifier.d.ts.map +1 -0
- package/InstalledPlugin.d.ts +13 -20
- package/InstalledPlugin.d.ts.map +1 -0
- package/LoadedConfig.d.ts +217 -223
- package/LoadedConfig.d.ts.map +1 -0
- package/MetadataConfig.d.ts +13 -20
- package/MetadataConfig.d.ts.map +1 -0
- package/NetworkConfig.d.ts +121 -127
- package/NetworkConfig.d.ts.map +1 -0
- package/Operation.d.ts +67 -73
- package/Operation.d.ts.map +1 -0
- package/Option.d.ts +14 -21
- package/Option.d.ts.map +1 -0
- package/ParsedOperation.d.ts +56 -64
- package/ParsedOperation.d.ts.map +1 -0
- package/ParsedTemplate.d.ts +49 -57
- package/ParsedTemplate.d.ts.map +1 -0
- package/PersistentState.d.ts +18 -24
- package/PersistentState.d.ts.map +1 -0
- package/PluginActionName.d.ts +6 -7
- package/PluginActionName.d.ts.map +1 -0
- package/PluginDependenciesResponse.d.ts +14 -20
- package/PluginDependenciesResponse.d.ts.map +1 -0
- package/PluginInfo.d.ts +38 -45
- package/PluginInfo.d.ts.map +1 -0
- package/PluginJsonResponse.d.ts +11 -16
- package/PluginJsonResponse.d.ts.map +1 -0
- package/PluginProxyResponse.d.ts +9 -16
- package/PluginProxyResponse.d.ts.map +1 -0
- package/PluginResponseEncoding.d.ts +11 -18
- package/PluginResponseEncoding.d.ts.map +1 -0
- package/PluginSchema.d.ts +419 -427
- package/PluginSchema.d.ts.map +1 -0
- package/PositionalArg.d.ts +13 -20
- package/PositionalArg.d.ts.map +1 -0
- package/Provisioner.d.ts +16 -23
- package/Provisioner.d.ts.map +1 -0
- package/ProvisionerID.d.ts +12 -19
- package/ProvisionerID.d.ts.map +1 -0
- package/Provisions.d.ts +12 -19
- package/Provisions.d.ts.map +1 -0
- package/PublicKeyHash.d.ts +13 -20
- package/PublicKeyHash.d.ts.map +1 -0
- package/RequestArgs.d.ts +508 -517
- package/RequestArgs.d.ts.map +1 -0
- package/SHA256.d.ts +11 -15
- package/SHA256.d.ts.map +1 -0
- package/SandboxAccountConfig.d.ts +13 -20
- package/SandboxAccountConfig.d.ts.map +1 -0
- package/SandboxConfig.d.ts +13 -20
- package/SandboxConfig.d.ts.map +1 -0
- package/SanitizedAbsPath.d.ts +12 -19
- package/SanitizedAbsPath.d.ts.map +1 -0
- package/SanitizedArgs.d.ts +76 -83
- package/SanitizedArgs.d.ts.map +1 -0
- package/SanitizedPath.d.ts +9 -15
- package/SanitizedPath.d.ts.map +1 -0
- package/ScaffoldConfig.d.ts +3 -4
- package/ScaffoldConfig.d.ts.map +1 -0
- package/Settings.d.ts +13 -20
- package/Settings.d.ts.map +1 -0
- package/SingleChar.d.ts +12 -19
- package/SingleChar.d.ts.map +1 -0
- package/TaqError.d.ts +10 -13
- package/TaqError.d.ts.map +1 -0
- package/Task.d.ts +13 -20
- package/Task.d.ts.map +1 -0
- package/Template.d.ts +97 -105
- package/Template.d.ts.map +1 -0
- package/Timestamp.d.ts +13 -20
- package/Timestamp.d.ts.map +1 -0
- package/Tz.d.ts +11 -18
- package/Tz.d.ts.map +1 -0
- package/Url.d.ts +13 -20
- package/Url.d.ts.map +1 -0
- package/Verb.d.ts +12 -19
- package/Verb.d.ts.map +1 -0
- package/VersionNumber.d.ts +9 -15
- package/VersionNumber.d.ts.map +1 -0
- package/i18n.d.ts +4 -4
- package/i18n.d.ts.map +1 -0
- package/package.json +3 -3
- package/taqueria-protocol-types.d.ts +37 -72
- package/taqueria-protocol-types.d.ts.map +1 -0
- package/tzkt-config.d.ts +13 -20
- package/tzkt-config.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EphemeralState.d.ts","sourceRoot":"","sources":["EphemeralState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAKpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAc,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGnE,OAAO,EAAY,cAAc,IAAI,MAAM,EAAmB,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAKpB,CAAC;AACF,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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TaqError.js';
|
|
3
1
|
import { Flatten } from '@taqueria/protocol/Base';
|
|
4
2
|
import { z } from 'zod';
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare const rawSchema: z.ZodObject<z.extendShape<{
|
|
4
|
+
mnemonic: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>;
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
password: z.ZodOptional<z.ZodString>;
|
|
7
|
+
amount: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
8
|
+
activation_code: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, {
|
|
7
10
|
pkh: z.ZodString;
|
|
8
|
-
|
|
9
|
-
email
|
|
10
|
-
password
|
|
11
|
-
amount
|
|
12
|
-
activation_code
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
pkh: string;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
email?: string | undefined;
|
|
13
|
+
password?: string | undefined;
|
|
14
|
+
amount?: string | undefined;
|
|
15
|
+
activation_code?: string | undefined;
|
|
15
16
|
mnemonic: string[];
|
|
16
|
-
|
|
17
|
-
password: string;
|
|
18
|
-
amount: string;
|
|
19
|
-
activation_code: string;
|
|
17
|
+
pkh: string;
|
|
20
18
|
}, {
|
|
19
|
+
mnemonic?: unknown;
|
|
20
|
+
email?: string | undefined;
|
|
21
|
+
password?: string | undefined;
|
|
22
|
+
amount?: string | undefined;
|
|
23
|
+
activation_code?: string | undefined;
|
|
21
24
|
pkh: string;
|
|
22
|
-
mnemonic: string[];
|
|
23
|
-
email: string;
|
|
24
|
-
password: string;
|
|
25
|
-
amount: string;
|
|
26
|
-
activation_code: string;
|
|
27
25
|
}>;
|
|
28
|
-
declare const generatedSchemas: {
|
|
26
|
+
export declare const generatedSchemas: {
|
|
29
27
|
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
30
28
|
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
31
29
|
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
30
|
+
email?: string | undefined;
|
|
31
|
+
password?: string | undefined;
|
|
32
|
+
amount?: string | undefined;
|
|
33
|
+
activation_code?: string | undefined;
|
|
34
|
+
mnemonic: string[];
|
|
32
35
|
pkh: string & {
|
|
33
36
|
readonly __kind: any;
|
|
34
37
|
};
|
|
35
|
-
mnemonic: string[];
|
|
36
|
-
email: string;
|
|
37
|
-
password: string;
|
|
38
|
-
amount: string;
|
|
39
|
-
activation_code: string;
|
|
40
38
|
} & {
|
|
41
39
|
readonly __kind: any;
|
|
42
40
|
}, any>;
|
|
43
|
-
}
|
|
44
|
-
declare const factory: {
|
|
41
|
+
}, factory: {
|
|
45
42
|
make: (input: {
|
|
43
|
+
email?: string | undefined;
|
|
44
|
+
password?: string | undefined;
|
|
45
|
+
amount?: string | undefined;
|
|
46
|
+
activation_code?: string | undefined;
|
|
47
|
+
mnemonic: string[];
|
|
46
48
|
pkh: string & {
|
|
47
49
|
readonly __kind: any;
|
|
48
50
|
};
|
|
51
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
52
|
+
email?: string | undefined;
|
|
53
|
+
password?: string | undefined;
|
|
54
|
+
amount?: string | undefined;
|
|
55
|
+
activation_code?: string | undefined;
|
|
49
56
|
mnemonic: string[];
|
|
50
|
-
email: string;
|
|
51
|
-
password: string;
|
|
52
|
-
amount: string;
|
|
53
|
-
activation_code: string;
|
|
54
|
-
}) => fluture.FutureInstance<TaqError, {
|
|
55
57
|
pkh: string & {
|
|
56
58
|
readonly __kind: any;
|
|
57
59
|
};
|
|
58
|
-
mnemonic: string[];
|
|
59
|
-
email: string;
|
|
60
|
-
password: string;
|
|
61
|
-
amount: string;
|
|
62
|
-
activation_code: string;
|
|
63
60
|
} & {
|
|
64
61
|
readonly __kind: any;
|
|
65
62
|
}>;
|
|
66
|
-
of: (input: unknown) => fluture.FutureInstance<TaqError, {
|
|
63
|
+
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
64
|
+
email?: string | undefined;
|
|
65
|
+
password?: string | undefined;
|
|
66
|
+
amount?: string | undefined;
|
|
67
|
+
activation_code?: string | undefined;
|
|
68
|
+
mnemonic: string[];
|
|
67
69
|
pkh: string & {
|
|
68
70
|
readonly __kind: any;
|
|
69
71
|
};
|
|
70
|
-
mnemonic: string[];
|
|
71
|
-
email: string;
|
|
72
|
-
password: string;
|
|
73
|
-
amount: string;
|
|
74
|
-
activation_code: string;
|
|
75
72
|
} & {
|
|
76
73
|
readonly __kind: any;
|
|
77
74
|
}>;
|
|
78
75
|
create: (input: {
|
|
79
|
-
|
|
76
|
+
email?: string | undefined;
|
|
77
|
+
password?: string | undefined;
|
|
78
|
+
amount?: string | undefined;
|
|
79
|
+
activation_code?: string | undefined;
|
|
80
80
|
mnemonic: string[];
|
|
81
|
-
|
|
82
|
-
password: string;
|
|
83
|
-
amount: string;
|
|
84
|
-
activation_code: string;
|
|
81
|
+
pkh: string;
|
|
85
82
|
} | {
|
|
83
|
+
email?: string | undefined;
|
|
84
|
+
password?: string | undefined;
|
|
85
|
+
amount?: string | undefined;
|
|
86
|
+
activation_code?: string | undefined;
|
|
87
|
+
mnemonic: string[];
|
|
86
88
|
pkh: string & {
|
|
87
89
|
readonly __kind: any;
|
|
88
90
|
};
|
|
89
|
-
mnemonic: string[];
|
|
90
|
-
email: string;
|
|
91
|
-
password: string;
|
|
92
|
-
amount: string;
|
|
93
|
-
activation_code: string;
|
|
94
91
|
}) => {
|
|
92
|
+
email?: string | undefined;
|
|
93
|
+
password?: string | undefined;
|
|
94
|
+
amount?: string | undefined;
|
|
95
|
+
activation_code?: string | undefined;
|
|
96
|
+
mnemonic: string[];
|
|
95
97
|
pkh: string & {
|
|
96
98
|
readonly __kind: any;
|
|
97
99
|
};
|
|
98
|
-
mnemonic: string[];
|
|
99
|
-
email: string;
|
|
100
|
-
password: string;
|
|
101
|
-
amount: string;
|
|
102
|
-
activation_code: string;
|
|
103
100
|
} & {
|
|
104
101
|
readonly __kind: any;
|
|
105
102
|
};
|
|
106
103
|
from: (input: unknown) => {
|
|
104
|
+
email?: string | undefined;
|
|
105
|
+
password?: string | undefined;
|
|
106
|
+
amount?: string | undefined;
|
|
107
|
+
activation_code?: string | undefined;
|
|
108
|
+
mnemonic: string[];
|
|
107
109
|
pkh: string & {
|
|
108
110
|
readonly __kind: any;
|
|
109
111
|
};
|
|
110
|
-
mnemonic: string[];
|
|
111
|
-
email: string;
|
|
112
|
-
password: string;
|
|
113
|
-
amount: string;
|
|
114
|
-
activation_code: string;
|
|
115
112
|
} & {
|
|
116
113
|
readonly __kind: any;
|
|
117
114
|
};
|
|
118
115
|
};
|
|
119
|
-
declare type Faucet = Flatten<z.infer<typeof generatedSchemas.schema>>;
|
|
120
|
-
declare type t = Faucet;
|
|
121
|
-
declare const create: (input: {
|
|
122
|
-
|
|
116
|
+
export declare type Faucet = Flatten<z.infer<typeof generatedSchemas.schema>>;
|
|
117
|
+
export declare type t = Faucet;
|
|
118
|
+
export declare const create: (input: {
|
|
119
|
+
email?: string | undefined;
|
|
120
|
+
password?: string | undefined;
|
|
121
|
+
amount?: string | undefined;
|
|
122
|
+
activation_code?: string | undefined;
|
|
123
123
|
mnemonic: string[];
|
|
124
|
-
|
|
125
|
-
password: string;
|
|
126
|
-
amount: string;
|
|
127
|
-
activation_code: string;
|
|
124
|
+
pkh: string;
|
|
128
125
|
} | {
|
|
126
|
+
email?: string | undefined;
|
|
127
|
+
password?: string | undefined;
|
|
128
|
+
amount?: string | undefined;
|
|
129
|
+
activation_code?: string | undefined;
|
|
130
|
+
mnemonic: string[];
|
|
129
131
|
pkh: string & {
|
|
130
132
|
readonly __kind: any;
|
|
131
133
|
};
|
|
132
|
-
mnemonic: string[];
|
|
133
|
-
email: string;
|
|
134
|
-
password: string;
|
|
135
|
-
amount: string;
|
|
136
|
-
activation_code: string;
|
|
137
134
|
}) => {
|
|
135
|
+
email?: string | undefined;
|
|
136
|
+
password?: string | undefined;
|
|
137
|
+
amount?: string | undefined;
|
|
138
|
+
activation_code?: string | undefined;
|
|
139
|
+
mnemonic: string[];
|
|
138
140
|
pkh: string & {
|
|
139
141
|
readonly __kind: any;
|
|
140
142
|
};
|
|
141
|
-
mnemonic: string[];
|
|
142
|
-
email: string;
|
|
143
|
-
password: string;
|
|
144
|
-
amount: string;
|
|
145
|
-
activation_code: string;
|
|
146
143
|
} & {
|
|
147
144
|
readonly __kind: any;
|
|
148
|
-
}
|
|
149
|
-
|
|
145
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
146
|
+
email?: string | undefined;
|
|
147
|
+
password?: string | undefined;
|
|
148
|
+
amount?: string | undefined;
|
|
149
|
+
activation_code?: string | undefined;
|
|
150
|
+
mnemonic: string[];
|
|
150
151
|
pkh: string & {
|
|
151
152
|
readonly __kind: any;
|
|
152
153
|
};
|
|
153
|
-
mnemonic: string[];
|
|
154
|
-
email: string;
|
|
155
|
-
password: string;
|
|
156
|
-
amount: string;
|
|
157
|
-
activation_code: string;
|
|
158
154
|
} & {
|
|
159
155
|
readonly __kind: any;
|
|
160
|
-
}
|
|
161
|
-
|
|
156
|
+
}>, make: (input: {
|
|
157
|
+
email?: string | undefined;
|
|
158
|
+
password?: string | undefined;
|
|
159
|
+
amount?: string | undefined;
|
|
160
|
+
activation_code?: string | undefined;
|
|
161
|
+
mnemonic: string[];
|
|
162
162
|
pkh: string & {
|
|
163
163
|
readonly __kind: any;
|
|
164
164
|
};
|
|
165
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
166
|
+
email?: string | undefined;
|
|
167
|
+
password?: string | undefined;
|
|
168
|
+
amount?: string | undefined;
|
|
169
|
+
activation_code?: string | undefined;
|
|
165
170
|
mnemonic: string[];
|
|
166
|
-
email: string;
|
|
167
|
-
password: string;
|
|
168
|
-
amount: string;
|
|
169
|
-
activation_code: string;
|
|
170
|
-
}) => fluture.FutureInstance<TaqError, {
|
|
171
171
|
pkh: string & {
|
|
172
172
|
readonly __kind: any;
|
|
173
173
|
};
|
|
174
|
-
mnemonic: string[];
|
|
175
|
-
email: string;
|
|
176
|
-
password: string;
|
|
177
|
-
amount: string;
|
|
178
|
-
activation_code: string;
|
|
179
174
|
} & {
|
|
180
175
|
readonly __kind: any;
|
|
181
176
|
}>;
|
|
182
|
-
declare const schemas: {
|
|
177
|
+
export declare const schemas: {
|
|
183
178
|
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
179
|
+
email?: string | undefined;
|
|
180
|
+
password?: string | undefined;
|
|
181
|
+
amount?: string | undefined;
|
|
182
|
+
activation_code?: string | undefined;
|
|
183
|
+
mnemonic: string[];
|
|
184
184
|
pkh: string & {
|
|
185
185
|
readonly __kind: any;
|
|
186
186
|
};
|
|
187
|
-
mnemonic: string[];
|
|
188
|
-
email: string;
|
|
189
|
-
password: string;
|
|
190
|
-
amount: string;
|
|
191
|
-
activation_code: string;
|
|
192
187
|
} & {
|
|
193
188
|
readonly __kind: any;
|
|
194
189
|
}, any>, Flatten<{
|
|
190
|
+
email?: string | undefined;
|
|
191
|
+
password?: string | undefined;
|
|
192
|
+
amount?: string | undefined;
|
|
193
|
+
activation_code?: string | undefined;
|
|
194
|
+
mnemonic: string[];
|
|
195
195
|
pkh: string & {
|
|
196
196
|
readonly __kind: any;
|
|
197
197
|
};
|
|
198
|
-
mnemonic: string[];
|
|
199
|
-
email: string;
|
|
200
|
-
password: string;
|
|
201
|
-
amount: string;
|
|
202
|
-
activation_code: string;
|
|
203
198
|
} & {
|
|
204
199
|
readonly __kind: any;
|
|
205
200
|
}>, any>;
|
|
206
201
|
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
207
202
|
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
208
203
|
};
|
|
209
|
-
|
|
210
|
-
export { Faucet, create, factory, generatedSchemas, make, of, rawSchema, schemas, t };
|
|
204
|
+
//# sourceMappingURL=Faucet.d.ts.map
|
package/Faucet.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Faucet.d.ts","sourceRoot":"","sources":["Faucet.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;EAED,CAAC;AAuBtB,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;AACtE,oBAAY,CAAC,GAAG,MAAM,CAAC;AACvB,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|
package/Faucet.js
CHANGED
|
@@ -38,28 +38,40 @@ module.exports = __toCommonJS(Faucet_exports);
|
|
|
38
38
|
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
39
39
|
var PublicKeyHash = __toESM(require("@taqueria/protocol/PublicKeyHash"));
|
|
40
40
|
var import_zod = require("zod");
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import_zod.z.
|
|
45
|
-
|
|
41
|
+
var commonSchema = import_zod.z.object({
|
|
42
|
+
mnemonic: import_zod.z.preprocess(
|
|
43
|
+
(arg) => typeof arg === "string" ? arg.split(" ") : arg,
|
|
44
|
+
import_zod.z.array(
|
|
45
|
+
import_zod.z.string({ description: "Faucet Mnemonic Word" }).min(1).regex(/^[a-z]{2,}$/),
|
|
46
|
+
{ description: "Faucet Mnemonic" }
|
|
47
|
+
)
|
|
46
48
|
),
|
|
47
|
-
email: import_zod.z.string({ description: "Faucet E-mail" }).regex(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}
|
|
48
|
-
password: import_zod.z.string({ description: "Faucet Password" }).
|
|
49
|
-
amount: import_zod.z.string({ description: "Faucet
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
),
|
|
58
|
-
email: import_zod.z.string({ description: "Faucet E-mail" }).regex(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/),
|
|
59
|
-
password: import_zod.z.string({ description: "Faucet Password" }).nonempty(),
|
|
60
|
-
amount: import_zod.z.string({ description: "Faucet Account" }).nonempty().regex(/^\d+$/),
|
|
61
|
-
activation_code: import_zod.z.string({ description: "Faucet Activation Code" }).nonempty()
|
|
49
|
+
email: import_zod.z.string({ description: "Faucet E-mail" }).regex(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/).optional(),
|
|
50
|
+
password: import_zod.z.string({ description: "Faucet Password" }).optional(),
|
|
51
|
+
amount: import_zod.z.string({ description: "Faucet Amount" }).refine(
|
|
52
|
+
(val) => val.length === 0 || /^\d+$/.test(val),
|
|
53
|
+
"Amount, if present, must be numeric"
|
|
54
|
+
).optional(),
|
|
55
|
+
activation_code: import_zod.z.string({ description: "Faucet Activation Code" }).optional()
|
|
56
|
+
});
|
|
57
|
+
var rawSchema = commonSchema.extend({
|
|
58
|
+
pkh: import_zod.z.string({ description: "Faucet Public Key Hash" }).min(1)
|
|
62
59
|
}).describe("Faucet");
|
|
60
|
+
var internalSchema = import_zod.z.preprocess(
|
|
61
|
+
(input) => {
|
|
62
|
+
const defaults = {
|
|
63
|
+
pkh: "",
|
|
64
|
+
mnemonic: [],
|
|
65
|
+
email: "",
|
|
66
|
+
password: "",
|
|
67
|
+
activation_code: ""
|
|
68
|
+
};
|
|
69
|
+
return typeof input === "object" ? { ...defaults, ...input } : defaults;
|
|
70
|
+
},
|
|
71
|
+
commonSchema.extend({
|
|
72
|
+
pkh: PublicKeyHash.schemas.schema
|
|
73
|
+
})
|
|
74
|
+
).describe("Faucet");
|
|
63
75
|
var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
|
|
64
76
|
rawSchema,
|
|
65
77
|
internalSchema,
|
package/Faucet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Faucet.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as PublicKeyHash from '@taqueria/protocol/PublicKeyHash';\nimport { z } from 'zod';\n\
|
|
1
|
+
{"version":3,"sources":["Faucet.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as PublicKeyHash from '@taqueria/protocol/PublicKeyHash';\nimport { z } from 'zod';\n\nconst commonSchema = z.object({\n\tmnemonic: z.preprocess(\n\t\targ => typeof arg === 'string' ? arg.split(' ') : arg,\n\t\tz.array(\n\t\t\tz.string({ description: 'Faucet Mnemonic Word' }).min(1).regex(/^[a-z]{2,}$/),\n\t\t\t{ description: 'Faucet Mnemonic' },\n\t\t),\n\t),\n\temail: z.string({ description: 'Faucet E-mail' }).regex(/^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/).optional(),\n\tpassword: z.string({ description: 'Faucet Password' }).optional(),\n\tamount: z.string({ description: 'Faucet Amount' }).refine(\n\t\tval => val.length === 0 || /^\\d+$/.test(val),\n\t\t'Amount, if present, must be numeric',\n\t).optional(),\n\tactivation_code: z.string({ description: 'Faucet Activation Code' }).optional(),\n});\n\nexport const rawSchema = commonSchema.extend({\n\tpkh: z.string({ description: 'Faucet Public Key Hash' }).min(1),\n}).describe('Faucet');\n\nconst internalSchema = z.preprocess(\n\tinput => {\n\t\tconst defaults = {\n\t\t\tpkh: '',\n\t\t\tmnemonic: [],\n\t\t\temail: '',\n\t\t\tpassword: '',\n\t\t\tactivation_code: '',\n\t\t};\n\t\treturn typeof input === 'object'\n\t\t\t? { ...defaults, ...input }\n\t\t\t: defaults;\n\t},\n\tcommonSchema.extend({\n\t\tpkh: PublicKeyHash.schemas.schema,\n\t}),\n).describe('Faucet');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid faucet configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the faucet',\n});\n\nexport type Faucet = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = Faucet;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as Faucet),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA;AAAA;AAAA,kBAAoC;AACpC,oBAA+B;AAC/B,iBAAkB;AAElB,IAAM,eAAe,aAAE,OAAO;AAAA,EAC7B,UAAU,aAAE;AAAA,IACX,SAAO,OAAO,QAAQ,WAAW,IAAI,MAAM,GAAG,IAAI;AAAA,IAClD,aAAE;AAAA,MACD,aAAE,OAAO,EAAE,aAAa,uBAAuB,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,aAAa;AAAA,MAC5E,EAAE,aAAa,kBAAkB;AAAA,IAClC;AAAA,EACD;AAAA,EACA,OAAO,aAAE,OAAO,EAAE,aAAa,gBAAgB,CAAC,EAAE,MAAM,qCAAqC,EAAE,SAAS;AAAA,EACxG,UAAU,aAAE,OAAO,EAAE,aAAa,kBAAkB,CAAC,EAAE,SAAS;AAAA,EAChE,QAAQ,aAAE,OAAO,EAAE,aAAa,gBAAgB,CAAC,EAAE;AAAA,IAClD,SAAO,IAAI,WAAW,KAAK,QAAQ,KAAK,GAAG;AAAA,IAC3C;AAAA,EACD,EAAE,SAAS;AAAA,EACX,iBAAiB,aAAE,OAAO,EAAE,aAAa,yBAAyB,CAAC,EAAE,SAAS;AAC/E,CAAC;AAEM,IAAM,YAAY,aAAa,OAAO;AAAA,EAC5C,KAAK,aAAE,OAAO,EAAE,aAAa,yBAAyB,CAAC,EAAE,IAAI,CAAC;AAC/D,CAAC,EAAE,SAAS,QAAQ;AAEpB,IAAM,iBAAiB,aAAE;AAAA,EACxB,WAAS;AACR,UAAM,WAAW;AAAA,MAChB,KAAK;AAAA,MACL,UAAU,CAAC;AAAA,MACX,OAAO;AAAA,MACP,UAAU;AAAA,MACV,iBAAiB;AAAA,IAClB;AACA,WAAO,OAAO,UAAU,WACrB,EAAE,GAAG,UAAU,GAAG,MAAM,IACxB;AAAA,EACJ;AAAA,EACA,aAAa,OAAO;AAAA,IACnB,KAAmB,sBAAQ;AAAA,EAC5B,CAAC;AACF,EAAE,SAAS,QAAQ;AAKZ,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAC,SAA4B;AAAA,EACjF;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMD,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAa;AAC/D;","names":["schemas","createType"]}
|
package/Faucet.mjs
CHANGED
|
@@ -2,28 +2,40 @@
|
|
|
2
2
|
import createType from "@taqueria/protocol/Base";
|
|
3
3
|
import * as PublicKeyHash from "@taqueria/protocol/PublicKeyHash";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
z.
|
|
9
|
-
|
|
5
|
+
var commonSchema = z.object({
|
|
6
|
+
mnemonic: z.preprocess(
|
|
7
|
+
(arg) => typeof arg === "string" ? arg.split(" ") : arg,
|
|
8
|
+
z.array(
|
|
9
|
+
z.string({ description: "Faucet Mnemonic Word" }).min(1).regex(/^[a-z]{2,}$/),
|
|
10
|
+
{ description: "Faucet Mnemonic" }
|
|
11
|
+
)
|
|
10
12
|
),
|
|
11
|
-
email: z.string({ description: "Faucet E-mail" }).regex(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}
|
|
12
|
-
password: z.string({ description: "Faucet Password" }).
|
|
13
|
-
amount: z.string({ description: "Faucet
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
),
|
|
22
|
-
email: z.string({ description: "Faucet E-mail" }).regex(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/),
|
|
23
|
-
password: z.string({ description: "Faucet Password" }).nonempty(),
|
|
24
|
-
amount: z.string({ description: "Faucet Account" }).nonempty().regex(/^\d+$/),
|
|
25
|
-
activation_code: z.string({ description: "Faucet Activation Code" }).nonempty()
|
|
13
|
+
email: z.string({ description: "Faucet E-mail" }).regex(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/).optional(),
|
|
14
|
+
password: z.string({ description: "Faucet Password" }).optional(),
|
|
15
|
+
amount: z.string({ description: "Faucet Amount" }).refine(
|
|
16
|
+
(val) => val.length === 0 || /^\d+$/.test(val),
|
|
17
|
+
"Amount, if present, must be numeric"
|
|
18
|
+
).optional(),
|
|
19
|
+
activation_code: z.string({ description: "Faucet Activation Code" }).optional()
|
|
20
|
+
});
|
|
21
|
+
var rawSchema = commonSchema.extend({
|
|
22
|
+
pkh: z.string({ description: "Faucet Public Key Hash" }).min(1)
|
|
26
23
|
}).describe("Faucet");
|
|
24
|
+
var internalSchema = z.preprocess(
|
|
25
|
+
(input) => {
|
|
26
|
+
const defaults = {
|
|
27
|
+
pkh: "",
|
|
28
|
+
mnemonic: [],
|
|
29
|
+
email: "",
|
|
30
|
+
password: "",
|
|
31
|
+
activation_code: ""
|
|
32
|
+
};
|
|
33
|
+
return typeof input === "object" ? { ...defaults, ...input } : defaults;
|
|
34
|
+
},
|
|
35
|
+
commonSchema.extend({
|
|
36
|
+
pkh: PublicKeyHash.schemas.schema
|
|
37
|
+
})
|
|
38
|
+
).describe("Faucet");
|
|
27
39
|
var { schemas: generatedSchemas, factory } = createType({
|
|
28
40
|
rawSchema,
|
|
29
41
|
internalSchema,
|
package/Faucet.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Faucet.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as PublicKeyHash from '@taqueria/protocol/PublicKeyHash';\nimport { z } from 'zod';\n\
|
|
1
|
+
{"version":3,"sources":["Faucet.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as PublicKeyHash from '@taqueria/protocol/PublicKeyHash';\nimport { z } from 'zod';\n\nconst commonSchema = z.object({\n\tmnemonic: z.preprocess(\n\t\targ => typeof arg === 'string' ? arg.split(' ') : arg,\n\t\tz.array(\n\t\t\tz.string({ description: 'Faucet Mnemonic Word' }).min(1).regex(/^[a-z]{2,}$/),\n\t\t\t{ description: 'Faucet Mnemonic' },\n\t\t),\n\t),\n\temail: z.string({ description: 'Faucet E-mail' }).regex(/^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/).optional(),\n\tpassword: z.string({ description: 'Faucet Password' }).optional(),\n\tamount: z.string({ description: 'Faucet Amount' }).refine(\n\t\tval => val.length === 0 || /^\\d+$/.test(val),\n\t\t'Amount, if present, must be numeric',\n\t).optional(),\n\tactivation_code: z.string({ description: 'Faucet Activation Code' }).optional(),\n});\n\nexport const rawSchema = commonSchema.extend({\n\tpkh: z.string({ description: 'Faucet Public Key Hash' }).min(1),\n}).describe('Faucet');\n\nconst internalSchema = z.preprocess(\n\tinput => {\n\t\tconst defaults = {\n\t\t\tpkh: '',\n\t\t\tmnemonic: [],\n\t\t\temail: '',\n\t\t\tpassword: '',\n\t\t\tactivation_code: '',\n\t\t};\n\t\treturn typeof input === 'object'\n\t\t\t? { ...defaults, ...input }\n\t\t\t: defaults;\n\t},\n\tcommonSchema.extend({\n\t\tpkh: PublicKeyHash.schemas.schema,\n\t}),\n).describe('Faucet');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid faucet configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the faucet',\n});\n\nexport type Faucet = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = Faucet;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as Faucet),\n};\n"],"mappings":";AAAA,OAAO,gBAA6B;AACpC,YAAY,mBAAmB;AAC/B,SAAS,SAAS;AAElB,IAAM,eAAe,EAAE,OAAO;AAAA,EAC7B,UAAU,EAAE;AAAA,IACX,SAAO,OAAO,QAAQ,WAAW,IAAI,MAAM,GAAG,IAAI;AAAA,IAClD,EAAE;AAAA,MACD,EAAE,OAAO,EAAE,aAAa,uBAAuB,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,aAAa;AAAA,MAC5E,EAAE,aAAa,kBAAkB;AAAA,IAClC;AAAA,EACD;AAAA,EACA,OAAO,EAAE,OAAO,EAAE,aAAa,gBAAgB,CAAC,EAAE,MAAM,qCAAqC,EAAE,SAAS;AAAA,EACxG,UAAU,EAAE,OAAO,EAAE,aAAa,kBAAkB,CAAC,EAAE,SAAS;AAAA,EAChE,QAAQ,EAAE,OAAO,EAAE,aAAa,gBAAgB,CAAC,EAAE;AAAA,IAClD,SAAO,IAAI,WAAW,KAAK,QAAQ,KAAK,GAAG;AAAA,IAC3C;AAAA,EACD,EAAE,SAAS;AAAA,EACX,iBAAiB,EAAE,OAAO,EAAE,aAAa,yBAAyB,CAAC,EAAE,SAAS;AAC/E,CAAC;AAEM,IAAM,YAAY,aAAa,OAAO;AAAA,EAC5C,KAAK,EAAE,OAAO,EAAE,aAAa,yBAAyB,CAAC,EAAE,IAAI,CAAC;AAC/D,CAAC,EAAE,SAAS,QAAQ;AAEpB,IAAM,iBAAiB,EAAE;AAAA,EACxB,WAAS;AACR,UAAM,WAAW;AAAA,MAChB,KAAK;AAAA,MACL,UAAU,CAAC;AAAA,MACX,OAAO;AAAA,MACP,UAAU;AAAA,MACV,iBAAiB;AAAA,IAClB;AACA,WAAO,OAAO,UAAU,WACrB,EAAE,GAAG,UAAU,GAAG,MAAM,IACxB;AAAA,EACJ;AAAA,EACA,aAAa,OAAO;AAAA,IACnB,KAAmB,sBAAQ;AAAA,EAC5B,CAAC;AACF,EAAE,SAAS,QAAQ;AAKZ,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMA,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAa;AAC/D;","names":["schemas"]}
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import * as fluture from 'fluture';
|
|
2
|
-
import { TaqError } from './TaqError.js';
|
|
3
1
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
declare const
|
|
6
|
-
declare const internalSchema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
|
|
2
|
+
export declare const rawSchema: z.ZodString;
|
|
3
|
+
export declare const internalSchema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
|
|
7
4
|
readonly __kind: any;
|
|
8
5
|
}, any>;
|
|
9
|
-
declare type HumanReadableIdentifier = z.infer<typeof internalSchema>;
|
|
10
|
-
declare type t = HumanReadableIdentifier;
|
|
11
|
-
declare const create: (input: string) => string & {
|
|
6
|
+
export declare type HumanReadableIdentifier = z.infer<typeof internalSchema>;
|
|
7
|
+
export declare type t = HumanReadableIdentifier;
|
|
8
|
+
export declare const create: (input: string) => string & {
|
|
12
9
|
readonly __kind: any;
|
|
13
|
-
}
|
|
14
|
-
declare const of: (input: unknown) => fluture.FutureInstance<TaqError, string & {
|
|
10
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, string & {
|
|
15
11
|
readonly __kind: any;
|
|
16
|
-
}
|
|
17
|
-
declare const make: (input: string) => fluture.FutureInstance<TaqError, string & {
|
|
12
|
+
}>, make: (input: string) => import("fluture").FutureInstance<import("./TaqError").TaqError, string & {
|
|
18
13
|
readonly __kind: any;
|
|
19
14
|
}>;
|
|
20
|
-
declare const schemas: {
|
|
15
|
+
export declare const schemas: {
|
|
21
16
|
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
|
|
22
17
|
readonly __kind: any;
|
|
23
18
|
}, any>, string & {
|
|
@@ -26,5 +21,4 @@ declare const schemas: {
|
|
|
26
21
|
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
27
22
|
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
28
23
|
};
|
|
29
|
-
|
|
30
|
-
export { HumanReadableIdentifier, create, internalSchema, make, of, rawSchema, schemas, t };
|
|
24
|
+
//# sourceMappingURL=HumanReadableIdentifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HumanReadableIdentifier.d.ts","sourceRoot":"","sources":["HumanReadableIdentifier.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS,aAE4D,CAAC;AAWnF,eAAO,MAAM,cAAc;;OAA0B,CAAC;AAEtD,oBAAY,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACrE,oBAAY,CAAC,GAAG,uBAAuB,CAAC;AACxC,eAAO,MAAQ,MAAM;;GAAE,EAAE;;IAAE,IAAI;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;CAGnB,CAAC"}
|
package/InstalledPlugin.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import * as fluture from 'fluture';
|
|
2
|
-
import { TaqError } from './TaqError.js';
|
|
3
1
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
declare const rawSchema: z.ZodObject<{
|
|
2
|
+
export declare const rawSchema: z.ZodObject<{
|
|
6
3
|
name: z.ZodString;
|
|
7
4
|
type: z.ZodUnion<[z.ZodLiteral<"npm">, z.ZodLiteral<"binary">, z.ZodLiteral<"deno">]>;
|
|
8
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12,7 +9,7 @@ declare const rawSchema: z.ZodObject<{
|
|
|
12
9
|
type: "npm" | "binary" | "deno";
|
|
13
10
|
name: string;
|
|
14
11
|
}>;
|
|
15
|
-
declare const generatedSchemas: {
|
|
12
|
+
export declare const generatedSchemas: {
|
|
16
13
|
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
17
14
|
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
18
15
|
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
@@ -21,18 +18,17 @@ declare const generatedSchemas: {
|
|
|
21
18
|
} & {
|
|
22
19
|
readonly __kind: any;
|
|
23
20
|
}, any>;
|
|
24
|
-
}
|
|
25
|
-
declare const factory: {
|
|
21
|
+
}, factory: {
|
|
26
22
|
make: (input: {
|
|
27
23
|
type: "npm" | "binary" | "deno";
|
|
28
24
|
name: string;
|
|
29
|
-
}) => fluture.FutureInstance<TaqError, {
|
|
25
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
30
26
|
type: "npm" | "binary" | "deno";
|
|
31
27
|
name: string;
|
|
32
28
|
} & {
|
|
33
29
|
readonly __kind: any;
|
|
34
30
|
}>;
|
|
35
|
-
of: (input: unknown) => fluture.FutureInstance<TaqError, {
|
|
31
|
+
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
36
32
|
type: "npm" | "binary" | "deno";
|
|
37
33
|
name: string;
|
|
38
34
|
} & {
|
|
@@ -54,9 +50,9 @@ declare const factory: {
|
|
|
54
50
|
readonly __kind: any;
|
|
55
51
|
};
|
|
56
52
|
};
|
|
57
|
-
declare type InstalledPlugin = z.infer<typeof generatedSchemas.schema>;
|
|
58
|
-
declare type t = InstalledPlugin;
|
|
59
|
-
declare const create: (input: {
|
|
53
|
+
export declare type InstalledPlugin = z.infer<typeof generatedSchemas.schema>;
|
|
54
|
+
export declare type t = InstalledPlugin;
|
|
55
|
+
export declare const create: (input: {
|
|
60
56
|
type: "npm" | "binary" | "deno";
|
|
61
57
|
name: string;
|
|
62
58
|
}) => {
|
|
@@ -64,23 +60,21 @@ declare const create: (input: {
|
|
|
64
60
|
name: string;
|
|
65
61
|
} & {
|
|
66
62
|
readonly __kind: any;
|
|
67
|
-
}
|
|
68
|
-
declare const of: (input: unknown) => fluture.FutureInstance<TaqError, {
|
|
63
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
69
64
|
type: "npm" | "binary" | "deno";
|
|
70
65
|
name: string;
|
|
71
66
|
} & {
|
|
72
67
|
readonly __kind: any;
|
|
73
|
-
}
|
|
74
|
-
declare const make: (input: {
|
|
68
|
+
}>, make: (input: {
|
|
75
69
|
type: "npm" | "binary" | "deno";
|
|
76
70
|
name: string;
|
|
77
|
-
}) => fluture.FutureInstance<TaqError, {
|
|
71
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
78
72
|
type: "npm" | "binary" | "deno";
|
|
79
73
|
name: string;
|
|
80
74
|
} & {
|
|
81
75
|
readonly __kind: any;
|
|
82
76
|
}>;
|
|
83
|
-
declare const schemas: {
|
|
77
|
+
export declare const schemas: {
|
|
84
78
|
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
85
79
|
type: "npm" | "binary" | "deno";
|
|
86
80
|
name: string;
|
|
@@ -95,5 +89,4 @@ declare const schemas: {
|
|
|
95
89
|
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
96
90
|
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
97
91
|
};
|
|
98
|
-
|
|
99
|
-
export { InstalledPlugin, create, factory, generatedSchemas, make, of, rawSchema, schemas, t };
|
|
92
|
+
//# sourceMappingURL=InstalledPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstalledPlugin.d.ts","sourceRoot":"","sources":["InstalledPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;EAMQ,CAAC;AAI/B,eAAO,MAAiB,gBAAgB;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/C,CAAC;AAEH,oBAAY,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACtE,oBAAY,CAAC,GAAG,eAAe,CAAC;AAEhC,eAAO,MAAQ,MAAM;;;;;;;;GAAE,EAAE;;;;;IAAE,IAAI;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;CAGnB,CAAC"}
|